結果

問題 No.35 タイパー高橋
ユーザー mlihua09mlihua09
提出日時 2020-08-27 16:19:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 220 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 61,952 KB
最終ジャッジ日時 2024-04-25 09:38:37
合計ジャッジ時間 891 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
61,312 KB
testcase_01 AC 55 ms
61,312 KB
testcase_02 AC 54 ms
61,952 KB
testcase_03 AC 54 ms
61,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


ans1 = 0

ans2 = 0

for _ in range(int(input())):
    
    t, s = input().split()
    
    t = int(t)
    
    ans1 += min(len(s), 12 * t // 1000)
    
    ans2 += max(0, len(s) - 12 * t // 1000)
    
print(ans1, ans2)
0