Guest User

Untitled

a guest
Jan 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. Feature: Represents k-adic notation A.K.A. Bijective numeration
  2. 엑셀 등의 스프레드시트 프로그램은 열(column)을 표시하기 위해서 알파벳을 사용합니다.
  3. 열 번호가 주어질 때, 거기에 해당하는 알파벳으로 된 열 이름을 구하는 프로그램을 작성하세요.
  4.  
  5. Scenario Outline: k-adic notation [A-WIKIPEDIA]
  6. Given I have the number <number>
  7. When I represent its k-adic notation
  8. Then I see the notation <result>
  9.  
  10. Examples:
  11. | number | result |
  12. | 0 | |
  13. | 1 | A |
  14. | 2 | B |
  15. | 3 | C |
  16. | 4 | D |
  17. | 26 | Z |
  18. | 27 | AA |
  19. | 28 | AB |
  20. | 52 | AZ |
  21. | 53 | BA |
  22. | 25*26 + 26 | YZ |
  23. | 26*26 + 26 | ZZ |
  24. | 26**2 + 26 + 1 | AAA |
  25. | 26**2 + 26 + 2 | AAB |
  26. | 26**2 + 2*26 + 3 | ABC |
  27. | 4878821185187 | WIKIPEDIA |
Add Comment
Please, Sign In to add comment