結果

問題 No.35 タイパー高橋
ユーザー wata_python
提出日時 2019-08-18 00:08:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 259 bytes
コンパイル時間 424 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-25 10:01:34
合計ジャッジ時間 667 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
W=L=0
for i in range(n):
    t, s = input().split()
    t = int(t)
    s = len(s)
    write = int(12*t/1000)
    if write >= 0 and s-write > 0:
        W+= write
        l = s - write
    else:
        W+= s
        l = 0
    L+=l
print(W, L)
0