結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-01-18 21:24:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 178 bytes |
| コンパイル時間 | 447 ms |
| コンパイル使用メモリ | 54,920 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-23 01:20:53 |
| 合計ジャッジ時間 | 2,194 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 RE * 6 |
ソースコード
#include <iostream>
int main()
{
int W; std::cin >> W;
int D; std::cin >> D;
for(int i=0; i<D-1; i++)
{
W -= W/((D-i)*(D-i));
}
std::cout << W << std::endl;
return 0;
}