[BOJ 1373] 2진수 8진수

View as PDF

Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 128M

Problem types
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

2진수가 주어졌을 때, 8진수로 변환하는 프로그램을 작성하시오.

입력 형식

첫째 줄에 2진수가 주어진다. 주어지는 수의 길이는 1,000,000을 넘지 않는다.

출력 형식

첫째 줄에 주어진 수를 8진수로 변환하여 출력한다.

예제 입력

11001100

예제 출력

314

Comments

There are no comments at the moment.