목록코딩테스트 (5)
일상 코딩

Visual Studio에 헤더파일 추가하기 출처:https://hkhan.tistory.com/36 [C++] Visual Studio에 헤더파일 추가하기 알고리즘 문제를 풀 때, 필요한 헤더 파일들을 매번 include 해주는 과정이 귀찮게 느껴질 수 있다. 자주 쓰이는 헤더 파일들을 담은 stdc++.h 파일을 다운로드 받은 후, 코드 컴파일러의 include 파일 hkhan.tistory.com C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include 위 경로에서 "bits" 폴더 생성 후 "stdc++.h" 파일 넣는다. #include // include 신경쓰지 않고 코딩에만 집중 int ..
https://blogshine.tistory.com/101 코딩테스트 효과적인 C++ 코드 작성 팁 해당 본문의 원문의 출처는 Geeks for Geeks 입니다. 이과생이 공부겸 번역한 딱딱한 어투의 글 입니다. 문제가 될시 삭제하겠습니다. Writing C/C++ code efficiently in Competitive programming - GeeksforGee.. blogshine.tistory.com

from enum import Enum from typing import List, NamedTuple, Callable, Optional import random from math import sqrt from urllib.parse import MAX_CACHE_SIZE # from generic_search import dfs, bfs, node_to_path, astar, Node class Cell(str, Enum): EMPTY = " " BLOCKED = "X" START = "S" GOAL = "G" PATH = "*" class MazeLocation(NamedTuple): row: int column: int class Maze: def __init__(self, rows: int = ..
#include using namespace std; int main(){ // input.txt 파일로 데이터를 받는다. freopen("input.txt", "rt", stdin); int N, i, age, max = -2147000000, min = 2147000000; cin >> N; for(i = 0; i > age; if( age > max){ max = age;} if( age < min){ min = age;} } cout