結果
問題 |
No.851 テストケース
|
ユーザー |
![]() |
提出日時 | 2022-11-12 23:49:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 3,153 ms |
コード長 | 322 bytes |
コンパイル時間 | 252 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-14 11:45:54 |
合計ジャッジ時間 | 1,838 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
from itertools import combinations def main(): n = int(input()) try: arr = [int(input()) for _ in range(n)] except ValueError: print('"assert"') return sums = {sum(x) for x in combinations(arr, 2)} print(sorted(sums, reverse=True)[1]) if __name__ == "__main__": main()