https://www.acmicpc.net/problem/11718
<Method 1>
1 2 3 4 5 6 7 8 9 10 | #include <stdio.h> #pragma warning(disable : 4996) int main() { char a; for (char a; ~scanf("%c", &a); printf("%c", a)); return 0; } | cs |
<Method 2>
1 2 3 4 5 6 7 8 9 10 11 | #include <stdio.h> #pragma warning(disable : 4996) int main() { char a; while (scanf("%c", &a) != -1) printf("%c", a); return 0; } | cs |
'Algorithm Problems > BOJ' 카테고리의 다른 글
[10845번] QUEUE 큐 - Queue [C++] (0) | 2016.12.27 |
---|---|
[2839번] ŠEĆER(sugar) 설탕 배달 - In/Output [C++] ☆ (0) | 2016.12.27 |
[4673번] Self Number 셀프 넘버 - Method[Java] (0) | 2016.12.22 |
[11718번] Output as is 그대로 출력하기 - In/Output[Java] (0) | 2016.12.22 |
[9012번] Parenthesis 괄호 - Stack[C++] (0) | 2016.12.19 |