본문 바로가기 메뉴 바로가기

인생발전기원

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

인생발전기원

검색하기 폼
  • 분류 전체보기 (963)
    • 백준 (574)
      • 골드 (226)
      • 실버 (343)
      • 브론즈 (2)
      • 플래티넘 (2)
      • 대회 (1)
    • 프로그래머스 (50)
      • 2레벨 (48)
    • Unreal (321)
      • 시작해요 언리얼 2023 (6)
      • Udemy 강의 (314)
      • 게임 개발 (1)
    • Unity (1)
      • 게임 개발 (1)
    • 게임 (12)
      • 플레이한 게임 목록 (12)
    • CS (0)
  • 방명록

2025/05/04 (2)
[백준 1253번] 좋다 (C++)

문제링크 : https://www.acmicpc.net/problem/1253#include using namespace std;typedef long long ll;int main() { ios::sync_with_stdio(false); cin.tie(NULL); int N, result = 0; cin >> N; vectorv(N); for(int i=0; i> v[i]; sort(v.begin(), v.end()); for(int i=0; i v[l]+v[r]) l++; else r--; } } cout 투 포인터를 활용한 문제이다.투 포인터 사용을 위해 우선 입력받은 값들을 정렬시키고 시작한다. 해당 문제에서..

백준/골드 2025. 5. 4. 05:37
[프로그래머스 2레벨] 퍼즐 게임 챌린지 (C++)

#include #include #include using namespace std;int solution(vector diffs, vector times, long long limit) { int l = 1, r = *max_element(diffs.begin(), diffs.end()); int answer = 0; while(l level { int prev_time = (i > 0) ? times[i - 1] : 0; total += (prev_time + times[i]) * (diffs[i] - mid); } } if(total > lim..

프로그래머스 2025. 5. 4. 05:03
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 언리얼 엔진
more
«   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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바