Submission #1103699

#TimeUsernameProblemLanguageResultExecution timeMemory
1103699zephyrionTuna (COCI17_tuna)C++17
Compilation error
0 ms0 KiB
n = int(input())
x = int(input())
ans = 0
for i in range(n):
    p1, p2 = map(int, input().split())
    if abs(p1 - p2) <= X:
        ans += max(p1, p2)
    else:
        ans += int(input())
print(ans)

Compilation message (stderr)

tuna.cpp:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^