結果
| 問題 |
No.712 赤旗
|
| コンテスト | |
| ユーザー |
isoflabono
|
| 提出日時 | 2018-07-26 00:50:32 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 89 ms / 2,000 ms |
| コード長 | 155 bytes |
| コンパイル時間 | 42 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-06-27 13:57:25 |
| 合計ジャッジ時間 | 1,013 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - line Syntax OK
ソースコード
row, line = gets.split(' ')
white_count = 0
row.to_i.times do | i |
line_words = gets.split('')
white_count += line_words.count('W')
end
p white_count
isoflabono