코드트리
-
마라톤 중간에 택시타기 24학년/CodeTree 코딩캠프 2025. 3. 6. 12:15
https://www.codetree.ai/trails/complete/curated-cards/challenge-taking-a-taxi-in-the-middle-of-the-marathon-2/description Code Tree | Learning to Code with ConfidenceA super-comprehensive, meticulously arranged Coding Learning Curriculum engineered by Algorithm Experts composed of former International Olympiad in Informatics (IOI) medalists.www.codetree.ai게으른 개발자를 위한 최적 경로 탐색입니다.최대 최소 설정할 땐 impo..
-
되돌아오기 24학년/CodeTree 코딩캠프 2025. 3. 4. 12:00
https://www.codetree.ai/trails/complete/curated-cards/challenge-come-back-2/description 한 세 번정도 틀렸는데 그 이유가왼쪽 바라보는 로직에서 Where + 3 % 4 가 아니라( where + 4 )% 4를 해서이다....뭐지? 테스트케이스는 맞던데 왜 맞았지...? orderS = str(input())dx = [0,1,0,-1]dy = [1,0,-1,0]x,y = 0,0#북쪽보고 시작where = 0cnt = 0for order in orderS: if order == "L": where = ( where +3 ) % 4 cnt += 1 if order == "R": wher..
-
되돌아오기4학년/CodeTree 코딩캠프 2025. 3. 4. 11:29
https://www.codetree.ai/trails/complete/curated-cards/challenge-come-back/description Code Tree | Learning to Code with ConfidenceA super-comprehensive, meticulously arranged Coding Learning Curriculum engineered by Algorithm Experts composed of former International Olympiad in Informatics (IOI) medalists.www.codetree.ai input으로 몇번 명령을 실행할건지 ( N ), 어느방향으로 얼마나 이동할 것인지 ( Where, How )가 주어집니다. 0,0에서..
-