結果

問題 No.35 タイパー高橋
ユーザー Makorominiris
提出日時 2016-05-13 23:50:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 28 ms / 5,000 ms
コード長 249 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-05 18:28:36
合計ジャッジ時間 706 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

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