結果
| 問題 | No.51 やる気の問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-16 22:15:08 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 5,000 ms |
| + 156µs | |
| コード長 | 204 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 82,816 KB |
| 最終ジャッジ日時 | 2026-07-18 07:25:57 |
| 合計ジャッジ時間 | 2,951 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)