結果

問題 No.51 やる気の問題
ユーザー akanaya
提出日時 2020-03-22 17:33:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 508 ms / 5,000 ms
コード長 294 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 44,320 KB
最終ジャッジ日時 2024-12-25 01:37:52
合計ジャッジ時間 12,631 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import numpy as np
import queue
import sys 

input = sys.stdin.readline
# sys.setrecursionlimit(25000)

w = int(input())
d = int(input())

task = 0
ans = -1
while(True):
    task = math.floor(w / d / d )
    w -= task
    d -= 1

    if w <= 0:
        break
    
print(task)

    
0