結果
| 問題 |
No.810 割った余りの個数
|
| コンテスト | |
| ユーザー |
albusSamurai
|
| 提出日時 | 2019-04-12 21:59:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 336 bytes |
| コンパイル時間 | 1,623 ms |
| コンパイル使用メモリ | 167,796 KB |
| 実行使用メモリ | 335,624 KB |
| 最終ジャッジ日時 | 2024-09-14 18:37:06 |
| 合計ジャッジ時間 | 5,484 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 TLE * 1 -- * 9 |
ソースコード
// 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