結果
| 問題 | No.51 やる気の問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-12-29 16:18:35 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 91 ms / 5,000 ms |
| + 336µs | |
| コード長 | 229 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 95,816 KB |
| 実行使用メモリ | 84,540 KB |
| 最終ジャッジ日時 | 2026-09-05 07:20:52 |
| 合計ジャッジ時間 | 3,967 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline
W = int(input())
D = int(input())
for i in range(D-1):
W = W - (W//(D-i)**2)
print(W)