結果

問題 No.51 やる気の問題
ユーザー akanayaakanaya
提出日時 2020-03-22 17:33:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 153 ms / 5,000 ms
コード長 294 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 29,708 KB
最終ジャッジ日時 2023-08-26 08:20:26
合計ジャッジ時間 6,005 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
29,680 KB
testcase_01 AC 121 ms
29,620 KB
testcase_02 AC 119 ms
29,536 KB
testcase_03 AC 116 ms
29,672 KB
testcase_04 AC 117 ms
29,540 KB
testcase_05 AC 140 ms
29,608 KB
testcase_06 AC 132 ms
29,656 KB
testcase_07 AC 134 ms
29,696 KB
testcase_08 AC 127 ms
29,588 KB
testcase_09 AC 153 ms
29,548 KB
testcase_10 AC 131 ms
29,668 KB
testcase_11 AC 131 ms
29,684 KB
testcase_12 AC 141 ms
29,540 KB
testcase_13 AC 140 ms
29,616 KB
testcase_14 AC 138 ms
29,664 KB
testcase_15 AC 151 ms
29,552 KB
testcase_16 AC 127 ms
29,548 KB
testcase_17 AC 121 ms
29,680 KB
testcase_18 AC 145 ms
29,640 KB
testcase_19 AC 148 ms
29,552 KB
testcase_20 AC 137 ms
29,548 KB
testcase_21 AC 129 ms
29,608 KB
testcase_22 AC 152 ms
29,708 KB
権限があれば一括ダウンロードができます

ソースコード

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