Jubeat
시간 제한4초메모리 제한1024 MB
점수 S가 주어질 때, [a,b] 구간의 노트 수 N 중에서 달성 가능한 내림 점수의 최댓값이 S가 되는 모든 N의 합을 구한다.
문제
Recently, Nana is spending a lot of time playing “Jubeat”, the latest arcade music game from Konami. The game consists of a grid. When a note pops up in some of the cells, the player must push that cell following the rhythm of the music.
For each note pushed, the player is awarded points. If a song contains notes, a player will receive points if the timing of the push is perfect. For notes where the timing was less perfect, she can receive either %, %, or % of this score. After the song is over, the sum of all the points will be rounded down to the nearest integer.
Nana just played a song and received a score of : however he doesn’t know the number of notes in the song. However, he suspects lies in an interval . Write a program that calculates the sum of all possible s in that range.
입력
The input consists of test cases. The number of test cases is given in the first line of the input. Each test case consists of a single line with three integers: (), and ().
출력
Print exactly one line for each test case. The line should contain an integer indicating the sum of all possible in the given range.