結果

問題 No.128 お年玉(1)
ユーザー 猫吉
提出日時 2018-10-24 22:44:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 193 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-10-01 10:53:40
合計ジャッジ時間 1,490 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())
m = int(input())

if n >= m*1000:
    if int(n/m) % 1000 == 0:
        print(int(n/m))
    else:
        print(1000*math.floor(int(n/m) / 1000))
else:
    print(0)
0