report VI VI EN
Register | Login
  • HOME
  • PROBLEMSET
  • ROADMAP
  • COMPETITION
  • TOPIC
  • RANKING
  • GUIDE
  • MASHUP
  • ABOUT
  • CONTACT
  • Problem
  • Submit
  • Results
Age - MarisaOJ: Marisa Online Judge

Age

Time limit: 1000 ms
Memory limit: 256 MB
There are two people, one born on the day $a$, month $b$, year $c$, and the other person born on the day $x$, month $y$, year $z$. Determine which person is older, knowing that they were not born on the same day. ### Input - A single line containing six integers $a, b, c, x, y, z$. ### Output - Print 1 if the first person is older, or 2 if the second person is older. ### Constraints - It is guaranteed that the dates are valid. ### Sample test ``` 7 10 1990 8 10 1990 ``` Output: ``` 1 ```
Input / Output and Condition
Hello Marisa!
A + B
A / B
Complex multiplication
Mushroom Classification
Integer equation
Age
Combine rectangles
String
Triangle
Rounded division
Circle
Calculator
The smallest and biggest
Rectangle
Segment
Distance
Ascending
Square number
Square numbers counting
Uppercase and lowercase
Letter Counting
Time format
Electricity bill
Eating mushroom
Topic
Basic
Rating 800
Solution (3) Solution