結果

問題 No.35 タイパー高橋
ユーザー boya978
提出日時 2019-09-04 23:09:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 329 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-29 23:34:27
合計ジャッジ時間 995 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
pace = 1000/12
typed = 0
missed = 0

n = int(input())

for i in range(n):
    l,w = input().split()
    limit = int(l)
    
    if limit/pace >= len(w):
        typed += len(w)
    else:
        typed += math.floor(limit/pace)
        missed += len(w) - math.floor(limit/pace)


print("{0} {1}".format(typed,missed))
0