mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 16:20:27 +08:00
26 lines
270 B
C++
26 lines
270 B
C++
#include <iostream>
|
|
using namespace std;
|
|
int main(){
|
|
int a,b,c,d=0;
|
|
cin >>a>>b>>c;
|
|
if(c%b==0){
|
|
d=a-(c/b);
|
|
if(d<=0){
|
|
cout <<"0";
|
|
}
|
|
else{
|
|
cout <<d;
|
|
}
|
|
}
|
|
if(c%b!=0){
|
|
d=a-(c/b)-1;
|
|
if(d<=0){
|
|
cout <<"0";
|
|
}
|
|
else{
|
|
cout <<d;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|