結果

問題 No.35 タイパー高橋
ユーザー kkron4221kkron4221
提出日時 2020-05-08 02:03:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 349 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 7,968 KB
最終ジャッジ日時 2023-09-16 08:16:26
合計ジャッジ時間 751 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())
ans = 0
miss_type = 0

for i in range(N):
    date_type = input().split()
    time = int((12 / 1000) * int(date_type[0]))
    if len(date_type[1]) > time:
        ans = ans + time
        miss_type = miss_type + len(date_type[1]) - time
    else:
        ans = ans + len(date_type[1])
        
print(str(ans) + " " + str(miss_type))
0