Editorial
Algorithm Analysis
Petrusha will be able to buy pies.
Algorithm Implementation
Read the input data. Calculate and output the answer.
scanf("%d %d", &m, &n); res = m / n; printf("%d\n", res);
Java Implementation
import java.util.*; public class Main { public static void main(String[] args) { Scanner con = new Scanner(System.in); int m = con.nextInt(); int n = con.nextInt(); System.out.println(m / n); con.close(); } }
Python Implementation
m, n = map(int, input().split()) print(m // n)