結果

問題 No.54 Happy Hallowe'en
ユーザー 👑 hos.lyrichos.lyric
提出日時 2015-01-30 14:01:19
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 108 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 11,408 KB
実行使用メモリ 29,160 KB
最終ジャッジ日時 2023-09-05 08:21:34
合計ジャッジ時間 4,550 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,056 KB
testcase_01 AC 81 ms
15,300 KB
testcase_02 AC 80 ms
15,156 KB
testcase_03 AC 81 ms
15,252 KB
testcase_04 AC 124 ms
20,364 KB
testcase_05 AC 147 ms
22,396 KB
testcase_06 AC 176 ms
23,100 KB
testcase_07 AC 224 ms
25,724 KB
testcase_08 AC 274 ms
28,944 KB
testcase_09 AC 335 ms
28,940 KB
testcase_10 AC 80 ms
15,056 KB
testcase_11 AC 79 ms
15,152 KB
testcase_12 AC 138 ms
23,648 KB
testcase_13 AC 264 ms
29,160 KB
testcase_14 AC 81 ms
15,048 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 81 ms
15,700 KB
testcase_18 AC 82 ms
15,440 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

d=1
(0...gets.to_i).map{v,t=gets.split.map &:to_i;[t,v]}.sort.each{|a|d|=d%(1<<a[0])<<a[1]}
p d.bit_length-1
0