結果
問題 | No.128 お年玉(1) |
ユーザー |
|
提出日時 | 2019-08-20 13:26:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 5,000 ms |
コード長 | 381 bytes |
コンパイル時間 | 100 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-01 11:06:06 |
合計ジャッジ時間 | 1,411 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
def main():budget = int(input())children = int(input())if budget / children < 1000:print("0")else:if budget / 1000 % children == 0:mount = budget / childrenprint(int(mount))else:mount = round(budget / 1000 // children) * 1000print(int(mount))if __name__ == "__main__":main()