結果

問題 No.810 割った余りの個数
ユーザー yicode
提出日時 2023-05-22 19:26:46
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 254 bytes
コンパイル時間 1,691 ms
コンパイル使用メモリ 164,996 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-22 14:26:03
合計ジャッジ時間 2,893 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 26 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  long long L,R,M; cin >> L >> R >> M;
  long long x = R / M;
  long long y = L / R;
  if(x - y > 1) {
    cout << M << endl;
  }else {
    cout << R - L + 1 << endl;
  }
}
0