結果
問題 | No.341 沈黙の期間 |
ユーザー |
![]() |
提出日時 | 2016-02-12 22:27:17 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 94 ms / 5,000 ms |
コード長 | 163 bytes |
コンパイル時間 | 63 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-09-22 04:41:24 |
合計ジャッジ時間 | 1,978 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
コンパイルメッセージ
Syntax OK
ソースコード
s=gets.stripres=0c=0s.length.times do|i|if s[i].ord==8230c +=1elseres=c if c > resc=0endendres=c if c > resputs res