https://www.acmicpc.net/problem/11721
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #include <iostream> #include <stdio.h> #include <string> #pragma warning(disable : 4996) using namespace std; int main() { string input; cin >> input; int idx = 0; int end = input.length(); while (idx < end) { cout << input[idx]; idx++; if (idx % 10 == 0) printf("\n"); } printf("\n"); return 0; } | cs |
<Amazing Code From yunsubaek>
1 | main(a){for(;~scanf("%10s",&a);)puts(&a);} | cs |
'Algorithm Problems > BOJ' 카테고리의 다른 글
[5397번] Keylogger 키로거 - Stack[C++] (0) | 2017.01.02 |
---|---|
[10817번] Three Interger 세 수 - if condition[C++] (0) | 2017.01.02 |
[1924번] In 2007 2007년 - For Loop [C++] ☆ (0) | 2016.12.28 |
[2439번] Star Shooting 2 별찍기2 - For loop [C++] (0) | 2016.12.28 |
[10845번] QUEUE 큐 - Queue [C++] (0) | 2016.12.27 |