'commit'
This commit is contained in:
11
TangDou/CSP-J/J2-2021/1_1.cpp
Normal file
11
TangDou/CSP-J/J2-2021/1_1.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
int main() {
|
||||
int n, L, R;
|
||||
cin >> n >> L >> R;
|
||||
if (R / n > L / n)
|
||||
cout << n - 1 << endl;
|
||||
else
|
||||
cout << R % n << endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user