QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#252897 | #7695. Double Up | ucup-team004 | Compile Error | / | / | C++20 | 158b | 2023-11-16 14:29:45 | 2023-11-16 14:29:46 |
Judging History
answer
n = int(input())
S = set()
a = map(int, input().split())
for x in a :
while x in S :
S.remove(x)
x *= 2
S.add(x)
print(max(S))
Details
answer.code:1:1: error: ‘n’ does not name a type 1 | n = int(input()) | ^