컴공생의 공부LOG

#10926 - ??!, #11654 - 아스키 코드, #2743 - 단어 길이 재기, #25314 - 코딩은 체육과목 입니다, #27866 - 문자와 문자열 본문

카테고리 없음

#10926 - ??!, #11654 - 아스키 코드, #2743 - 단어 길이 재기, #25314 - 코딩은 체육과목 입니다, #27866 - 문자와 문자열

푸우키 2026. 2. 20. 19:55

[#10926 - ??!]

 

문자열을 입력받고, 문자열을 조작하는 아주 간단한 문제이다.

 

https://www.acmicpc.net/problem/10926

 

<Python> 26.02.20

id = input()

print(id + "??!")

 

python의 문자열

 

 

비슷한 수준의 문제

[#11654 - 아스키 코드]

<Python> 26.02.20

n = input()

print(ord(n))

 

ord 함수

 

chr 함수

 

[#2743 - 단어 길이 재기]

<Python> 26.02.20

alp = input()

print(len(alp))

 

len 함수

 

[#25314 - 코딩은 체육과목 입니다]

<Python> 26.02.20

n = int(input())
mok = n // 4

print(("long " * mok) + "int")

 

[#27866 - 문자와 문자열]

<Python> 26.02.20

s = input()
i = int(input())

print(s[i - 1])

 

 

https://www.acmicpc.net/problem/11654

https://www.acmicpc.net/problem/2743

https://www.acmicpc.net/problem/25314

https://www.acmicpc.net/problem/27866