結果

問題 No.2693 Sword
ユーザー ああいいああいい
提出日時 2024-03-29 21:43:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 153 bytes
コンパイル時間 743 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 61,116 KB
最終ジャッジ日時 2024-03-29 21:43:14
合計ジャッジ時間 2,825 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 36 ms
53,460 KB
testcase_03 AC 36 ms
53,460 KB
testcase_04 WA -
testcase_05 AC 36 ms
53,460 KB
testcase_06 WA -
testcase_07 AC 36 ms
53,460 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 37 ms
53,460 KB
testcase_15 AC 44 ms
55,584 KB
testcase_16 AC 49 ms
61,116 KB
testcase_17 AC 52 ms
61,116 KB
testcase_18 AC 43 ms
55,584 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 36 ms
53,460 KB
testcase_25 AC 35 ms
53,460 KB
testcase_26 AC 36 ms
53,460 KB
testcase_27 AC 42 ms
53,460 KB
testcase_28 AC 36 ms
53,460 KB
testcase_29 AC 36 ms
53,460 KB
testcase_30 AC 36 ms
53,460 KB
testcase_31 WA -
testcase_32 AC 51 ms
61,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,p,k = map(int,input().split())

for _ in range(n):
	t,b = map(int,input().split())
	if t == 1:
		p += b
	else:
		p *= 2
if p > 10 ** 18:p = -1
print(p)
0