시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 427 303 276 71.875%

문제

"The quick brown fox jumped over the lazy dogs."

이 문장은 모든 알파벳이 적어도 한 번은 나오는 문장으로 유명하다.즉 26개의 서로 다른 문자를 갖고 있는 것이다.

각 케이스마다 문장에서 공백, 숫자, 특수 문자를 제외하고 얼마나 다양한 알파벳이 나왔는지를 구하면 된다. 대소문자는 하나의 문자로 처리한다. ex) 'A' == 'a'

입력

입력은 250자를 넘지 않는 문장이 주어진다.

각 문장은 적어도 하나의 공백이 아닌 문자를 포함한다. (알파벳이 아닐 수 있다)

마지막 줄에는 '#'이 주어진다.

출력

각 줄마다 출몰한 알파벳의 개수를 출력하면 된다.

예제 입력 1

The quick brown fox jumped over the lazy dogs.
2 + 2 = 4
New Zealand Programming Contest.
#

예제 출력 1

26
0
16
W3sicHJvYmxlbV9pZCI6Ijc2MDAiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWJiMzhcdWM3OTBcdWFjMDAgXHViYTg3XHVhYzI0XHVhZTRjIiwiZGVzY3JpcHRpb24iOiI8cD48dT4mcXVvdDtUaGUgcXVpY2sgYnJvd24gZm94IGp1bXBlZCBvdmVyIHRoZSBsYXp5IGRvZ3MuJnF1b3Q7PFwvdT48XC9wPlxyXG5cclxuPHA+XHVjNzc0IFx1YmIzOFx1YzdhNVx1Yzc0MCBcdWJhYThcdWI0ZTAgXHVjNTRjXHVkMzBjXHViY2IzXHVjNzc0IFx1YzgwMVx1YzViNFx1YjNjNCBcdWQ1NWMgXHViYzg4XHVjNzQwIFx1YjA5OFx1YzYyNFx1YjI5NCBcdWJiMzhcdWM3YTVcdWM3M2NcdWI4NWMgXHVjNzIwXHViYTg1XHVkNTU4XHViMmU0Llx1Yzk4OSAyNlx1YWMxY1x1Yzc1OCBcdWMxMWNcdWI4NWMmbmJzcDtcdWIyZTRcdWI5NzggXHViYjM4XHVjNzkwXHViOTdjIFx1YWMxNlx1YWNlMCBcdWM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RhaW5zLiBTcGFjZXMsIGRpZ2l0cyBhbmQgcHVuY3R1YXRpb24gYXJlIGlnbm9yZWQuIFVwcGVyIGNhc2UgbGV0dGVycyBhcmUgbm90IGRpc3Rpbmd1aXNoZWQgZnJvbSB0aGVpciBsb3dlciBjYXNlIGNvdW50ZXJwYXJ0cywgc28gJiMzOTtBJiMzOTsgYW5kICYjMzk7YSYjMzk7IGp1c3QgY291bnQgYXMgb25lIGxldHRlci4mbmJzcDs8XC9wPlxyXG4iLCJpbnB1dCI6IjxwPklucHV0IGNvbnNpc3RzIG9mIGEgc2VyaWVzIG9mIGxpbmVzIG9mIHRleHQsIGVhY2ggb25lIG5vIG1vcmUgdGhhbiAyNTAgY2hhcmFjdGVycyBsb25nLiBFYWNoIHBpZWNlIG9mIHRleHQgd2lsbCBjb250YWluIGF0IGxlYXN0IG9uZSBub24td2hpdGUgc3BhY2UgY2hhcmFjdGVyLCBidXQgbm90IG5lY2Vzc2FyaWx5IGEgbGV0dGVyLiBUaGUgbGFzdCBsaW5lIHdpbGwgY29udGFpbiBqdXN0ICMgLSB0aGlzIGxpbmUgc2hvdWxkIG5vdCBiZSBwcm9jZXNzZWQuJm5ic3A7PFwvcD5cclxuIiwib3V0cHV0IjoiPHA+T3V0cHV0IHdpbGwgY29uc2lzdHMgb2YgYSBzaW5nbGUgaW50ZWdlciBmb3IgZWFjaCBsaW5lIG9mIGlucHV0LCBlYWNoIGludGVnZXIgb24gYSBsaW5lIGJ5IGl0c2VsZi4gVGhlIGludGVnZXIgd2lsbCBiZSB0aGUgbnVtYmVyIG9mIGRpZmZlcmVudCBsZXR0ZXJzIGZvdW5kIGluIHRoZSB0ZXh0LiZuYnNwOzxcL3A+XHJcbiIsImhpbnQiOiIiLCJvcmlnaW5hbCI6IjEiLCJwcm9ibGVtX2xhbmdfY29kZSI6Ilx1YzYwMVx1YzViNCJ9XQ==

출처

ACM-ICPC > Regionals > South Pacific > South Pacific Region > New Zealand Programming Contest > NZPC 2008 F번

  • 문제를 번역한 사람: busyhuman
  • 문제의 오타를 찾은 사람: sky1357