結果

問題 No.27 板の準備
ユーザー syarosyaro
提出日時 2016-01-18 16:07:25
言語 Ruby
(3.2.2)
結果
AC  
実行時間 998 ms / 5,000 ms
コード長 133 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 11,452 KB
実行使用メモリ 16,956 KB
最終ジャッジ日時 2023-08-27 04:12:49
合計ジャッジ時間 20,023 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 988 ms
16,844 KB
testcase_01 AC 979 ms
16,712 KB
testcase_02 AC 980 ms
16,956 KB
testcase_03 AC 971 ms
16,640 KB
testcase_04 AC 989 ms
16,676 KB
testcase_05 AC 979 ms
16,640 KB
testcase_06 AC 987 ms
16,584 KB
testcase_07 AC 995 ms
16,916 KB
testcase_08 AC 983 ms
16,824 KB
testcase_09 AC 980 ms
16,892 KB
testcase_10 AC 978 ms
16,708 KB
testcase_11 AC 981 ms
16,692 KB
testcase_12 AC 979 ms
16,648 KB
testcase_13 AC 980 ms
16,636 KB
testcase_14 AC 985 ms
16,776 KB
testcase_15 AC 980 ms
16,680 KB
testcase_16 AC 998 ms
16,732 KB
testcase_17 AC 979 ms
16,636 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...i=27e3).map{|n|*d=0
(1..30).map{d<<[d[~(n/900)]||i,d[~(n/30%30)]||i,d[~(n%30)]||i].min+1}
eval$_.gsub /\d+/,'+d[\0]'}.min
0