結果
問題 | No.851 テストケース |
ユーザー |
![]() |
提出日時 | 2019-07-26 21:25:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 3,153 ms |
コード長 | 381 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-02 06:36:15 |
合計ジャッジ時間 | 1,682 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
import itertools def solve(xs): ss = sorted(set(x + y for x, y in itertools.combinations(xs, 2)), reverse=True) return ss[1] def main(): n = int(input()) res = None try: xs = [int(input()) for _ in range(n)] res = solve(xs) except ValueError: print('"assert"') else: print(res) if __name__ == "__main__": main()