摘要: NC24866 [USACO 2009 Dec S]Music Notes FJ is going to teach his cows how to play a song. The song consists of N (1 <= N <= 50,000) notes, and the i-th note lasts for Bi (1 <= Bi <= 10,000) beats (thus no song is longer than 500,000,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 B1, note 2 from time B1 through just before time B1 + B2, etc. However, recently the cows have lost interest in the song, as they feel that it is too long and boring... 阅读全文
posted @ 2022-07-28 10:24 仪战群儒 阅读(58) 评论(0) 推荐(0)