結果
問題 |
No.851 テストケース
|
ユーザー |
|
提出日時 | 2023-05-21 05:03:23 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 277 bytes |
コンパイル時間 | 386 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-12-21 15:11:50 |
合計ジャッジ時間 | 2,080 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 20 |
ソースコード
N = int(input()) A = [] for _ in range(N): a = input() if a.find(" ")>=0: print("assert") exit() A.append(int(a)) B = set() for i in range(N): for j in range(i+1, N): B.add(A[i]+A[j]) B = list(B) B.sort(reverse=True) print(B) print(B[1])