dalao!!!

P7909 [CSP-J 2021] 分糖果

unshown了
by hxlJtTqZh @ 2023-08-13 21:08:10


代码能过的
by ToastBread @ 2023-08-13 21:09:27


其实嘛。。。 几行就完事儿了。。 My AC Code: ```c #include <bits/stdc++.h> using namespace std; int n, l, r; int main() { cin >> n >> l >> r; cout << min(r, l + (n - 1 - l % n)) % n; return 0; } ```
by wzj0829 @ 2023-08-13 21:20:18


代码AC的啊?···
by he_shazi @ 2023-08-14 16:22:51


``` #include<bits/stdc++.h> using namespace std; long long n,l,r,x,s; int main(){ cin>>n>>l>>r; if(l-r>=n||r/n-l/n>=1){ cout<<n-1; return 0; } cout<<r%n; return 0; } ```
by XO_GODG @ 2023-08-15 15:24:36


把<改成!=就行了
by wscmh @ 2023-08-29 16:16:34


@[wscmh](/user/1017173) 谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢dalao
by hxlJtTqZh @ 2023-10-17 17:07:31


@[wzj0829](/user/1028403) 6666666666666666666666666666666666666666
by hxlJtTqZh @ 2023-10-29 10:24:15


|