結果

問題 No.51 やる気の問題
ユーザー koyumeishi
提出日時 2015-01-15 23:59:13
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 316 bytes
コンパイル時間 562 ms
コンパイル使用メモリ 72,384 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-22 11:58:29
合計ジャッジ時間 1,454 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <cstdio>
#include <sstream>
#include <map>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>
#include <set>
using namespace std;


int main(){
	long long w,d;
	cin >> w >> d;
	while(d>1){
		w -= w/(d*d);
		d--;
	}
	cout << w << endl;
	return 0;
}
0