mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-07 18:06:58 +08:00
Add FZOI Codes
This commit is contained in:
10
FZOI/[CSP-J 2021] 分糖果.cpp
Normal file
10
FZOI/[CSP-J 2021] 分糖果.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#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