atcoder#KEYENCE2019A. Beginning
Beginning
Score : points
Problem Statement
You are given four digits and . Determine if these can be arranged into the sequence of digits "".
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
If and can be arranged into the sequence of digits "", print YES
; if they cannot, print NO
.
1 7 9 4
YES
We can get by swapping and .
1 9 7 4
YES
We already have before doing anything.
1 2 9 1
NO
4 9 0 8
NO