結果
| 問題 |
No.193 筒の数式
|
| コンテスト | |
| ユーザー |
mmmppp
|
| 提出日時 | 2017-03-05 00:43:03 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 98 bytes |
| コンパイル時間 | 44 ms |
| コンパイル使用メモリ | 7,680 KB |
| 実行使用メモリ | 19,160 KB |
| 最終ジャッジ日時 | 2024-06-23 02:11:24 |
| 合計ジャッジ時間 | 4,416 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 Main.rb:2: warning: regex literal in condition Syntax OK
ソースコード
s=gets.chop
p ((0..s.size).map{|i|$_=s[i,$$]+s[0,i];eval$_.gsub /01/,?1 if /^[+-]|[+-]$/}-[p]).max
mmmppp