結果

問題 No.35 タイパー高橋
ユーザー aaaaaaaaaa2230
提出日時 2021-12-31 21:18:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 190 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 61,696 KB
最終ジャッジ日時 2024-10-09 01:49:34
合計ジャッジ時間 1,134 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

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