Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- HTML
- 머신러닝
- 숙명여자대학교 정보보안 동아리
- CSS
- WarGame
- Sookmyung Information Security Study
- 백준
- 드림핵
- BOJ
- hackerrank
- PHP 웹페이지 만들기
- 풀이
- 숙명여자대학교 정보보안동아리
- The Loard of BOF
- hackctf
- lob
- 생활코딩
- BOJ Python
- Python
- 기계학습
- c++
- 파이썬
- c
- C언어
- Javascript
- XSS Game
- SWEA
- siss
- 웹페이지 만들기
- 자료구조 복습
Archives
- Today
- Total
목록무한이진트리 (1)
혜랑's STORY
[BOJ_C++] 2078번 : 무한이진트리
code #define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int a, b; cin >> a >> b; int x, y; x = y = 0; while (true) { if (a == 1) { y += b - 1; break; } else if (b == 1) { x += a - 1; break; } if (a > b) x += a / b, a %= b; else y += b / a, b %= a; } printf("%d %d"..
무지성 공부방/알고리즘 해결
2021. 8. 6. 18:28