회원가입
로그인
Toggle navigation
문제
문제
전체 문제
문제 출처
단계별로 풀어보기
알고리즘 분류
추가된 문제
문제 순위
문제
푼 사람이 한 명인 문제
아무도 못 푼 문제
최근 제출된 문제
최근 풀린 문제
랜덤
출처
ICPC
Olympiad
한국정보올림피아드
한국정보올림피아드시․도지역본선
전국 대학생 프로그래밍 대회 동아리 연합
대학교 대회
카카오 코드 페스티벌
Coder's High
ICPC
Regionals
World Finals
Korea Regional
Africa and the Middle East Regionals
Europe Regionals
Latin America Regionals
North America Regionals
South Pacific Regionals
문제집
대회
채점 현황
게시판
그룹
더 보기
재채점 기록
블로그
도움말
전체
공지
자유
질문
오타/오역/요청
게시판 공지
홍보
업데이트
solved.ac
글쓰기
질문 도움말
자주묻는 질문
조용히 테스트 케이스 적고 갑니다.
1280번 - 나무 심기
horsedrinkscoffee
2년 전
2
각 나무를 심는 비용도 함께 적어보았습니다(나머지 연산 처리된 값입니다.) 풀이에 도움되길 바랍니다.
//IN size = 10 187886 141272 135419 73648 31070 130610 169934 21513 140018 112113 //OUT 2's tree cost :46614 3's tree cost :58320 4's tree cost :243633 5's tree cost :413945 6's tree cost :229249 7's tree cost :355603 8's tree cost :719248 9's tree cost :386868 10's tree cost :442569 397197311 //IN size = 50 131785 45147 57504 106749 5801 135786 167388 130740 70490 60948 184943 97390 39786 89021 146605 35644 1968 37091 121665 131177 55829 44379 134217 179688 182629 28663 106462 174228 108385 34777 175207 108427 176152 120585 83627 32508 66725 188952 123486 67087 58070 105230 113224 9899 154441 27515 114258 50475 83458 126 //OUT 2's tree cost :86638 3's tree cost :86638 4's tree cost :135883 5's tree cost :317981 6's tree cost :331944 7's tree cost :521556 8's tree cost :350498 9's tree cost :423016 10's tree cost :451642 11's tree cost :937092 12's tree cost :520111 13's tree cost :785209 14's tree cost :586084 15's tree cost :847234 16's tree cost :995109 17's tree cost :1474239 18's tree cost :1012868 19's tree cost :979698 20's tree cost :1047156 21's tree cost :1020122 22's tree cost :1124708 23's tree cost :1250646 24's tree cost :2111281 25's tree cost :2175983 26's tree cost :1776909 27's tree cost :1296635 28's tree cost :2223813 29's tree cost :1371519 30's tree cost :1939373 31's tree cost :2452603 32's tree cost :1512159 33's tree cost :2543953 34's tree cost :1640674 35's tree cost :1722186 36's tree cost :2495287 37's tree cost :1916051 38's tree cost :3381108 39's tree cost :1914786 40's tree cost :2091057 41's tree cost :2222327 42's tree cost :1917571 43's tree cost :1963317 44's tree cost :3864566 45's tree cost :2906658 46's tree cost :3322084 47's tree cost :2203908 48's tree cost :2724997 49's tree cost :2294477 50's tree cost :4700037 541651284
댓글을 작성하려면
로그인
해야 합니다.
horsedrinkscoffee 2년 전 2
각 나무를 심는 비용도 함께 적어보았습니다(나머지 연산 처리된 값입니다.) 풀이에 도움되길 바랍니다.