結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
nenuon
|
| 提出日時 | 2017-06-20 16:46:09 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 441 bytes |
| コンパイル時間 | 815 ms |
| コンパイル使用メモリ | 87,348 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-02 06:47:46 |
| 合計ジャッジ時間 | 2,237 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 RE * 6 |
ソースコード
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
using namespace std;
typedef long long ll;
int main(){
int W, D;
cin >> W >> D;
while(D>1){
W -= W / (D * D);
D--;
}
cout << W << endl;
return 0;
}
nenuon