結果

問題 No.35 タイパー高橋
ユーザー MamonboMamonbo
提出日時 2015-06-21 17:16:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 423 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 7,772 KB
最終ジャッジ日時 2023-09-21 22:46:32
合計ジャッジ時間 796 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#coding=UTF-8
#えっ、器物損壊?
#文字自体は関係無いとかこええ

N=int(input())

hits=0
myon=0
for idx in range(0,N,1):
    mojir=input()
    hyo=mojir.split(" ")
    T=int(hyo[0])
    S=hyo[1]

    maxtype=12*T//1000
    if maxtype>=len(S):
        hits=hits+len(S)
        myon=myon
    else:
        hits=hits+maxtype
        myon=myon+(len(S)-maxtype)
    #print(hits,myon)

print("%d %d"%(hits,myon))
0