結果
| 問題 | No.810 割った余りの個数 |
| コンテスト | |
| ユーザー |
hitowhoknowknow
|
| 提出日時 | 2019-04-16 17:59:54 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 324µs | |
| コード長 | 735 bytes |
| 記録 | |
| コンパイル時間 | 369 ms |
| コンパイル使用メモリ | 97,260 KB |
| 実行使用メモリ | 9,792 KB |
| 最終ジャッジ日時 | 2026-09-02 08:12:53 |
| 合計ジャッジ時間 | 1,878 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <queue>
#include <string>
#include <bitset>
#include <list>
using namespace std;
#define rep(i,a,n) for(ll i=a;i<n;i++)
#define rrep(i,a,n) for(ll i=n;i>=a;i--)
#define elif else if
typedef long long ll;
typedef pair<ll,ll> P;
const ll INF = 1e+17;
const ll MODcdf = 998244353;
bool pairCompare(const P& firstElof,const P& secondElof){
return firstElof.first<secondElof.first;
}
int main(){
cin.tie(0);
ios_base::sync_with_stdio(false);
ll l,r,m;cin>>l>>r>>m;
ll md[m];
ll ans=0;
if(r-l+1>=m){
cout<<m<<endl;
return 0;
}
else{
cout<<r-l+1<<endl;
return 0;
}
}
hitowhoknowknow