結果
| 問題 | No.810 割った余りの個数 |
| コンテスト | |
| ユーザー |
autumn_314
|
| 提出日時 | 2019-04-12 21:33:37 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1,617 ms / 2,000 ms |
| コード長 | 419 bytes |
| 記録 | |
| コンパイル時間 | 508 ms |
| コンパイル使用メモリ | 95,192 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-04 13:59:13 |
| 合計ジャッジ時間 | 6,818 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
#include <stdio.h>
#include <string>
#include <iostream>
#include <iomanip>
#include <map>
#include <algorithm>
#include <vector>
#include <math.h>
#define MOD (long long)1000000007
using namespace std;
int main(void){
int l,r,m;
cin >> l >> r >> m;
int check=-1,ans=1;
check=l%m;
for(int i=l+1; i<=r; i++){
if(i%m==check)break;
ans++;
}
cout << ans << endl;
return 0;
}
autumn_314