結果

問題 No.35 タイパー高橋
ユーザー momoyuumomoyuu
提出日時 2022-08-03 00:18:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 91 ms / 5,000 ms
コード長 209 bytes
コンパイル時間 364 ms
コンパイル使用メモリ 87,344 KB
実行使用メモリ 75,640 KB
最終ジャッジ日時 2023-10-01 00:57:51
合計ジャッジ時間 1,427 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())
p = 0
q = 0
for i in range(N):
    t,s = input().split()
    t = int(t)
    s = len(s)
    m = (12*t)//1000
    if m >= s:
        p += s
    else:
        p += m
        q += s - m
print(p,q)
0