結果
問題 | No.810 割った余りの個数 |
ユーザー |
![]() |
提出日時 | 2019-04-12 21:22:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 549 bytes |
コンパイル時間 | 1,099 ms |
コンパイル使用メモリ | 99,700 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 16:39:35 |
合計ジャッジ時間 | 1,907 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
#include <algorithm> #include <iostream> #include <iomanip> #include <cstring> #include <string> #include <vector> #include <random> #include <bitset> #include <queue> #include <cmath> #include <stack> #include <set> #include <map> typedef long long ll; using namespace std; const ll MOD = 1000000007LL; int main() { cin.sync_with_stdio(false); cin.tie(0); cout.tie(0); int l, r, m; cin >> l >> r >> m; if (r - l + 1 <= m) { cout << r - l + 1 << "\n"; } else { cout << m << "\n"; } return 0; }