結果

問題 No.836 じょうよ
ユーザー yicode
提出日時 2023-06-13 15:17:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 569 bytes
コンパイル時間 1,663 ms
コンパイル使用メモリ 166,164 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-13 04:37:05
合計ジャッジ時間 4,028 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 40
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
long long primeNumber(long long x) {
  bool fire = true;
  for(int i = 2; i <= sqrt(x); i++) {
    if(x % i == 0) {
      fire = false;
    }
  }
  return fire;
}
int main() {
  long long L,R,N; cin >> L >> R >> N;
  long long X = R / N;
  long long Y = L / N;
  long long XY = X - Y;
  long long A = ((R) - XY) / (N - 1);
  if(XY == 0) {
    cout << 1 << endl;
    return 0;
  }
  cout << XY << endl;
  for(int i = 0; i < N - 1; i++) {
    cout << A << endl;
  }
}
0