結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,272 KB
testcase_01 AC 87 ms
15,300 KB
testcase_02 AC 83 ms
15,040 KB
testcase_03 AC 83 ms
15,052 KB
testcase_04 AC 121 ms
20,652 KB
testcase_05 AC 150 ms
22,328 KB
testcase_06 AC 178 ms
23,096 KB
testcase_07 AC 229 ms
25,676 KB
testcase_08 AC 278 ms
28,788 KB
testcase_09 AC 335 ms
29,108 KB
testcase_10 AC 81 ms
15,260 KB
testcase_11 AC 82 ms
15,112 KB
testcase_12 AC 140 ms
23,504 KB
testcase_13 AC 266 ms
29,036 KB
testcase_14 AC 83 ms
15,328 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 83 ms
15,700 KB
testcase_18 AC 82 ms
15,380 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>0?d.bit_length-1:0
0