結果

問題 No.35 タイパー高橋
ユーザー etale.K3etale.K3
提出日時 2020-12-05 17:37:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 158 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,464 KB
実行使用メモリ 7,896 KB
最終ジャッジ日時 2023-10-13 22:21:31
合計ジャッジ時間 678 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())

G,B = 0,0

for _ in range(N):
    T,S = input().split()
    g = min(len(S), int(int(T)*12/1000))
    G += g
    B += len(S) - g

print(G, B)
0