Gyrating Glyphs
시간 제한6초메모리 제한1024 MB
10^9+7로 나눈 왼쪽부터 계산하는 식에서 숨겨진 + 또는 * 연산자를 입력을 골라 함수를 호출해 알아낸다.
문제
You are rocking the latest breakthrough in Computer Science: animated fonts. Suddenly, all of your colleagues' code looks amazing, and you are finally motivated to review it. Unfortunately, due to the constant rotations, it is hard to distinguish between the (plus) and the (multiply) operators (all the other characters are still readable). The function you are reviewing takes as input integers and returns the value where the operators are either or . For example when given input with hidden operators , then the function returns .
You can still execute the function a few times on some input and read the returned value. Use this to recover the operators.