結果

問題 No.35 タイパー高橋
ユーザー wata_pythonwata_python
提出日時 2019-08-18 00:08:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 259 bytes
コンパイル時間 396 ms
コンパイル使用メモリ 11,784 KB
実行使用メモリ 10,020 KB
最終ジャッジ日時 2023-10-26 01:55:09
合計ジャッジ時間 1,211 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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