結果

問題 No.54 Happy Hallowe'en
ユーザー suisensuisen
提出日時 2021-03-28 05:20:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 131 bytes
コンパイル時間 512 ms
コンパイル使用メモリ 87,112 KB
実行使用メモリ 78,788 KB
最終ジャッジ日時 2023-08-19 15:02:55
合計ジャッジ時間 2,956 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,440 KB
testcase_01 AC 62 ms
71,168 KB
testcase_02 AC 65 ms
71,288 KB
testcase_03 AC 61 ms
71,516 KB
testcase_04 AC 102 ms
78,148 KB
testcase_05 AC 100 ms
78,212 KB
testcase_06 AC 105 ms
78,260 KB
testcase_07 AC 111 ms
78,780 KB
testcase_08 AC 116 ms
78,416 KB
testcase_09 AC 123 ms
78,788 KB
testcase_10 AC 62 ms
71,164 KB
testcase_11 AC 60 ms
71,148 KB
testcase_12 AC 108 ms
78,528 KB
testcase_13 AC 114 ms
78,480 KB
testcase_14 AC 64 ms
71,404 KB
testcase_15 AC 63 ms
71,340 KB
testcase_16 AC 65 ms
71,140 KB
testcase_17 AC 66 ms
71,228 KB
testcase_18 AC 65 ms
71,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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