끄적끄적 보니타

  • 홈

1193 1

단계별로 풀기 8단계 수학 1 - 분수찾기(1193번 문제) Python3 답안

코드) input_num = int(input()) index = 2 cnt = 1 while cnt < input_num: cnt += index index += 1 index -= 1 cnt -= input_num if index % 2 == 0: son = index - cnt mom = 1 + cnt else: son = 1 + cnt mom = index - cnt print(str(son)+"/"+str(mom)) 문제) https://www.acmicpc.net/problem/1193 1193번: 분수찾기 첫째 줄에 X(1 ≤ X ≤ 10,000,000)가 주어진다. www.acmicpc.net

Algorithm/Baekjoon 2019.10.12
이전
1
다음
더보기
프로필사진

끄적끄적 보니타

더 나은 개발자가 되기 위해... ※ 잘못된 정보가 있거나 추가적인 정보가 필요하다면 피드백 부탁드립니다~

  • 분류 전체보기 (322)
    • Programming (98)
      • Python (2)
      • Java (0)
      • JavaScript & TypeScr.. (69)
      • Shell (2)
      • Unity (1)
    • Web (17)
    • Linux (8)
    • Algorithm (141)
      • Baekjoon (67)
      • Do it (30)
      • codewars (28)
      • Programmers (2)
      • SWEA (10)
      • algospot (0)
    • AI (4)
    • Database (7)
    • Security (8)
    • 기타 (26)
    • 교육 (10)
      • 자격증 (1)
      • 컨퍼런스 & 워크샵 (8)
      • 도큐먼트 & 관련 서적 (1)
    • Project (0)
    • 일상 (1)
    • 영어 (1)

Tag

baekjoon, Python, python3, 백준, wargames, Over_The_Wire, overthewire, Linux, C언어, 자료구조, Angular, DOIT, angular5, OverTheWire:Natas, BOJ, 답안, Command, C, python2, 알고리즘,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • github 주소
  • 01210210
  • 예프

티스토리툴바