結果

問題 No.35 タイパー高橋
ユーザー utsumidaisukeutsumidaisuke
提出日時 2018-12-06 11:55:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 5,000 ms
コード長 251 bytes
コンパイル時間 794 ms
コンパイル使用メモリ 10,488 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-10-12 02:37:29
合計ジャッジ時間 999 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())

w_cnt = 0
w_ttl = 0
for i in range(n):
    t, w = input().split()
    t = int(t)
    w_ttl += len(w)
    w_inp = int(12*t/1000)
    if w_inp < len(w):
        w_cnt += w_inp
    else:
        w_cnt += len(w)
print(w_cnt, w_ttl-w_cnt)
0