結果
問題 |
No.810 割った余りの個数
|
ユーザー |
![]() |
提出日時 | 2023-08-22 00:57:00 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 1,108 ms |
コンパイル使用メモリ | 97,828 KB |
最終ジャッジ日時 | 2025-02-16 12:11:22 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
#include<iostream> #include<map> #include<vector> #include <algorithm> #include<math.h> #include <iomanip> #include<set> #include <numeric> using namespace std; int main() { int l, r, m, ans; cin >> l >> r >> m; if ((ans = r - l + 1) >= m) cout << m << endl; else cout << ans << endl; }