結果
| 問題 |
No.810 割った余りの個数
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-04-18 02:53:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 705 bytes |
| コンパイル時間 | 1,721 ms |
| コンパイル使用メモリ | 167,044 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-03 22:20:43 |
| 合計ジャッジ時間 | 2,956 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
//FA専用
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define int long long
const long long LINF=1e18;
template<typename T>
void chmax(T &a,T b){
if(a<b)a=b;
}
template<typename T>
void chmin(T &a,T b){
if(a>b)a=b;
}
template<typename T>
void fin(T a){
cout<<a<<endl;
exit(0);
}
bool prime(int a){
for(int i=2;i*i<=a;i++)if(a%i==0)return false;
return 1;
}
bool hei(int a){
for(int i=2;i*i<=a;i++)if(i*i==a)return 1;
return 0;
}
bool rippo(int a){
for(int i=2;i*i<=a;i++)if(i*i*i==a)return 1;
return 0;
}
bool kanzen(int a){
return a==6||a==28;
}
signed main(){
int l,r,m;cin>>l>>r>>m;
cout<<min(m,r-l+1)<<endl;
}
cureskol