結果
| 問題 | No.810 割った余りの個数 |
| コンテスト | |
| ユーザー |
albusSamurai
|
| 提出日時 | 2019-04-12 21:59:33 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 336 bytes |
| 記録 | |
| コンパイル時間 | 1,049 ms |
| コンパイル使用メモリ | 181,212 KB |
| 実行使用メモリ | 1,306,968 KB |
| 最終ジャッジ日時 | 2026-04-04 14:20:10 |
| 合計ジャッジ時間 | 6,130 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 RE * 2 MLE * 3 -- * 3 |
ソースコード
// Undone
#include <bits/stdc++.h>
#define REP(i, n) for(int i=0;i<(n);++i)
#define LL long long
using namespace std;
int main(void) {
LL L, R, M;
cin >> L >> R >> M;
vector<LL> calc(M,0);
for (LL i = L; i <= R; i++) {
calc[i%M] = 1;
}
LL ans = 0;
for (LL i = 0; i < M; i++) ans += calc[i];
cout << ans << endl;
}
albusSamurai