Add FZOI Codes

This commit is contained in:
2024-06-26 22:14:00 +08:00
parent 8f564ca60e
commit b80791cfad
49 changed files with 1653 additions and 0 deletions

View 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;
}