結果
| 問題 | No.51 やる気の問題 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2016-08-16 22:15:08 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 46 ms / 5,000 ms | 
| コード長 | 204 bytes | 
| コンパイル時間 | 432 ms | 
| コンパイル使用メモリ | 7,040 KB | 
| 実行使用メモリ | 6,656 KB | 
| 最終ジャッジ日時 | 2024-11-07 18:27:04 | 
| 合計ジャッジ時間 | 1,849 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 20 | 
ソースコード
#!/usr/bin/python
# -*- coding: utf-8 -*-
import math
W = int(raw_input())
D = int(raw_input())
total = W
for i in xrange(D-1):
       	total -= math.floor( total / (D * 1.0 - i ) ** 2 )
print int(total)
            
            
            
        