結果
| 問題 | No.810 割った余りの個数 |
| コンテスト | |
| ユーザー |
albusSamurai
|
| 提出日時 | 2019-04-12 21:54:34 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 326 bytes |
| 記録 | |
| コンパイル時間 | 1,030 ms |
| コンパイル使用メモリ | 179,392 KB |
| 実行使用メモリ | 1,305,144 KB |
| 最終ジャッジ日時 | 2026-04-04 14:15:39 |
| 合計ジャッジ時間 | 6,173 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 9 RE * 1 MLE * 3 -- * 4 |
ソースコード
// 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;
LL calc[M];
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