結果

問題 No.35 タイパー高橋
ユーザー akanayaakanaya
提出日時 2020-03-26 13:32:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 314 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 8,064 KB
最終ジャッジ日時 2023-08-30 12:26:59
合計ジャッジ時間 806 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import sys 
import math
input = sys.stdin.readline

n = int(input())

tsn = [None] * n
for i in range(n):
    v = input().strip().split(' ')
    tsn[i] = [int(v[0]), len(v[1])]

ok = 0
miss = 0
for ts in tsn:
    t = min([math.floor(ts[0] * 12 / 1000), ts[1]])

    ok += t
    miss += ts[1] - t

print(ok, miss)

0