c:
#include<stdio.h>
int main()
{
int n,h,m;
scanf("%d %d %d",&n,&h,&m);
if(m%h==0)
printf("%d",n-m/h);
else
printf("%d",n-m/h-1);
}
c++:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,h,m;
while(cin>>n>>h>>m){
printf("%d",(m%h==0)?n-m/h:n-m/h-1);
}
}
//printf后加判断语句;
Java:
import java.io.*;
public class Main{
public static void main(String[]args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String [] s=br.readLine().split(" ");
int n=Integer.parseInt(s[0]);
int h=Integer.parseInt(s[1]);
int m=Integer.parseInt(s[2]);
System.out.printf("%d",(m%h==0)?n-m/h:n-m/h-1);
}
}