結果
問題 |
No.851 テストケース
|
ユーザー |
|
提出日時 | 2024-06-17 11:16:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 559 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-17 11:16:22 |
合計ジャッジ時間 | 2,424 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 2 WA * 18 |
ソースコード
n = int(input()) s = [0] * n for i in range(n): a = input() if len(a) > 1: print("\"assert\"") exit() else: s[i] = int(a) s.sort(reverse=True) t = set() for i in range(n): for j in range(i+1, n): t.add(s[i] + s[j]) ans = list(t) ans.sort(reverse=True) print(ans[1])