結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 20:19:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 5,000 ms |
| コード長 | 152 bytes |
| コンパイル時間 | 247 ms |
| コンパイル使用メモリ | 82,300 KB |
| 実行使用メモリ | 59,772 KB |
| 最終ジャッジ日時 | 2025-03-20 20:20:40 |
| 合計ジャッジ時間 | 1,839 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
W = int(input())
D = int(input())
ans = 0
current_d = D
for _ in range(D):
ans = W // (current_d ** 2)
W -= ans
current_d -= 1
print(ans)
lam6er