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

Eating mushroom

Time limit: 1000 ms
Memory limit: 256 MB
On non-weekend days (Monday to Friday), Marisa eats a mushroom each day. Marisa starts eating mushrooms on day $x$. Determine how many mushrooms Marisa has eaten after $y$ days. ### Input - A single line containing two integers $x$ and $y$. ### Output - Print the number of mushrooms Marisa has eaten. ### Constraints - $2 \le x \le 8$ where $x=8$ corresponds to Sunday. - $1 \le y \le 10^6$. ### Example Input: ``` 6 5 ``` Output: ``` 3 ```
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 (2) Solution