結果

問題 No.35 タイパー高橋
ユーザー gimgim
提出日時 2017-08-31 17:24:16
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 184 bytes
コンパイル時間 614 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-04-24 09:12:33
合計ジャッジ時間 876 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N=int(raw_input())

a=0
b=0

for f in range(N):
    L=raw_input().split()
    T=int(L[0])
    S=L[1]
    T2=min(T*12/1000, len(S))
    S2=len(S)-T2
    a += T2
    b += S2

print a, b
0