일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- WEB
- writeup
- 리눅스
- #picoCTF2018
- 버퍼오버플로우
- Hxd
- write up
- reversing
- #hacking
- 정답
- forensics
- 카이사르
- Smashing The Stack For Fun And Profit
- Aleph One
- dreamhack
- CTF
- grep
- 해설
- picoCTF
- 리버싱
- general skills
- 스택
- 해킹 공부
- KOISTUDY
- cryptography
- Protostar
- 시스템
- picoCTF2018
- 시스템해킹
- 번역
Archives
- Today
- Total
Security || AI
[백준(BOJ)] 1110번: 더하기 사이클 본문
#include <stdio.h>
int main()
{
int N, temp, cnt = 0;
scanf("%d", &N);
int input = N;
while(1)
{
temp = (N >= 10)?(int)N/10:0;
temp += N%10;
N = (N%10)*10+temp%10;
cnt++;
if(input == N)
break;
}
printf("%d", cnt);
}
반응형
'Programming > 백준(BOJ)' 카테고리의 다른 글
[백준(BOJ)] 10872번: 팩토리얼 (0) | 2021.02.13 |
---|