본문 바로가기
백준

[8741] 이진수 합

by Jcoder 2018. 9. 3.


#include <iostream>
#include <string>
using namespace std;
int main()
{
int n;
cin >> n;
string front(n, '1');
string back(n - 1, '0');
cout << front.c_str() << back.c_str() << endl;
}


'백준' 카테고리의 다른 글

[10546] 배부른 마라토너/ [프로그래머스] 완주하지 못한 선수  (0) 2018.09.14
[12790] Mini Fantasy War  (0) 2018.09.10
[10995] 별 찍기 - 20  (0) 2018.08.29
[15156] 과제  (0) 2018.08.27
[15000] CAPS  (0) 2018.08.26