結果

問題 No.35 タイパー高橋
ユーザー naoe123naoe123
提出日時 2020-01-27 06:50:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 396 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 8,384 KB
最終ジャッジ日時 2023-10-12 12:48:56
合計ジャッジ時間 657 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,216 KB
testcase_01 AC 21 ms
8,384 KB
testcase_02 AC 19 ms
8,204 KB
testcase_03 AC 19 ms
8,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
T = []
S = []
for i in range(N):
    x1,y1=[i for i in input().split()]
    T.append(int(x1))
    S.append(y1)
miss_type=0
could_type=0
for i in range(N):
    can_type=(T[i]*12)//1000
    char_num=len(S[i])
    if can_type>=char_num:
        could_type+=char_num
    else:
        could_type+=can_type
        miss_type+=char_num-can_type

print(str(could_type)+' '+str(miss_type))
0