結果

問題 No.35 タイパー高橋
ユーザー ohanaohana
提出日時 2023-10-20 13:06:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 5,000 ms
コード長 185 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 81,708 KB
実行使用メモリ 62,948 KB
最終ジャッジ日時 2023-10-20 13:06:54
合計ジャッジ時間 928 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
a, b = 0, 0

for i in range(n):
    t, s = input().split()
    t, s = int(t), len(s)
    a, b = a + min(s, 12 * t // 1000), b + s - min(s, 12 * t // 1000)

print(a, b)
0