結果
問題 | No.193 筒の数式 |
ユーザー |
![]() |
提出日時 | 2017-03-05 00:32:20 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 105 bytes |
コンパイル時間 | 54 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 19,288 KB |
最終ジャッジ日時 | 2024-06-23 02:11:17 |
合計ジャッジ時間 | 4,066 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 16 |
コンパイルメッセージ
Main.rb:2: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator Syntax OK
ソースコード
s=gets.chopp ((0..s.size).map{|i|eval (s[i,$$]+s[0...i]).gsub /011/,'11'if s[i]!~/^[+-]|[+-]$/}-[p]).max