sawczakl

ccc 2025 junior 1

Feb 11th, 2026 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | Source Code | 0 0
  1. # First sample problem here
  2. # https://cemc.uwaterloo.ca/sites/default/files/documents/2025/2025CCCJrProblems.html
  3.  
  4. N = int(input()) # your place in line
  5. C = int(input()) # number of cars
  6. P = int(input()) # number of people per car
  7.  
  8. # the train's capacity is number of cars times number of people per car
  9. # if your place in line is within that amount, you'll be on the next train
  10.  
  11. if (C * P) >= N:
  12.     print('yes')
  13. else:
  14.     print('no')
  15.  
Advertisement
Add Comment
Please, Sign In to add comment