金沙国际登录网址as-Shoot the Bullet

2019-10-10 13:44栏目:最新影视
TAG:

    固然看看介绍好像是平常相比弱智的设定和脱不掉的日系动漫纯纯的痴情,实际上巳了,便是直接隐含在处之怡然的从头到尾的经过:选用。假使一人方可有好数次的选项,不断重复来过的技巧,那么自然一切都以尽在支配,美好但是。直到女一号为了生活中繁缛的作业不断接纳那样的本领,直到真正要用的时候却并未有了的时候,哭都为时已晚了。幸亏漫画原文我心善,留了最终三次机会……。总体来讲,极度科学的一部剧场版动画,一部有关时间,爱情,友情,接纳的科学幻想传说。当然,也看到豆瓣上有一些人讲看了九分钟就不想看了,因为清楚那样的事体不容许发生,然后自嘲心老了的。自然,你借使那么的人还不及不看。
    照旧说说画面临比直观一点。人物的全部风格是很相比线条轻易,清爽的这种,稍显制作轻易。然而多少场景和静物,画得十一分留意,有选取CG的印迹。作为一部切磋时间的卡通,自然会有和岁月相关的局部。感觉看了那部动画片今后才精晓原本动画才是表现“bullet time 子弹时间”(看过《红客帝国》的吗)的特级花招。就算time waits for no one,我们也独有靠这么的技巧花招变相地留下岁月了

Shoot the Bullet
Gensokyo is a world which exists quietly beside ours, separated by a mystical border. It is a utopia where humans and other beings such as fairies, youkai, and gods live peacefully together. Shameimaru Aya is a crow tengu with the ability to manipulate wind who has been in Gensokyo for over 1000 years. She runs the Bunbunmaru News - a newspaper chock-full of rumors, and owns the Bunkachou - her record of interesting observations for Bunbunmaru News articles and pictures of beautiful danmaku or cute girls living in Gensokyo. She is the biggest connoisseur of rumors about the girls of Gensokyo among the tengu. Her intelligence gathering abilities are the best in Gensokyo金沙国际登录网址,!

During the coming n days, Aya is planning to take many photos of m cute girls living in Gensokyo to write Bunbunmaru News daily and record at least Gx photos of girl x in total in the Bunkachou. At the k-th day, there are Ck targets, Tk1, Tk2, ..., TkCk. The number of photos of target Tki that Aya takes should be in range [Lki, Rki], if less, Aya cannot write an interesting article, if more, the girl will become angry and use her last spell card to attack Aya. What's more, Aya cannot take more than Dk photos at the k-th day. Under these constraints, the more photos, the better.

Aya is not good at solving this complex problem. So she comes to you, an earthling, for help.

Input

There are about 40 cases. Process to the end of file.

Each case begins with two integers 1 <= n <= 365, 1 <= m <= 1000. Then m integers, G1, G2, ..., Gm in range [0, 10000]. Then n days. Each day begins with two integer 1 <= C <= 100, 0 <= D <= 30000. Then C different targets. Each target is described by three integers, 0 <= T < m, 0 <= L <= R <= 100.

Output

For each case, first output the number of photos Aya can take, -1 if it's impossible to satisfy her needing. If there is a best strategy, output the number of photos of each girl Aya should take at each day on separate lines. The output must be in the same order as the input. If there are more than one best strategy, any one will be OK.

Output a blank line after each case.

Sample Input

2 3
12 12 12
3 18
0 3 9
1 3 9
2 3 9
3 18
0 3 9
1 3 9
2 3 9

2 3
12 12 12
3 18
0 3 9
1 3 9
2 3 9
3 18
0 0 3
1 3 6
2 6 9

2 3
12 12 12
3 15
0 3 9
1 3 9
2 3 9
3 21
0 0 3
1 3 6
2 6 12

Sample Output

36
6
6
6
6
6
6

36
9
6
3
3
6
9

-1

版权声明:本文由金沙国际登录网址发布于最新影视,转载请注明出处:金沙国际登录网址as-Shoot the Bullet