일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- swing
- Reversing
- tar
- crack
- K-shield Jr 10기
- 모바일프로그래밍
- 포렌식
- John the ripper
- 케쉴주
- 써니나타스
- ctf-d
- K-sheild Jr
- SW에듀서포터즈
- Frida
- 파일해시생성
- upx
- disk
- 디스크
- Autoware
- shadow
- 리버싱핵심원리
- Interceptor
- Mobile
- Multimedia
- 안티디버깅
- Android
- CodeEngn
- ZIP
- 침해사고대응
Archives
- Today
- Total
물먹는산세베리아
[BOJ]1193번: 분수찾기 본문
#include <iostream>
using namespace std;
int main() {
int n, i;
cin >> n;
for (i = 1; i < n; i++) {
n = n - i;
}
i % 2 == 0 ? cout << n << "/" << (i + 1 - n) : cout << (i + 1 - n) << "/" << n;
return 0;
}
'Algorithm > 백준' 카테고리의 다른 글
[BOJ] 4153번: 직사각형 C++ (0) | 2021.02.28 |
---|---|
[BOJ] 1085번: 직사각형에서 탈출 (0) | 2021.02.23 |
[BOJ] 2775번: 부녀회장이 될테야 (0) | 2021.02.14 |