結果

問題 No.35 タイパー高橋
ユーザー steek79steek79
提出日時 2015-10-12 16:53:04
言語 Python2
(2.7.18)
結果
AC  
実行時間 14 ms / 5,000 ms
コード長 296 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 6,524 KB
実行使用メモリ 6,024 KB
最終ジャッジ日時 2023-09-28 12:40:11
合計ジャッジ時間 639 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
5,860 KB
testcase_01 AC 14 ms
5,928 KB
testcase_02 AC 14 ms
5,884 KB
testcase_03 AC 14 ms
6,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())

typed, missed = 0, 0

for i in xrange(N):
    inp = raw_input().split()
    T = int(inp[0])
    S = len(inp[1])
    max = T * 12 / 1000     
    if max >= S:
        typed += S
    else:
        typed += T * 12 / 1000
        missed += S - T * 12 / 1000

print typed, missed
0