현재 템플릿 코드
전역변수 선언
configure
solve
main
min,max,abs 수학함수
Print -> buffered stdout에 printf
PrintInts -> 정수 슬라이스 출력
Scan -> buffered stdin에서 scanf
Int -> 정수 하나랑 개행읽기
Ints -> 정수 배열 읽기
https://codeforces.com/contest/1791/problem/G2
Problem - G2 - CodeforcesProblem - G2 - Codeforcescodeforces.com위 문제 풀이 코드
prefix sum 과 이분탐색(upper_bound) 을 씀
댓글 0