結果
問題 | No.35 タイパー高橋 |
ユーザー | Lo_OT |
提出日時 | 2018-02-19 20:36:21 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 85 ms / 5,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 45 ms |
コンパイル使用メモリ | 11,240 KB |
実行使用メモリ | 15,348 KB |
最終ジャッジ日時 | 2023-09-22 23:24:57 |
合計ジャッジ時間 | 999 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 85 ms
15,348 KB |
testcase_01 | AC | 83 ms
15,232 KB |
testcase_02 | AC | 82 ms
15,284 KB |
testcase_03 | AC | 82 ms
15,336 KB |
コンパイルメッセージ
Syntax OK
ソースコード
loop = gets.to_i words_len = 0 typo = 0 loop.times do time, type = gets.chomp.split e = (12 * time.to_i / 1000.0).floor if type.length - e <= 0 words_len += type.length else words_len += e typo += type.length - e end end puts "#{words_len} #{typo}"