結果
| 問題 |
No.128 お年玉(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-08 20:22:19 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 222 bytes |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-01 11:22:15 |
| 合計ジャッジ時間 | 1,403 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 9 WA * 12 |
ソースコード
N = int(input()) #予算
M = int(input()) #子どもの人数
#均等に1000円札で最大となるように配分
if N / M < 1000:
print(0)
elif N / M >= 1000:
x = N // M
print(round(x, -3) - 1000)