結果

問題 No.51 やる気の問題
ユーザー HIROPON87069639HIROPON87069639
提出日時 2016-02-27 20:42:48
言語 Python2
(2.7.18)
結果
AC  
実行時間 39 ms / 5,000 ms
コード長 136 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 7,104 KB
実行使用メモリ 9,708 KB
最終ジャッジ日時 2023-10-24 18:38:31
合計ジャッジ時間 1,520 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,724 KB
testcase_01 AC 11 ms
6,724 KB
testcase_02 AC 10 ms
6,552 KB
testcase_03 AC 12 ms
6,832 KB
testcase_04 AC 11 ms
6,748 KB
testcase_05 AC 30 ms
8,652 KB
testcase_06 AC 24 ms
7,860 KB
testcase_07 AC 24 ms
7,860 KB
testcase_08 AC 19 ms
7,332 KB
testcase_09 AC 39 ms
9,444 KB
testcase_10 AC 19 ms
7,444 KB
testcase_11 AC 18 ms
7,340 KB
testcase_12 AC 25 ms
8,124 KB
testcase_13 AC 26 ms
8,124 KB
testcase_14 AC 22 ms
7,680 KB
testcase_15 AC 33 ms
8,916 KB
testcase_16 AC 16 ms
7,212 KB
testcase_17 AC 12 ms
6,920 KB
testcase_18 AC 35 ms
8,916 KB
testcase_19 AC 34 ms
9,180 KB
testcase_20 AC 24 ms
7,876 KB
testcase_21 AC 13 ms
6,916 KB
testcase_22 AC 39 ms
9,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
import math

W = input()
D = input()
for i in range(D, 1, -1):
    W -= math.floor(W / (i ** 2.0))
print int(W)
0