結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-10-29 15:45:10 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 3,153 ms |
| コード長 | 568 bytes |
| コンパイル時間 | 176 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-14 21:30:04 |
| 合計ジャッジ時間 | 1,701 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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