結果

問題 No.35 タイパー高橋
ユーザー pumpkin12pumpkin12
提出日時 2021-03-22 14:10:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 249 bytes
コンパイル時間 647 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 7,952 KB
最終ジャッジ日時 2023-08-15 16:37:42
合計ジャッジ時間 1,244 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
can = 0; notcan = 0
for i in range(n):
    [a, b] = input().split()
    dekiru = 12 * int(a) // 1000
    if len(b) >= dekiru:
        can += dekiru
        notcan += len(b) - dekiru
    else:
        can += len(b)
print(can, notcan)
0