結果
| 問題 |
No.193 筒の数式
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-29 13:02:51 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 207 bytes |
| コンパイル時間 | 204 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-11-21 10:27:25 |
| 合計ジャッジ時間 | 2,736 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 1 |
コンパイルメッセージ
Syntax OK
ソースコード
S = gets.chomp
len = S.length
source = S * 2
max = -1e10
0.upto(len-1) do |i|
tmp = source[i, len]
if !tmp.start_with?("+", "-") && !tmp.end_with?("+", "-") then
max = [max, eval(tmp)].max
end
end
p max