結果
問題 | No.851 テストケース |
ユーザー |
|
提出日時 | 2022-10-19 13:27:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 3,153 ms |
コード長 | 342 bytes |
コンパイル時間 | 65 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-29 16:25:37 |
合計ジャッジ時間 | 1,422 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
from itertools import combinations def main(): N = int(input()) try: A = [int(input()) for _ in range(N)] except ValueError: print('"assert"') return A_sum = {first + second for (first, second) in combinations(A, 2)} print(sorted(A_sum, reverse=True)[1]) if __name__ == "__main__": main()