結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
siguma323
|
| 提出日時 | 2016-05-08 19:16:42 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 526 bytes |
| コンパイル時間 | 890 ms |
| コンパイル使用メモリ | 81,608 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 10:49:49 |
| 合計ジャッジ時間 | 2,117 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 RE * 6 |
ソースコード
#include <vector>
#include <string>
#include <algorithm>
#include <numeric>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <iterator>
#include <cmath>
#include <iomanip>
using namespace std;
using ull = unsigned long long;
using ll = long long;
int main()
{
int w,d;
cin >> w >> d;
for(int i = d; i > 1; --i)
{
double yaruki = w/(i*i);
w -= floor(yaruki);
}
cout << w << endl;
}
siguma323