結果

問題 No.35 タイパー高橋
ユーザー pete1288998pete1288998
提出日時 2020-03-14 01:24:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 225 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 7,892 KB
最終ジャッジ日時 2023-08-15 09:21:01
合計ジャッジ時間 982 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n=int(input())

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