結果
| 問題 |
No.810 割った余りの個数
|
| コンテスト | |
| ユーザー |
albusSamurai
|
| 提出日時 | 2019-04-12 21:54:34 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 326 bytes |
| コンパイル時間 | 1,568 ms |
| コンパイル使用メモリ | 166,196 KB |
| 実行使用メモリ | 335,604 KB |
| 最終ジャッジ日時 | 2024-09-14 18:20:16 |
| 合計ジャッジ時間 | 5,379 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 8 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;
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