Gyrating Glyphs
시간 제한: 6000ms메모리 제한: 1024MB출처: BAPC 2021BOJ 23381
문제
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.
예제
예제 1
입력
2 4 6
출력
? 1 1 2 ? 1 1 3 ! +x
예제 2
입력
10 5 6224 640750
출력
? 1 1 1 1 1 1 1 1 1 1 1 ? 0 4 2 4 2 4 2 4 2 4 2 ? 1 2 3 4 5 6 7 8 9 10 11 ! ++xxx+x+xx
이 문제는 채점 준비 중입니다. 테스트 데이터가 확보되면 제출이 가능합니다.