結果

問題 No.51 やる気の問題
ユーザー 5963
提出日時 2019-06-16 22:43:38
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 478 bytes
コンパイル時間 914 ms
コンパイル使用メモリ 82,768 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-24 21:52:56
合計ジャッジ時間 2,347 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 RE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <climits>
#include <numeric>
#include <cmath>
#include <queue>
#include <sstream>
#include <string.h>
#include <bitset>
#include <stack>

using namespace std;
typedef long long ll;

int main() {
  int W, D;
  cin >> W >> D;
  int ans = 0;
  while(D) {
    int work = W / (D * D);
    ans = work;
    W -= work;
    D--;
  }
  cout << ans << endl;
  return 0;
}
0