結果
| 問題 |
No.810 割った余りの個数
|
| コンテスト | |
| ユーザー |
mzkr
|
| 提出日時 | 2019-05-06 05:40:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 285 bytes |
| コンパイル時間 | 512 ms |
| コンパイル使用メモリ | 63,504 KB |
| 実行使用メモリ | 750,692 KB |
| 最終ジャッジ日時 | 2024-06-26 21:15:23 |
| 合計ジャッジ時間 | 25,040 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 MLE * 1 -- * 6 |
ソースコード
#include <iostream>
using namespace std;
bool d[1000000000];
int main() {
int l, r, m;
cin >> l >> r >> m;
for (int i = l; i <= r; ++i) {
d[i % m] |= true;
}
int c = 0;
for (int i = 0; i < 1000000000; ++i) {
if (d[i]) c++;
}
cout << c << endl;
return 0;
}
mzkr