시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 1093 819 782 76.144%

문제

오늘은 갑자기 주사위를 던지고 싶다.

그런데 코딩도 하고 싶다.

그럼 같이할까?

입력

첫째 줄에 테스트 케이스의 개수 T가 주어진다.

각 테스트 케이스는 한 줄로 이루어져 있으며, 주사위를 두 번 던져 나온 두 수를 입력한다.

출력

각 테스트 케이스마다 "Case x: "를 출력한 다음, 주사위를 두 번 던져 나온 두 수의 합을 출력한다. 테스트 케이스 번호(x)는 1부터 시작한다.

예제 입력 1

5
1 2
1 3
3 5
2 6
3 4

예제 출력 1

Case 1: 3
Case 2: 4
Case 3: 8
Case 4: 8
Case 5: 7
W3sicHJvYmxlbV9pZCI6IjkyOTUiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWM4ZmNcdWMwYWNcdWM3MDQiLCJkZXNjcmlwdGlvbiI6IjxwPlx1YzYyNFx1YjI5OFx1Yzc0MCBcdWFjMTFcdWM3OTBcdWFlMzAgXHVjOGZjXHVjMGFjXHVjNzA0XHViOTdjIFx1YjM1OFx1YzljMFx1YWNlMCBcdWMyZjZcdWIyZTQuPFwvcD5cclxuXHJcbjxwPlx1YWRmOFx1YjdmMFx1YjM3MCBcdWNmNTRcdWI1MjlcdWIzYzQgXHVkNTU4XHVhY2UwIFx1YzJmNlx1YjJlNC48XC9wPlxyXG5cclxuPHA+XHVhZGY4XHViN2ZjIFx1YWMxOVx1Yzc3NFx1ZDU2MFx1YWU0Yz88XC9wPlxyXG4iLCJpbnB1dCI6IjxwPlx1Y2NhYlx1YzlmOCBcdWM5MDRcdWM1ZDAgXHVkMTRjXHVjMmE0XHVkMmI4IFx1Y2YwMFx1Yzc3NFx1YzJhNFx1Yzc1OCBcdWFjMWNcdWMyMTggVFx1YWMwMCBcdWM4ZmNcdWM1YjRcdWM5YzRcdWIyZTQuPFwvcD5cclxuXHJcbjxwPlx1YWMwMSBcdWQxNGNcdWMyYTRcdWQyYjggXHVjZj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pY2Ugcm9sbCwgZGV0ZXJtaW5lIGl0cyBzdW0uPFwvcD5cclxuIiwiaW5wdXQiOiI8cD5UaGUgZmlyc3QgbGluZSBvZiBpbnB1dCBpcyB0aGUgbnVtYmVyIG9mIHRlc3QgY2FzZXMgdGhhdCBmb2xsb3cuPFwvcD5cclxuXHJcbjxwPkVhY2ggaW5wdXQgY2FzZSBhcHBlYXJzIG9uIGEgc2luZ2xlIGxpbmUsIGFuZCB3aWxsIGJlIHR3byBzcGFjZS1zZXBhcmF0ZWQgaW50ZWdlcnMsIGVhY2ggcmVwcmVzZW50aW5nIHRoZSB2YWx1ZSBvZiBvbmUgcm9sbGVkIGRpZS4gQWxsIGlucHV0IHdpbGwgYmUgdmFsaWQuPFwvcD5cclxuIiwib3V0cHV0IjoiPHA+Rm9yIGVhY2ggY2FzZSwgb3V0cHV0IHRoZSBsaW5lICZsZHF1bztDYXNlIHg6JnJkcXVvOyB3aGVyZSB4IGlzIHRoZSBjYXNlIG51bWJlciwgb24gYSBzaW5nbGUgbGluZSBmb2xsb3dlZCBieSBhIHNpbmdsZSBzcGFjZSBhbmQgdGhlIHN1bSBvZiB0aGUgcm9sbGVkIGRpY2UgdmFsdWVzLjxcL3A+XHJcbiIsImhpbnQiOiIiLCJvcmlnaW5hbCI6IjEiLCJwcm9ibGVtX2xhbmdfY29kZSI6Ilx1YzYwMVx1YzViNCJ9XQ==

출처

High School > University of Virginia High School Programming Contest > UVa HSPC 2013 P번

  • 문제의 오타를 찾은 사람: shinsy11
  • 문제를 번역한 사람: vumbumy