結果

問題 No.51 やる気の問題
ユーザー gimgim
提出日時 2017-08-30 16:41:18
言語 Python2
(2.7.18)
結果
AC  
実行時間 51 ms / 5,000 ms
コード長 134 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 9,344 KB
最終ジャッジ日時 2024-04-24 07:18:40
合計ジャッジ時間 1,919 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,272 KB
testcase_01 AC 11 ms
6,144 KB
testcase_02 AC 11 ms
6,272 KB
testcase_03 AC 13 ms
6,400 KB
testcase_04 AC 12 ms
6,272 KB
testcase_05 AC 39 ms
8,448 KB
testcase_06 AC 30 ms
7,680 KB
testcase_07 AC 30 ms
7,680 KB
testcase_08 AC 21 ms
7,040 KB
testcase_09 AC 51 ms
9,344 KB
testcase_10 AC 24 ms
7,296 KB
testcase_11 AC 22 ms
7,040 KB
testcase_12 AC 33 ms
7,936 KB
testcase_13 AC 33 ms
7,936 KB
testcase_14 AC 28 ms
7,552 KB
testcase_15 AC 42 ms
8,832 KB
testcase_16 AC 20 ms
6,912 KB
testcase_17 AC 14 ms
6,400 KB
testcase_18 AC 44 ms
8,832 KB
testcase_19 AC 45 ms
8,960 KB
testcase_20 AC 31 ms
7,808 KB
testcase_21 AC 14 ms
6,528 KB
testcase_22 AC 51 ms
9,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

W=int(raw_input())
D=int(raw_input())

for a in range(D, 0, -1):
    work=int(W/(a**2))
    if a ==1:
        print work
    W-=work

0