Logo
(追記) (追記ここまで)

24798번 - The Weight Of Words 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB26313010746.522%

문제

Justin likes to play a game called "Weight of Words." In this game, a player must find words of a given length and a given weight. The weight of a word is the sum of the weights of its letters. Letters are English lowercase characters from 'a' to 'z' and have weights from 1ドル \ldots 26$.

You are asked to write an AI that can play this game!

입력

The input consists of a single line with two integers $l$ (0ドル < l \le 40$) and $w$ (0ドル < w \le 1000$).

출력

Output a string of length $l$ with weight $w$ consisting of lowercase English letters if it exists, otherwise output impossible. If more than one string exists, you may output any of them.

제한

예제 입력 1

11 131

예제 출력 1

programming

예제 입력 2

7 96

예제 출력 2

contest

예제 입력 3

26 677

예제 출력 3

impossible

힌트

출처

School > Virginia Tech High School Programming Contest > 2017 Virginia Tech High School Programming Contest F번

  • 문제를 만든 사람: Justin Park
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /