結果

問題 No.35 タイパー高橋
ユーザー brthyyjpbrthyyjp
提出日時 2021-08-22 19:39:01
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 90 ms / 5,000 ms
コード長 184 bytes
コンパイル時間 363 ms
コンパイル使用メモリ 87,248 KB
実行使用メモリ 75,576 KB
最終ジャッジ日時 2023-08-06 15:28:41
合計ジャッジ時間 1,618 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

n = int(input())
x = 0
y = 0
for i in range(n):
    t, s = map(str, input().split())
    t = int(t)
    x += min(len(s), (12*t)//1000)
    y += max(0, len(s)-(12*t)//1000)
print(x, y)
0