結果

問題 No.35 タイパー高橋
ユーザー ynyn
提出日時 2015-08-04 12:14:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 386 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 10,572 KB
実行使用メモリ 8,384 KB
最終ジャッジ日時 2023-09-25 01:01:26
合計ジャッジ時間 943 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,320 KB
testcase_01 AC 20 ms
8,340 KB
testcase_02 AC 21 ms
8,380 KB
testcase_03 AC 20 ms
8,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
T = [0] * N
S = [0] * N
L = [0] * N
for i in range(N):
    T[i], S[i] = map(str, input().split())
    T[i] = int(T[i])
    L[i] = len(S[i])

misscount = 0
succcount = 0

for i in range(N):
    typing = T[i] * 12 // 1000
    if L[i] > typing:
        misscount += L[i] - typing
        succcount += typing
    else:
        succcount += L[i]

print(succcount, misscount)
0