結果

問題 No.35 タイパー高橋
ユーザー notsix4notsix4
提出日時 2021-11-24 20:47:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 204 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 7,896 KB
最終ジャッジ日時 2023-09-09 13:43:00
合計ジャッジ時間 728 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
7,792 KB
testcase_01 AC 21 ms
7,896 KB
testcase_02 AC 19 ms
7,860 KB
testcase_03 AC 18 ms
7,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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