結果

問題 No.35 タイパー高橋
ユーザー machoniumpmachoniump
提出日時 2023-09-18 22:57:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 194 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 7,884 KB
最終ジャッジ日時 2023-09-18 22:58:04
合計ジャッジ時間 1,013 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N=int(input())
y=n=0
for i in range(N):
    t,s=map(str,input().split())
    t=int(t)
    s=len(s)
    ty=12*t//1000
    if s<=ty:
        y+=s
    else:
        y+=ty
        n+=s-ty
print(y,n)
0