結果
| 問題 |
No.342 一番ワロタww
|
| コンテスト | |
| ユーザー |
akko_yukky
|
| 提出日時 | 2018-04-29 22:36:10 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| コンパイル時間 | 41 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-06-27 23:42:50 |
| 合計ジャッジ時間 | 2,556 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 14 |
コンパイルメッセージ
Syntax OK
ソースコード
str = gets.chomp
count = Array.new(str.length, 0)
(1 .. str.length).each do |i|
j = i
while str[j] == "w" && str[j+1] != nil && str[j+1] == "w"
count[i-1] += 1
j += 1
end
end
puts count
akko_yukky