竞赛
考级
法兰西玫瑰
#include<bits/stdc++.h> using namespace std; int n,x,y,apple; int main(){ cin>>n>>x>>y; if(y%x==0) apple=n-y/x; else apple=n-(y/x)-1; if(apple>0) cout<<apple; else cout<<0;
Lightky
元始天尊
#include<bits/stdc++.h> using namespace std; int main(){ int n,x,y; cin >> n >> x >> y ; n -= ceil (y * 1.0 / x); if(n < 0) n = 0; cout << n << endl; return 0; } 点个赞!
空降坐标:CP003211 请看代码
hLWawa
ACOI
嫌疑を避ける ~~
#include<cstdio> #include<iostream> #include<cmath> using namespace std; int main(){ int a,b,c; cin >> a>> b>> c; a=a-c/b; if (c%b!=0){ a-=1; } if(a<0){ a=0; } cout << a; return 0; }
Zด้้้้้็้้้้้้้็
#include<bits/stdc++.h> using namespace std; int main(){ long long a,b,c,d; cin>>a>>b>>c; d=c/b; if(c%b!=0) d++; if(a-d<=0) cout<<"0"; else cout<<a-d; }
AC神