Number baseball 5
Time limit1sMemory limit256 MB
Print the fixed number 1234 with no input.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
This is a number baseball game.
The secret is a four-digit string. Each digit is from 0 to 9, and no digit is used more than once. The first digit may be 0.
Compare a guess with the secret as follows.
- A digit that appears in the secret at a different position is a ball.
- A digit that matches both value and position is a strike.
The original statement drew a new secret every 5 minutes (minute 0, 5, ..., 50, 55) and scored times the number of strikes plus the number of balls. Here the secret is fixed as . Print exactly .
Input
This problem has no input.
Output
Print on the first line. The rule that a number may start with 0 describes the format. The required answer is .
Hint
If the secret were , the guesses below would score as follows. In this problem the secret is , so the list only explains the rules.
- gives 0 strikes and 1 ball (1 point)
- gives 1 strike and 1 ball (11 points)
- gives 1 strike and 2 balls (12 points)
- gives 2 strikes and 2 balls (22 points)
- gives 4 strikes and 0 balls (40 points)