摘要: 题目链接:http://codeforces.com/problemset/problem/302/B题目意思:给出两个整数n和m,接下来n行给出n首歌分别的奏唱时间和听的次数,紧跟着给出m个时刻,需要对每个时刻输出该时刻正在弹奏哪一首歌曲。 解题关键是每个时刻v有着这样的规律vi 2 #include 3 #include 4 using namespace std; 5 6 const int maxn = 1e5 + 5; 7 __int64 song[maxn], c, t, v, cnt; 8 9 int main()10 {11 int n, m, i, j; 1... 阅读全文
posted @ 2014-01-29 16:26 windysai 阅读(249) 评论(0) 推荐(0) 编辑