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