CASIO
Time limit2sMemory limit256 MB
Read two integers N and M and print 1 if they are equal, otherwise 0.
- Level
Easy1 of 10
- Topics
- Implementation, Math
- Solved
- No attempts yet
Problem
A Casio calculator is a calculator for everything. Anyone who has taken an exam even once has felt just how much that Casio matters. But even a Casio has a catch: it runs on batteries.
Songchan was taking an exam when his calculator's battery suddenly died. He asked his teacher for a battery, but once he had asked, he realized he had never said what kind of battery the Casio calculator takes! Did the teacher bring the kind of battery Songchan needed?
Input
The battery N that Songchan needs and the battery M that the teacher brought are given.
Both N and M can be integers of up to 10 digits.
Output
Print 1 if it is the battery Songchan wanted, and 0 otherwise.