結果
問題 | No.851 テストケース |
ユーザー |
![]() |
提出日時 | 2020-02-08 16:05:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 3,153 ms |
コード長 | 291 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-25 08:51:00 |
合計ジャッジ時間 | 1,564 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
N = int(input()) test = input() if " " not in test: A = [int(test)] for _ in range(N-1): A += [int(input())] L = [A[0]+A[1], A[0]+A[2], A[1]+A[2]] L.sort(reverse=True) if L[0] > L[1]: print(L[1]) else: print(L[2]) else: print("\"assert\"")