結果
| 問題 | No.851 テストケース |
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-10-29 15:45:10 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 102 ms / 3,153 ms |
| コード長 | 568 bytes |
| 記録 | |
| コンパイル時間 | 620 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,356 KB |
| 最終ジャッジ日時 | 2026-04-04 15:13:08 |
| 合計ジャッジ時間 | 3,460 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
# No.851 テストケース
n = int(input())
a = []
tmp = input()
if tmp.count(' ') > 0:
print('\"assert\"')
else:
a.append(int(tmp))
for i in range(1, n):
a.append(int(input()))
total_twos = [a[0] + a[1], a[1] + a[2], a[2] + a[0]]
if total_twos.count(max(total_twos)) > 1:
print(min(total_twos))
elif total_twos.count(min(total_twos)) > 1:
print(min(total_twos))
else:
for j in total_twos:
if j != min(total_twos) and j != max(total_twos):
print(j)
break
fV9TwBhUoa9S3eV