結果

問題 No.27 板の準備
ユーザー syarosyaro
提出日時 2016-01-20 11:36:56
言語 Ruby
(3.3.0)
結果
AC  
実行時間 2,327 ms / 5,000 ms
コード長 114 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 11,348 KB
実行使用メモリ 15,780 KB
最終ジャッジ日時 2023-08-27 04:14:15
合計ジャッジ時間 45,290 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,327 ms
15,572 KB
testcase_01 AC 2,290 ms
15,436 KB
testcase_02 AC 2,305 ms
15,752 KB
testcase_03 AC 2,294 ms
15,564 KB
testcase_04 AC 2,273 ms
15,356 KB
testcase_05 AC 2,293 ms
15,516 KB
testcase_06 AC 2,292 ms
15,684 KB
testcase_07 AC 2,284 ms
15,472 KB
testcase_08 AC 2,285 ms
15,780 KB
testcase_09 AC 2,290 ms
15,428 KB
testcase_10 AC 2,271 ms
15,572 KB
testcase_11 AC 2,277 ms
15,516 KB
testcase_12 AC 2,307 ms
15,420 KB
testcase_13 AC 2,307 ms
15,508 KB
testcase_14 AC 2,296 ms
15,704 KB
testcase_15 AC 2,287 ms
15,696 KB
testcase_16 AC 2,303 ms
15,640 KB
testcase_17 AC 2,279 ms
15,600 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..3e4).map{|n|*d=0
30.times{d<<(0..2).map{|x|d[~(n/30**x%30)]||$$}.min+1}
eval$_.gsub /\d+/,'+d[\0]'}.min
0