SW개발/코딩테스트

[코드업 기초 100제]1001~1008번 문제 풀이

1001번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
print("Hello")

1002번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
print("Hello World")

1003번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
print("Hello\nWorld")

1004번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
print("'Hello'")

1005번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
print("\"Hello World\"")

1006번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
print("\"!@#$%^&*()\"")

1007번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
print("\"C:\Download\hello.cpp\"")

1008번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
print("\u250C\u252C\u2510")
print("\u251C\u253C\u2524")
print("\u2514\u2534\u2518")

 

728x90