結果

問題 No.35 タイパー高橋
ユーザー brthyyjpbrthyyjp
提出日時 2021-08-22 19:39:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 63 ms / 5,000 ms
コード長 184 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 62,592 KB
最終ジャッジ日時 2024-04-24 10:52:49
合計ジャッジ時間 935 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
61,824 KB
testcase_01 AC 60 ms
61,824 KB
testcase_02 AC 63 ms
62,592 KB
testcase_03 AC 63 ms
62,464 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