Primer decimal parell?
Submit solution
Points:
10
Time limit:
5.0s
Memory limit:
256M
Author:
Problem types
Allowed languages
C#, Go, Java, Python
Volem saber si, donat un nombre decimal, el seu primer dígit decimal és parell (true
) o senar (false
). Cal tenir en compte que el zero es considera un nombre parell.
Input Format
Una nombre decimal.
Constraints
-
Output Format
Si el primer dígit de la part decimal del nombre és parell, cal mostrar true
per pantalla.
Altrament, cal mostrar false
per pantalla.
Test Case 1
Input
Copy
5.1
Output
Copy
false
Test Case 2
Input
Copy
7.49
Output
Copy
true
Test Case 3
Input
Copy
10
Output
Copy
true
Test Case 4
Input
Copy
4.5
Output
Copy
false
Test Case 5
Input
Copy
7.75
Output
Copy
false
Test Case 6
Hidden: this is a private test case!
CC BY-NC-SA 4.0