結果

問題 No.51 やる気の問題
ユーザー prog470
提出日時 2016-09-09 14:18:23
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 345 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 68,572 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-16 05:23:12
合計ジャッジ時間 2,467 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 RE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <string>

using namespace std;

int main() {

	int W, D;
	cin >> W >> D;

	for (int i = D; i > 1; i--) {
		W -= W / (i*i);
	}

	cout << W << endl;

	return 0;
}
0