結果

問題 No.851 テストケース
ユーザー kohei2019kohei2019
提出日時 2022-04-28 01:30:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 3,153 ms
コード長 387 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 86,848 KB
実行使用メモリ 71,508 KB
最終ジャッジ日時 2023-09-10 16:44:31
合計ジャッジ時間 3,533 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,260 KB
testcase_01 AC 71 ms
71,132 KB
testcase_02 AC 76 ms
70,976 KB
testcase_03 AC 71 ms
71,080 KB
testcase_04 AC 70 ms
71,396 KB
testcase_05 AC 71 ms
71,048 KB
testcase_06 AC 72 ms
71,488 KB
testcase_07 AC 71 ms
71,028 KB
testcase_08 AC 72 ms
71,368 KB
testcase_09 AC 71 ms
71,376 KB
testcase_10 AC 70 ms
71,160 KB
testcase_11 AC 71 ms
71,028 KB
testcase_12 AC 71 ms
71,164 KB
testcase_13 AC 70 ms
71,464 KB
testcase_14 AC 72 ms
71,452 KB
testcase_15 AC 70 ms
71,508 KB
testcase_16 AC 71 ms
71,440 KB
testcase_17 AC 72 ms
71,024 KB
testcase_18 AC 70 ms
71,044 KB
testcase_19 AC 73 ms
71,304 KB
testcase_20 AC 72 ms
71,232 KB
testcase_21 AC 73 ms
71,428 KB
testcase_22 AC 75 ms
71,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
f = True
ll = []
for i in range(N):
    l = list(map(int, input().split()))
    if len(l) != 1:
        f = False
    for c in l:
        ll.append(c)
    if len(ll) == 3:
        break

if not f:
    print('"assert"')
else:
    v = set()
    for i in range(2):
        for j in range(i+1,3):
            v.add(ll[i]+ll[j])
    v = list(v)
    v.sort()
    print(v[-2])
0