結果

問題 No.35 タイパー高橋
ユーザー fV9TwBhUoa9S3eVfV9TwBhUoa9S3eV
提出日時 2019-09-13 15:52:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 5,000 ms
コード長 369 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 7,912 KB
最終ジャッジ日時 2023-09-17 06:48:57
合計ジャッジ時間 738 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())
types_correct = 0
types_all = 0

for i in range(N):
    T, S = [i for i in input().split()]
    time = int(T)
    length = len(S)
    types_all += length

    if length > int((12 * time) / 1000):
        types_correct += int((12 * time) / 1000)
    else:
        types_correct += length

print(str(types_correct) + ' ' + str(types_all - types_correct))
0