結果

問題 No.35 タイパー高橋
ユーザー ゆるくゆるく
提出日時 2014-10-08 00:32:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 342 bytes
コンパイル時間 624 ms
コンパイル使用メモリ 10,764 KB
実行使用メモリ 8,308 KB
最終ジャッジ日時 2023-08-28 20:22:13
合計ジャッジ時間 795 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
e = [[i for i in input().split()] for i in range(n)] 

div = 0.012;

a = 0
b = 0
for ee in e:
    if int(int(ee[0]) * 0.012) >= len(ee[1]):
        a += len(ee[1])
    else:
        c = int(len(ee[1]) - int(int(ee[0]) * 0.012))
        b += c
        a += len(ee[1]) - c
        
print(str(a) + " " + str(b))
0