본문 바로가기

Hueestory

검색하기
Hueestory
프로필사진 히명

  • 분류 전체보기 (123)
    • study (8)
    • challenge (24)
      • 정보처리기사 필기(完) (5)
      • 정보처리기사 실기 (1)
      • OPIc(完) (15)
      • sqld(完) (3)
    • PS (65)
      • BOJ (54)
      • BOJ history (1)
      • programmers (6)
      • algorithm (4)
    • etc (5)
    • FPGA(중단) (20)
      • verilog (4)
      • tool (2)
      • zynq (9)
      • HDLbits (5)
    • - (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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 31
Tags
  • Xilinx
  • 실기
  • verilog
  • java
  • Backjoon
  • Zynq
  • FPGA
  • 백준
  • boj
  • chip2chip
  • UNIX
  • 정처기
  • AMBA BUS
  • amba
  • Beakjoon
  • Vivado
  • linux
  • SQL
  • verilog HDL
  • 정보처리기사
  • hdl
  • HDLBits
  • vitis
  • Bus
  • C++
  • 코딩테스트
  • 자격증
  • 리눅스
  • baekjoon
  • axi
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Backjoon (1)

Hueestory

[1850] 최대공약수 (C++)

#include #include using namespace std;typedef long long ll;ll gcd(ll a, ll b) { if (a % b == 0) return b; else return gcd(b, a % b);}int main() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); ll a, b; cin >> a >> b; ll c; if (a >= b) c = gcd(a, b); else if (a  1. 1로 이루어진 수라고 해도, 결국 최대공약수를 구하는 문제이다ex) a = 6, b = 3인 경우6 % 3 == 0, GCD = 3111111 % 111 == 0, G..

PS/BOJ 2024. 5. 23. 07:27
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바