結果
問題 |
No.851 テストケース
|
ユーザー |
![]() |
提出日時 | 2022-01-20 10:47:57 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 324 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-11-23 14:28:13 |
合計ジャッジ時間 | 2,145 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 18 WA * 2 |
ソースコード
n=int(input()) try: ns=[int(input()) for i in range(n)] ans=set() for i in range(n-1): for j in range(i+1,n): ans.add(ns[i]+ns[j]) ans=sorted(list(ans)) print(ans[-2]) except ValueError: print('assert')