結果

問題 No.35 タイパー高橋
ユーザー nbisconbisco
提出日時 2016-03-21 14:39:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 323 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2024-04-08 21:22:19
合計ジャッジ時間 785 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#!/usr/bin/env python3
#fileencoding: utf-8

from math import floor

N = int(input())
ok = 0
ng = 0

for i in range(N):
    T, S = input().strip().split(" ")
    typed = floor(12.0*int(T)/1000.0)
    if typed > len(S):
        ok += len(S)
    else:
        ok += typed
        ng += len(S) - typed

print("%d %d"%(ok,ng))
0