結果
| 問題 | No.810 割った余りの個数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-11 23:10:55 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 440µs | |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 880 ms |
| コンパイル使用メモリ | 178,388 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-28 19:27:37 |
| 合計ジャッジ時間 | 2,308 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
typedef long long ll;
int main(){
int L,R,M; cin>>L>>R>>M;
if(R-L>=M){cout << M << endl; return 0;}
else cout << R-L+1 << endl;
}