练22.2 欧耶欧耶
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
Nick and Claire are playing a number game. If the number called by Claire is a common multiple of 3 and 5, Nick says "Yay Yay"; for other numbers, he remains silent.
Write a program that takes an integer as input and outputs "Yay Yay" if it is a common multiple of 3 and 5.
Input Format
A single line containing an integer.
Output Format
Output "Yay Yay" or nothing.
Sample
30Yay Yay
20251213 A班作业(10)
- Status
- Done
- Problem
- 10
- Open Since
- 2025-12-13 0:00
- Deadline
- 2025-12-21 23:59
- Extension
- 24 hour(s)