백준2362 [백준/파이썬] 29454번 Выражение -Code n = int(input()) nums = list(map(int, input().split())) for i in range(n): temp = nums[:i] + nums[i + 1:] if sum(temp) == nums[i]: print(i + 1) break 2024. 3. 8. [백준/파이썬] 7281번 Internetas -Code res, last_time = 0, 0 for _ in range(int(input())): t, m = map(int, input().split()) if m == 1: res = max(res, t - last_time) last_time = t print(res) 2024. 3. 7. [백준/파이썬] 31520번 Champernowne Verification -Code nums = input() for i in range(len(nums)): if int(nums[i]) != i + 1: print(-1) exit() print(nums[-1]) 2024. 3. 6. [백준/파이썬] 31518번 Triple Sevens -Code n = int(input()) cnt = 0 for _ in range(3): nums = list(map(int, input().split())) if 7 in nums: cnt += 1 print(777 if cnt >= 3 else 0) 2024. 3. 5. [백준/파이썬] 26849번 Non Classical Problem -Code nums = [] for _ in range(int(input())): a, b = map(int, input().split()) nums.append(a / b) print(f"{min(nums):.10f} {max(nums):.10f} {sum(nums):.10f}") 2024. 3. 4. [백준/파이썬] 31495번 그게 무슨 코드니.. -Code s = input() if s[0] == '\"' and s[-1] == '\"' and len(s) > 2: print(s[1:-1]) exit() print("CE") 2024. 3. 4. 이전 1 ··· 56 57 58 59 60 61 62 ··· 394 다음