結果
| 問題 | No.810 割った余りの個数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-30 19:01:20 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 308 bytes |
| 記録 | |
| コンパイル時間 | 1,629 ms |
| コンパイル使用メモリ | 187,492 KB |
| 実行使用メモリ | 1,214,112 KB |
| 最終ジャッジ日時 | 2026-03-06 23:30:43 |
| 合計ジャッジ時間 | 33,527 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 TLE * 9 MLE * 2 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
using namespace std;
using ll=long long;
int main(){
int l,r,m;
cin>>l>>r>>m;
set<int>se;
for(int i=l; i<=r; ++i){
se.insert(i%m);
}
int ans=0;
for(auto& x:se){
ans++;
}
cout<<ans<<endl;
}