結果
| 問題 | No.51 やる気の問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-16 22:15:08 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 5,000 ms |
| コード長 | 204 bytes |
| 記録 | |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 77,444 KB |
| 最終ジャッジ日時 | 2025-12-03 21:13:38 |
|
ジャッジサーバーID (参考情報) |
judge2 / 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)