Software Engineer가 될래요

  • 홈
  • 태그
  • 방명록

1806 1

[백준 BOJ] 1806 부분합 C++

문제https://www.acmicpc.net/problem/1806 풀이 입력수열의 길이 N부분합 S수열출력: 부분합의 최소 길이알고리즘: 투포인터연속된 수들 중 주어진 부분합을 찾는 문제두 개의 점의 위치를 기록하며 처리하여 리스트에 순차적으로 접근하는 투포인터 사용  코드#include #include #define MAX 100010using namespace std;int N, S;int main() { ios::sync_with_stdio(false); cin.tie(NULL); cin >> N >> S; int arr[N]; for (int i=0;i> arr[i]; } int s=0, e=0, sum=0, result=MAX; while (s = ..

Algorithm 2024.09.27
이전
1
다음
더보기
프로필사진

Software Engineer가 될래요

Infra Engineer가 될래요

  • 분류 전체보기 (37)
    • Algorithm (14)
    • Certification (7)
    • Linux Master (2)
    • Kubernetes (2)
    • Observability (3)
    • Spring & SpringBoot (3)
    • Daily (6)

Tag

작심삼주, labels and selectors, daemonsets, kubectl expose, scheduling 정리, static pods, 쿠버네티스 인 액션, springboot, 티스토리챌린지, manual scheduling, 2473, kubectl edit, replica set, node selector, 리눅스 마스터 1급 필기, resource requirements and limits, kubectl 명령어, cka udemy, multiple schedulers, 프로그래머스, udemy, Spring, boj, CKA, kubectl get, 오블완, core concepts, CPP, taints and tolerations, 이중우선순위큐,

최근글과 인기글

  • 최근글
  • 인기글

공지사항

Archives

Calendar

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

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바