Mission1: sayo22's result

Test case 1

Passed

Run time: 0.01 sec

Test case 2

Passed

Run time: 0.01 sec

Test case 3

Passed

Run time: 0.01 sec

Test case 4

Passed

Run time: 0.01 sec

Test case 5

Passed

Run time: 0.01 sec

* Test cases are run from 1 in order. If there is a test case that does not pass, the subsequent test case does not run (knockout system)

points

100 pt It was a piece of cake!
Language: C++
The code has been cracked!
「Rena is an affianced bride of Tatsuya.」
Share!

Challenge an entrance test for Rena's father's company!

Suddenly, Tatsuya finds himself going to take an entrance test of Rena's father's company. If all goes well, he’ll have himself a new job… and things might even go well with Rena.
You are writing a software to summarize sales result. You are given sales result "s" yen for "n" days started from a Monday, in each line. "n" is multiple of 7.
ミッション2

Output sales for each day of the week from Monday to Sunday, in each line.

Input value

Input is applied in the following format:
n
s_1
s_2
s_3
...
s_n

Constraints

The input values have the following constraints for all test cases.
1 ≦ n ≦ 210
0 ≦ s_n ≦ 1000000
* n must always be a multiple of 7.

Expected output

Output the line-separated subtotal for each day of the week, from Monday to Sunday.
Please add a new line at the end, and do not include any unnecessary characters or empty lines.
Example 1(input)
14
30000
20000
0
50000
0
100000
500000
30000
20000
0
20000
15000
600000
450000
Example 1(output)
60000
40000
0
70000
15000
700000
950000
Example 2(input)
7
1003
2302
421
32124
3
0
3214







Example 2(output)
1003
2302
421
32124
3
0
3214

Your session has expired. Please proceed again from the beginning.

Read from the beginning

Our clients

If you register (login) for paiza, you can download wallpapers!

Then user registration (login) can download 5 kinds of wallpaper in paiza!

Wallpaper 1
Wallpaper 2
Wallpaper 3

無料でプログラミングスキルチェックを試してみる(登録は10秒!)
すぐにプログラミング力をはかるスキルチェック問題にチャレンジできます。(想定解答時間20分)

会員登録(無料)

ページの先頭へ戻る