Submit solution
Points:
5 (partial)
Time limit:
0.1s
Java 8
0.5s
Python
0.5s
Memory limit:
256M
Author:
Problem type
After failing his accounting, physics and engineering tests all in one day,
has decided to give you a problem! The problem is as follows.There are
You are to answer
1 x y
– if there is a piece of salt at outputsalty
, otherwise outputbland
.2 X x
– output the number of pieces of salt with an x-coordinate of .2 Y y
– output the number of pieces of salt with a y-coordinate of .
Input Specification
Input will initiate with two space separated integers
Note: fast input may be required.
Constraints
Subtask 1 [10%]
Subtask 2 [30%]
Subtask 3 [60%]
Output Specification
Sample Input
Copy
5 4
1 2
3 5
4 3
4 5
4 7
1 2 1
1 1 2
2 X 4
2 Y 5
Sample Output
Copy
bland
salty
3
2
Explanation for Sample Output
There is no grain of salt at
Comments