結果

問題 No.54 Happy Hallowe'en
ユーザー suisensuisen
提出日時 2021-03-28 05:17:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 131 ms / 5,000 ms
コード長 135 bytes
コンパイル時間 857 ms
コンパイル使用メモリ 86,920 KB
実行使用メモリ 78,480 KB
最終ジャッジ日時 2023-08-19 15:02:52
合計ジャッジ時間 3,403 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,224 KB
testcase_01 AC 67 ms
70,980 KB
testcase_02 AC 71 ms
71,004 KB
testcase_03 AC 67 ms
71,304 KB
testcase_04 AC 131 ms
77,564 KB
testcase_05 AC 109 ms
77,864 KB
testcase_06 AC 112 ms
77,792 KB
testcase_07 AC 120 ms
77,984 KB
testcase_08 AC 123 ms
78,260 KB
testcase_09 AC 131 ms
78,392 KB
testcase_10 AC 68 ms
71,140 KB
testcase_11 AC 69 ms
71,052 KB
testcase_12 AC 120 ms
78,480 KB
testcase_13 AC 122 ms
78,464 KB
testcase_14 AC 69 ms
71,196 KB
testcase_15 AC 68 ms
71,404 KB
testcase_16 AC 69 ms
71,316 KB
testcase_17 AC 70 ms
71,416 KB
testcase_18 AC 68 ms
71,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=1
for V,T in sorted([tuple(map(int,input().split()))for _ in range(int(input()))],key=sum):S|=(S&(2**T-1))<<V
print(S.bit_length()-1)
0