結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-10-29 15:40:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 489 bytes |
| コンパイル時間 | 96 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-14 21:29:58 |
| 合計ジャッジ時間 | 1,734 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 2 |
ソースコード
# 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))
else:
for j in total_twos:
if j != min(total_twos) and j != max(total_twos):
print(j)
break
fV9TwBhUoa9S3eV