結果

問題 No.51 やる気の問題
ユーザー wf4n9wf4n9
提出日時 2017-11-01 13:20:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 236 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-02 04:08:32
合計ジャッジ時間 2,001 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,880 KB
testcase_01 AC 27 ms
10,624 KB
testcase_02 AC 27 ms
10,624 KB
testcase_03 AC 28 ms
10,624 KB
testcase_04 AC 28 ms
10,624 KB
testcase_05 AC 51 ms
10,752 KB
testcase_06 AC 44 ms
10,752 KB
testcase_07 AC 43 ms
10,880 KB
testcase_08 AC 35 ms
10,752 KB
testcase_09 AC 64 ms
10,624 KB
testcase_10 AC 38 ms
10,752 KB
testcase_11 AC 39 ms
10,624 KB
testcase_12 AC 47 ms
10,752 KB
testcase_13 AC 48 ms
10,624 KB
testcase_14 AC 43 ms
10,624 KB
testcase_15 AC 57 ms
10,880 KB
testcase_16 AC 34 ms
10,752 KB
testcase_17 AC 29 ms
10,752 KB
testcase_18 AC 57 ms
10,624 KB
testcase_19 AC 56 ms
10,624 KB
testcase_20 AC 45 ms
10,624 KB
testcase_21 AC 28 ms
10,752 KB
testcase_22 AC 63 ms
10,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

# 残りの作業量
w = int(input())
# 残りの日数
d = int(input())

# ある一日の作業量は w/d^2
def calc_workload(w, d):
	return math.trunc(w / (d * d))

while d > 1:
	w -= calc_workload(w, d)
	d -= 1
print(w)
0