結果

問題 No.712 赤旗
ユーザー isoflabonoisoflabono
提出日時 2018-07-26 00:50:32
言語 Ruby
(3.3.0)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 11,404 KB
実行使用メモリ 15,312 KB
最終ジャッジ日時 2023-09-09 21:28:37
合計ジャッジ時間 1,209 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,036 KB
testcase_01 AC 77 ms
15,128 KB
testcase_02 AC 79 ms
15,312 KB
testcase_03 AC 79 ms
15,112 KB
testcase_04 AC 79 ms
15,276 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - line
Syntax OK

ソースコード

diff #

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
0