結果

問題 No.35 タイパー高橋
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2021-12-31 21:18:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 190 bytes
コンパイル時間 466 ms
コンパイル使用メモリ 82,420 KB
実行使用メモリ 61,440 KB
最終ジャッジ日時 2024-04-17 09:06:46
合計ジャッジ時間 1,622 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
61,440 KB
testcase_01 AC 51 ms
60,928 KB
testcase_02 AC 52 ms
61,184 KB
testcase_03 AC 57 ms
61,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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