結果
問題 |
No.851 テストケース
|
ユーザー |
![]() |
提出日時 | 2020-08-19 01:58:32 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 514 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 54,016 KB |
最終ジャッジ日時 | 2024-10-12 03:27:03 |
合計ジャッジ時間 | 2,216 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 18 WA * 2 |
ソースコード
# import sys; input = sys.stdin.buffer.readline # sys.setrecursionlimit(10**7) from collections import defaultdict con = 10 ** 9 + 7; INF = float("inf") def getlist(): return list(map(int, input().split())) #処理内容 def main(): N = int(input()) A = getlist() if sum(A) != A[0]: print("assert") return a2 = int(input()) A.append(a2) a3 = int(input()) A.append(a3) A.sort() if A[0] + A[2] == A[1] + A[2]: print(A[0] + A[1]) else: print(A[0] + A[2]) if __name__ == '__main__': main()