結果
問題 |
No.51 やる気の問題
|
ユーザー |
|
提出日時 | 2020-11-02 21:02:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 372 bytes |
コンパイル時間 | 674 ms |
コンパイル使用メモリ | 90,836 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-22 08:02:24 |
合計ジャッジ時間 | 2,214 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 6 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <queue> #include <cmath> #include <climits> #include <iomanip> #include <set> #include <map> using namespace std; typedef long long ll; int main(){ ll w,d; cin >> w >> d; for(int i = d;i >= 2;i--){ ll now = w / (i*i); w -= now; } cout << w << endl; }