본문 바로가기

anothel의 지식 창고

검색하기
anothel의 지식 창고
프로필사진 anothel

  • 전체보기 (329)
    • 기술 노트 (154)
      • Apache Spark (5)
      • CMake (1)
      • Docker (1)
      • Google Code Style Guide (14)
      • Hooking (1)
      • Network (1)
      • Oracle (1)
      • SQLite (1)
      • WinDbg (0)
      • 정보보안기사 (108)
    • 독서 기록 (50)
    • 성장 일지 (5)
    • 연습장 (120)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • github
«   2025/05   »
일 월 화 수 목 금 토
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
  • 리눅스
  • 백트래킹
  • 반복해서
  • 하나씩
  • 목표
  • 하늘 위에
  • 의
  • 빨리
  • 그래서
  • 더
  • 너무
  • 마이유폰
  • XOR
  • 민병철 전화영어
  • 얼른
  • codewars
  • 같다.
  • 한번에
  • 하늘이
  • 레벨2
  • 연습하는
  • 열심히
  • ^
  • 회고록
  • 그래도
  • 동적계획법
  • dfs
  • 우물 안 개구리
  • 나는
  • 저
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록big inputs (1)

anothel의 지식 창고

Row of the odd triangle

Given a triangle of consecutive odd numbers: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 ... find the triangle's row knowing its index (the rows are 1-indexed), e.g.: odd_row(1) == [1] odd_row(2) == [3, 5] odd_row(3) == [7, 9, 11] Note: your code should be optimized to handle big inputs. Solution #include std::vector odd_row(unsigned long long n) { std::vector vResult; unsigned long long c = n * (n-..

연습장 2022. 2. 14. 11:58
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바