結果

問題 No.851 テストケース
ユーザー neterukunneterukun
提出日時 2019-07-31 21:54:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 3,153 ms
コード長 291 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 71,616 KB
最終ジャッジ日時 2023-09-18 17:08:02
合計ジャッジ時間 3,176 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,292 KB
testcase_01 AC 79 ms
71,416 KB
testcase_02 AC 81 ms
71,372 KB
testcase_03 AC 80 ms
71,616 KB
testcase_04 AC 78 ms
71,364 KB
testcase_05 AC 79 ms
71,360 KB
testcase_06 AC 78 ms
71,436 KB
testcase_07 AC 77 ms
71,436 KB
testcase_08 AC 78 ms
71,308 KB
testcase_09 AC 77 ms
71,396 KB
testcase_10 AC 77 ms
71,308 KB
testcase_11 AC 77 ms
71,576 KB
testcase_12 AC 79 ms
71,608 KB
testcase_13 AC 79 ms
71,528 KB
testcase_14 AC 78 ms
71,420 KB
testcase_15 AC 78 ms
71,232 KB
testcase_16 AC 77 ms
71,300 KB
testcase_17 AC 77 ms
71,220 KB
testcase_18 AC 78 ms
71,424 KB
testcase_19 AC 77 ms
71,324 KB
testcase_20 AC 78 ms
71,616 KB
testcase_21 AC 77 ms
71,112 KB
testcase_22 AC 77 ms
71,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))

if len(a) == 3:
    print('"assert"')
    exit()
    
x = a[0]
y = int(input())
z = int(input())

ans_set = set([])
ans_set.add(x + y)
ans_set.add(y + z)
ans_set.add(z + x)
li = list(ans_set)
li = sorted(li, reverse = True)
print(li[1])
0