結果

問題 No.35 タイパー高橋
ユーザー HIROPON87069639HIROPON87069639
提出日時 2016-02-27 14:41:32
言語 Python2
(2.7.18)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 308 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 7,084 KB
実行使用メモリ 6,504 KB
最終ジャッジ日時 2023-10-24 18:32:58
合計ジャッジ時間 772 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# -*- coding: utf-8 -*-
N = input()
ok = 0
ng = 0
for i in range(0,N):
    T, S = raw_input().split()
    T = int(T)
    tys = (12 * T) // 1000
    if len(list(S)) <= tys:
        ok += len(list(S))
        ng += 0
    if tys < len(list(S)):
        ok += tys
        ng += len(list(S)) - tys
print ok, ng


0