結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-06 18:45:10 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 148 bytes |
| コンパイル時間 | 385 ms |
| コンパイル使用メモリ | 53,724 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-14 02:35:00 |
| 合計ジャッジ時間 | 1,270 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | WA * 20 |
ソースコード
#include <iostream>
using namespace std;
int main(void){
int w,d;
cin>>w>>d;
while(d>1) w-=w/(d*d--);
cout<<w<<"\n";
return 0;
}