Codeforces Beta Round #99 (Div.2 Div.1)
はい。
http://codeforces.com/contest/139
A. Petr and Book
implementation
ざっくりと大意
・nページの本を月曜日から計画して常に決まったページ数を読み進め続けて読み終わるのは何曜日か??
方針のようなもの
・月〜日の計画ページ数を本のページ数が0以下になるまでループ回して引き続ける。
n=int(raw_input()) l=map(int, raw_input().split()) while 1: for i in range(7): n-=l[i] if n<=0: print i+1 exit()