結果

問題 No.35 タイパー高橋
ユーザー pypypymipypypymi
提出日時 2022-05-08 11:19:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 5,000 ms
コード長 254 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 86,744 KB
実行使用メモリ 75,460 KB
最終ジャッジ日時 2023-09-22 05:55:10
合計ジャッジ時間 1,596 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
75,144 KB
testcase_01 AC 89 ms
75,096 KB
testcase_02 AC 94 ms
75,460 KB
testcase_03 AC 92 ms
74,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
count_s = 0
count_f = 0
for i in range(n):
    t,s = input().split()
    type_num = (12*int(t))//1000
    count_s += min(type_num,len(s))
    count_f += len(s)-type_num if len(s)>type_num else 0
print(count_s,count_f)
    
    
    
    
0