QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#252897#7695. Double Upucup-team004Compile Error//C++20158b2023-11-16 14:29:452023-11-16 14:29:46

Judging History

你现在查看的是最新测评结果

  • [2023-11-16 14:29:46]
  • 评测
  • [2023-11-16 14:29:45]
  • 提交

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))

詳細信息

answer.code:1:1: error: ‘n’ does not name a type
    1 | n = int(input())
      | ^