結果

問題 No.35 タイパー高橋
ユーザー pluto77pluto77
提出日時 2016-02-12 20:41:57
言語 Python2
(2.7.18)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 393 bytes
コンパイル時間 828 ms
コンパイル使用メモリ 7,156 KB
実行使用メモリ 6,572 KB
最終ジャッジ日時 2023-10-22 02:38:32
合計ジャッジ時間 1,266 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#coding: utf-8
##yuki_35
import sys

n=int(raw_input())
s=[[0 for i in xrange(2)] for j in xrange(n)]
for i in range(n):
 l=raw_input().split()
 s[i][0]=int(l[0])
 s[i][1]=l[1]

ct=0
wt=0
tt=0
for i in xrange(n):
 chr_cnt=12*s[i][0]/1000
 if len(s[i][1])<=chr_cnt:
  ct+=len(s[i][1])
 else:
  ct+=chr_cnt
  wt+=len(s[i][1])-chr_cnt

for i in xrange(n):
 tt+=len(s[i][1])

wt=tt-ct
print ct,wt
0