結果
| 問題 | No.851 テストケース |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-13 22:25:48 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 3,153 ms |
| コード長 | 224 bytes |
| 記録 | |
| コンパイル時間 | 370 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-22 02:56:48 |
| 合計ジャッジ時間 | 3,531 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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])