結果

問題 No.810 割った余りの個数
ユーザー ninoinui
提出日時 2020-02-05 10:26:37
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
MLE  
実行時間 -
コード長 198 bytes
コンパイル時間 1,521 ms
コンパイル使用メモリ 172,772 KB
実行使用メモリ 813,940 KB
最終ジャッジ日時 2024-09-22 05:31:00
合計ジャッジ時間 5,068 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 MLE * 1 -- * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  int L, R, M;
  cin >> L >> R >> M;
  unordered_set<int> S;
  for (int i = L; i <= R; i++) S.insert(i % M);
  cout << S.size() << "\n";
}
0