結果

問題 No.810 割った余りの個数
ユーザー snneko
提出日時 2019-04-12 22:05:01
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 244 bytes
コンパイル時間 1,711 ms
コンパイル使用メモリ 172,148 KB
実行使用メモリ 389,408 KB
最終ジャッジ日時 2024-09-14 18:56:37
合計ジャッジ時間 5,494 ms
ジャッジサーバーID
(参考情報)
judge6 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 TLE * 1 -- * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
    int L, R, M;
    cin >> L >> R >> M;
    
    set <int> s;
    for (int i = L; i <= R; i++) {
        s.insert(i % M);
    }
    
    cout << s.size() << endl;
    
    return 0;
}
0