結果
問題 |
No.851 テストケース
|
ユーザー |
|
提出日時 | 2020-02-13 22:25:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 3,153 ms |
コード長 | 224 bytes |
コンパイル時間 | 193 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-06 06:32:44 |
合計ジャッジ時間 | 1,663 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
N = int(input()) _A = list(input().split()) if len(_A) != 1: print('"assert"') else: A = sorted([int(_A[0])] + [int(input()) for _ in range(N-1)], reverse=True) print(A[0] + A[2] if A[1] != A[2] else A[1] + A[2])