C. Shorter Musical Notes
Time Limit: 1000ms
Memory Limit: 65536KB
64-bit integer IO format: %lld
Java class name: Main
Submit Status PID:
4134
FJ is going to teach his cows how to play a song. The song consists of N (1 <= N <= 10,000) notes, and the i-th note lasts for B_i (1<= B_i <= 120) beats (thus no song is longer than 1,200,000 beats).The cows will
begin playing the song at time 0; thus, they will play note 1 from time 0 through just before time B_1, not......
阅读全文