https://programmers.co.kr/learn/courses/30/lessons/87390
import java.util.*;
class Solution {
public List<Long> solution(int n, long left, long right) {
List<Long> answer = new ArrayList<>();
for(long i=left;i<=right;i++){
long quotient = i/(long)n;
long remainder = i%(long)n;
answer.add(Math.max(quotient,remainder)+1);
}
return answer;
}
}