結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,024 KB
testcase_01 AC 85 ms
15,160 KB
testcase_02 AC 82 ms
15,216 KB
testcase_03 AC 82 ms
15,128 KB
testcase_04 AC 83 ms
15,164 KB
testcase_05 AC 86 ms
15,256 KB
testcase_06 AC 83 ms
15,076 KB
testcase_07 AC 85 ms
15,216 KB
testcase_08 AC 82 ms
15,124 KB
testcase_09 AC 81 ms
15,320 KB
testcase_10 AC 83 ms
15,012 KB
testcase_11 AC 81 ms
15,216 KB
testcase_12 AC 81 ms
15,164 KB
testcase_13 AC 83 ms
15,028 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
Main.rb:2: warning: regex literal in condition
Syntax OK

ソースコード

diff #

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