結果
| 問題 |
No.341 沈黙の期間
|
| コンテスト | |
| ユーザー |
rickytheta
|
| 提出日時 | 2016-02-12 22:24:35 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 158 bytes |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-09-22 04:20:30 |
| 合計ジャッジ時間 | 2,054 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 2 WA * 9 |
コンパイルメッセージ
Syntax OK
ソースコード
s = gets.chomp
res = 0
cur = 0
for i in 0...s.length
c = s[i]
if c.ord == 33123
cur += 1
res=cur if cur>res
else
cur = 0
end
end
puts res
rickytheta