시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
5 초 512 MB 159 115 108 83.721%

문제

블리트릭스라는 양은 더 빨리 잠을 들기 위한 전략을 세웠다.

먼저, 숫자 N을 뽑는다. 그리고 N, 2 × N, 3 × N 등을 떠올린다. 숫자를 떠올릴 때 마다, 그 숫자의 모든 자리수의 숫자들을 적어놓는데, 이미 적은 숫자는 또 적지 않는다. 0에서 9까지의 모든 숫자가 적히게 되면 잠이 든다.

블리트릭스는 N에서 시작해서 i × N 후에는 (i + 1) × N을 떠올리게 된다. 예를 들어 N = 1692 일 경우, 다음 과 같이 진행된다:

  • N = 1692. 1, 2, 6, 9가 기록된다.
  • 2N = 3384. 1, 2, 3, 4, 6, 8, 9가 기록된다.
  • 3N = 5076. 모든 수가 기록되고, 잠에 빠진다.

블리트릭스가 잠에 빠지는 수는 무엇인가? 영원히 잠에 들 수 없다면 INSOMNIA라고 출력하라.

입력

첫 번째 행은 케이스의 개수, T이다. 다음 행부터는 T개의 케이스들이 나온다. 각 케이스는 블리트릭스가 고른 하나의 숫자 N으로 구성된다.

제한

  • 1 ≤ T ≤ 100.
  • 0 ≤ N ≤ 200.

출력

각 케이스에 대해서, 케이스 번호가 x이고 y가 정답일 때, Case #x: y라고 출력해야 한다.

예제 입력 1

4
0
1
2
11

예제 출력 1

Case #1: INSOMNIA
Case #2: 10
Case #3: 90
Case #4: 110

힌트

예제 입출력 1번에 대해서, 2 × 0 = 0, 3 × 0 = 0 등등으로 이어지므로, 블리트릭스는 0외에는 다른 숫자를 기록할 수 없을 것이며, 따라서 영원히 잠에 들 수 없다.

예제 입출력 2번의 경우, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 순으로 떠올릴 것이며, 0이 가장 마지막에 기록되는 수가 될 것이다. 따라서 10이 마지막 수가 될 것이다.

예제 입출력 3번의 경우, 2, 4, 6... 등등으로 떠올릴 것이다. 숫자 9는 90 전에는 기록할 수 없다. 90을 떠올렸을 때 이미 블리트릭스는 0~8의 숫자를 적었을 것이므로, 90이 마지막 수가 될 것이다.

예제 입출력 4번은 블리트릭스가 11, 22, 33, 44, 55, 66, 77, 88, 99, 110 을 떠올릴 것이고, 110이 마지막 수가 될 것이다.

W3sicHJvYmxlbV9pZCI6IjE0MzgxIiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiXHVjMjJiXHVjNzkwXHVjMTM4XHViMjk0IFx1YzU5MSAoU21hbGwpIiwiZGVzY3JpcHRpb24iOiI8cCBkaXI9XCJsdHJcIj5cdWJlMTRcdWI5YWNcdWQyYjhcdWI5YWRcdWMyYTRcdWI3N2NcdWIyOTQgXHVjNTkxXHVjNzQwIFx1YjM1NCBcdWJlNjhcdWI5YWMgXHVjN2EwXHVjNzQ0IFx1YjRlNFx1YWUzMCBcdWM3MDRcdWQ1NWMgXHVjODA0XHViN2I1XHVjNzQ0IFx1YzEzOFx1YzZlMFx1YjJlNC48XC9wPlxyXG5cclxuPHAgZGlyPVwibHRyXCI+XHViYTNjXHVjODAwLCBcdWMyMmJcdWM3OTAgTlx1Yzc0NCBcdWJmNTFcdWIyOTRcdWIyZTQuIFx1YWRmOFx1YjlhY1x1YWNlMCBOLCAyICZ0aW1lczsgTiwgMyAmdGltZXM7IE4gXHViNGYxXHVjNzQ0IFx1YjVhMFx1YzYyY1x1YjliMFx1YjJlNC4gXHVjMjJiXHVjNzkwXHViOTdjIFx1YjVhMFx1YzYyY1x1YjliNCBcdWI1NGMgXHViOWM4XHViMmU0LCBcdWFkZjggXHVjMjJiXHVjNzkwXHVjNzU4IFx1YmFhOFx1YjRlMCBcdWM3OTBcdWI5YWNcdWMyMThcdWM3NTggXHVjMjJiXHVjNzkwXHViNGU0XHVjNzQ0IFx1YzgwMVx1YzViNFx1YjE5M1x1YjI5NFx1YjM3MCwgXHVjNzc0XHViYmY4IFx1YzgwMVx1Yzc0MCBcdWMyMmJcdWM3OTBcdWIyOTQgXHViNjEwIFx1YzgwMVx1YzljMCBcdWM1NGFcdWIyOTRcdWIyZT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Code Jam > Google Code Jam 2016 > Qualification Round A1번

  • 문제의 오타를 찾은 사람: jh05013

채점

  • 예제는 채점하지 않는다.