結果

問題 No.35 タイパー高橋
ユーザー MakorominirisMakorominiris
提出日時 2016-05-13 23:50:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 35 ms / 5,000 ms
コード長 249 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-15 17:22:52
合計ジャッジ時間 566 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import math
N = int(input())
x = 0
y = 0
for i in range(0, N):
    T, S = input().split()
    ty= math.floor(12 / 1000 * int(T))
    if ty < len(S):
        x += ty
        y += len(S) - ty
    else:
        x += len(S)
print("{0} {1}".format(x, y))
0