結果

問題 No.27 板の準備
ユーザー syarosyaro
提出日時 2016-01-20 12:41:14
言語 Ruby
(3.2.2)
結果
AC  
実行時間 3,210 ms / 5,000 ms
コード長 113 bytes
コンパイル時間 219 ms
コンパイル使用メモリ 11,548 KB
実行使用メモリ 15,808 KB
最終ジャッジ日時 2023-08-27 04:15:36
合計ジャッジ時間 60,290 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3,067 ms
15,684 KB
testcase_01 AC 3,079 ms
15,696 KB
testcase_02 AC 3,069 ms
15,700 KB
testcase_03 AC 3,057 ms
15,684 KB
testcase_04 AC 3,067 ms
15,528 KB
testcase_05 AC 3,056 ms
15,704 KB
testcase_06 AC 3,082 ms
15,564 KB
testcase_07 AC 3,094 ms
15,444 KB
testcase_08 AC 3,122 ms
15,496 KB
testcase_09 AC 3,140 ms
15,564 KB
testcase_10 AC 3,210 ms
15,664 KB
testcase_11 AC 3,115 ms
15,632 KB
testcase_12 AC 3,146 ms
15,524 KB
testcase_13 AC 3,140 ms
15,432 KB
testcase_14 AC 3,100 ms
15,436 KB
testcase_15 AC 3,135 ms
15,808 KB
testcase_16 AC 3,122 ms
15,676 KB
testcase_17 AC 3,146 ms
15,556 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:4: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
Syntax OK

ソースコード

diff #

gets
p (0..4e4).map{|n|*d=0
30.times{d<<(0..2).map{|x|d[~(n>>5*x&31)]||$$}.min+1}
eval$_.gsub /\d+/,'+d[\0]'}.min
0