結果

問題 No.193 筒の数式
ユーザー mmmpppmmmppp
提出日時 2017-03-05 00:58:47
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 94 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 11,232 KB
実行使用メモリ 15,436 KB
最終ジャッジ日時 2023-09-05 05:44:59
合計ジャッジ時間 2,625 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,216 KB
testcase_01 AC 81 ms
15,144 KB
testcase_02 AC 82 ms
15,280 KB
testcase_03 AC 81 ms
15,100 KB
testcase_04 AC 81 ms
15,164 KB
testcase_05 AC 81 ms
15,208 KB
testcase_06 AC 82 ms
15,096 KB
testcase_07 AC 81 ms
15,300 KB
testcase_08 AC 80 ms
15,172 KB
testcase_09 AC 80 ms
15,296 KB
testcase_10 AC 81 ms
15,292 KB
testcase_11 AC 81 ms
15,188 KB
testcase_12 AC 80 ms
15,296 KB
testcase_13 AC 80 ms
15,168 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
Syntax OK

ソースコード

diff #

s=gets.chop
p (0..s.size).map{|i|x=s[i,$$]+s[0,i];x=~/^\d.*\d$/?eval(x.gsub /011/,'11'):0}.max
0