Kronecker Delta
Statement
Goal
The Kronecker Delta function acts on two numbers(restricted to integers in this case) and returns 1 if the numbers are the same and 0 if the numbers are different.Input
Line 1:Two integers, A and B, separated by a space that represent the two inputs to the Kronecker Delta function
Output
Line 1:One integer, the result of plugging A and B into the Kronecker Delta function
Constraints
-16,000 < A,B < 16,000
Example
Input
1 2
Output
0
Game modes
Fastest, Shortest, Reverse
Test cases
Test 1 Test
Input
1 2
Output
0
Validator 1 Validator
Input
2 4
Output
0
Test 2 Test
Input
-13 13
Output
0
Validator 2 Validator
Input
-65 65
Output
0
Test 3 Test
Input
-1302 -1302
Output
1
Validator 3 Validator
Input
-1633 -1633
Output
1
Test 4 Test
Input
12222 12222
Output
1
Validator 4 Validator
Input
13233 13233
Output
1
Solution language
Solution
Stub generator input