結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-19 20:36:21 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 5,000 ms |
| コード長 | 293 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 7,680 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2024-07-08 14:03:08 |
| 合計ジャッジ時間 | 992 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
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}"