seven is zero
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
take the sum of the given numbers from left to right. if at any intermediate point the partial sum is exactly seven, set it to zero.
Options
exec is denied
rejudge feature is enabled
now post-mortem time, all source codes will be revealed
Sample input:_
1 3 0 2 0 0 1 3 1 3
0 2 3 0 1 0 1 1 0 0
3 3 0 2 3 3 1 3 2 0
1 2 3 2 2 0 2 1 3 2
0 0 2 3 1 3 2 3 2 2
1 0 3 2 1 1 0 1 3 1
0 0 3 3 2 2 1 2 2 2
1 2 1 3 1 3 3 3 2 1
3 2 0 3 2 2 3 2 0 3
3 3 2 2 1 2 0 3 2 1
1 0 3 2 3 3 0 3 1 3
2 0 0 0 3 3 1 1 2 2
3 2 0 2 3 1 3 1 1 3
1 1 2 1 1 1 0 1 3 2
3 0 1 0 1 2 2 0 3 3
2 2 0 3 0 3 3 3 0 1
3 2 3 3 1 3 0 2 1 0
2 1 1 0 1 2 2 0 2 0
1 0 1 1 2 2 2 0 2 3
3 1 0 0 3 3 1 0 3 0
2 0 1 0 1 1 1 3 0 0
2 1 1 1 2 0 0 0 0 0
3 3 0 2 2 3 2 2 3 0
2 2 3 1 1 0 3 3 3 3
3 0 2 3 0 0 3 0 2 1
1 1 0 1 3 3 1 1 2 0
2 1 0 2 3 3 3 2 2 3
3 3 3 2 1 3 1 3 2 1
0 1 3 2 3 1 0 3 2 3
2 2 1 3 1 2 2 0 2 2
0 0 0 0 2 1 3 1 3 1
0 1 3 3 0 0 0 0 0 0
0 1 0 0 0 1 1 2 0 3
3 2 2 0 0 2 2 3 1 3
1 0 3 3 1 3 2 3 3 1
3 2 2 1 3 0 3 3 1 2
2 0 0 1 1 1 3 2 2 1
1 2 3 0 0 2 3 0 1 3
3 1 2 3 1 0 1 0 1 2
0 1 1 3 1 1 2 3 3 0
2 2 0 3 0 1 0 1 3 0
2 1 1 1 2 1 3 2 0 0
3 2 1 2 1 2 3 0 2 1
2 1 0 3 2 1 3 3 3 0
1 1 1 2 2 0 0 3 2 0
0 1 2 3 0 2 2 0 3 2
3 3 1 1 3 1 0 1 3 1
0 1 3 1 0 3 2 1 3 3
3 2 3 3 0 3 2 1 3 1
3 0 0 0 2 1 3 1 2 0
Sample output:
0
1
20
18
18
6
17
6
20
19
19
14
5
6
8
10
18
4
0
0
9
0
20
14
14
13
21
22
18
17
4
0
8
4
13
6
13
15
14
8
5
6
17
18
5
15
10
17
21
12
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | rotary-o | 41 | 0.0599 | 2024/08/25 09:34:02 | 0B / 16B / 24B |
2 | Sisyphus | 46 | 0.0817 | 2024/08/24 11:27:39 | 0B / 27B / 18B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Sisyphus | 58 | 0.0540 | 2024/08/25 14:32:02 | 0B / 32B / 25B |
2 | xnor | 60 | 0.0501 | 2024/08/23 16:11:15 | 0B / 36B / 13B |
3 | fuzzylojik | 60 | 0.0487 | 2024/09/04 04:59:54 | 0B / 36B / 14B |
4 | cef | 62 | 0.0504 | 2024/08/23 16:51:08 | 0B / 35B / 17B |
5 | fuzzylojik(alt) | 62 | 0.0644 | 2024/09/04 22:34:08 | 0B / 36B / 26B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | fuzzylojik | 54 | 0.0226 | 2024/09/04 04:58:43 | 0B / 33B / 19B |
2 | Sisyphus | 56 | 0.0215 | 2024/08/26 08:37:25 | 0B / 36B / 17B |
3 | sean | 57 | 0.0224 | 2024/08/26 04:29:20 | 0B / 33B / 22B |
4 | Steffan | 57 | 0.0242 | 2024/09/04 03:39:17 | 0B / 33B / 22B |
5 | ovs | 59 | 0.0217 | 2024/08/23 18:24:55 | 0B / 32B / 27B |
6 | KrausRaus | 59 | 0.0235 | 2024/08/23 20:36:01 | 0B / 34B / 23B |
7 | sean (alt) | 59 | 0.0212 | 2024/08/26 04:35:52 | 0B / 32B / 27B |
8 | sean (alt2) | 59 | 0.0216 | 2024/08/26 04:36:47 | 0B / 36B / 20B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Fleur | 51 | 0.5458 | 2024/09/06 10:00:42 | 0B / 21B / 26B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tubular | 23 | 0.0093 | 2024/08/23 12:10:01 | 0B / 6B / 17B |
2 | ovs | 26 | 0.0087 | 2024/08/23 18:42:54 | 0B / 8B / 17B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 14 | 0.3319 | 2024/08/23 17:12:52 | 0B / 2B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nai | 67 | 0.0142 | 2024/09/06 00:49:27 | 0B / 34B / 33B |
2 | rotary-o | 68 | 0.0143 | 2024/08/24 09:55:54 | 0B / 33B / 35B |
3 | tails | 68 | 0.0140 | 2024/08/24 22:57:33 | 0B / 34B / 34B |
4 | %20 | 68 | 0.0156 | 2024/09/06 05:52:09 | 0B / 35B / 33B |
5 | chocobi | 70 | 0.0142 | 2024/08/23 21:23:32 | 0B / 36B / 34B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | xnor | 67 | 0.0187 | 2024/08/23 16:42:40 | 0B / 40B / 22B |
2 | lynn(alt) | 67 | 0.0179 | 2024/08/23 23:11:36 | 0B / 42B / 21B |
3 | xnor (alt) | 67 | 0.0200 | 2024/08/24 06:21:54 | 0B / 41B / 22B |
4 | hikari_no_yume | 67 | 0.0248 | 2024/08/25 20:11:19 | 0B / ?B / ?B |
5 | lynn | 68 | 0.0208 | 2024/08/23 21:40:56 | 0B / 40B / 27B |
6 | lynn(alt2) | 68 | 0.0178 | 2024/08/23 23:13:00 | 0B / 42B / 26B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Fleur | 34 | 0.0186 | 2024/08/26 10:31:33 | 0B / 13B / 21B |
2 | McBusLuck | 38 | 0.0140 | 2024/08/26 03:53:57 | 0B / 17B / 21B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 98 | 0.0265 | 2024/09/05 17:24:33 | 0B / 35B / 51B |
2 | McBusLuck | 105 | 0.0287 | 2024/08/25 20:11:27 | 0B / 40B / 53B |
3 | Sisyphus | 106 | 0.0225 | 2024/08/26 12:33:17 | 0B / 41B / 53B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 45 | 0.0267 | 2024/08/23 17:44:16 | 0B / 16B / 24B |
2 | McBusLuck | 54 | 0.0641 | 2024/08/26 22:52:21 | 0B / 22B / 26B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 35 | 0.0179 | 2024/08/27 15:13:49 | 0B / 23B / 12B |
2 | i336_ | 93 | 0.0176 | 2024/09/05 13:17:40 | 0B / 66B / 26B |
3 | Fleur | 999 | 0.0157 | 2024/08/27 09:41:21 | 0B / ?B / ?B |
4 | Fleur | 33 | 0.0225 | 2024/09/06 10:07:30 | 0B / 17B / 16B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | %20 | 104 | 0.0235 | 2024/09/05 08:26:57 | 0B / 0B / 0B |
2 | rotary-o | 104 | 0.0226 | 2024/09/05 22:44:01 | 0B / 0B / 0B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 17 | 0.0707 | 2024/08/23 18:11:21 | 0B / 3B / 14B |
2 | orthoplex | 17 | 0.0443 | 2024/08/23 20:02:34 | 0B / 3B / 14B |
3 | lynn | 19 | 0.0479 | 2024/08/23 21:56:10 | 0B / 5B / 14B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 9 | 0.0797 | 2024/08/23 15:28:21 | 2B / 6B / 1B |
2 | whio | 9 | 0.1062 | 2024/08/24 06:22:48 | 2B / 6B / 1B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 7 | 0.0216 | 2024/08/23 16:01:22 | 5B / 1B / 1B |
2 | whio | 9 | 0.0244 | 2024/09/04 11:03:23 | 6B / 2B / 1B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 723 | 0.2590 | 2024/08/24 23:08:49 | 0B / 389B / 334B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 65 | 0.1065 | 2024/08/24 23:40:35 | 46B / 13B / 4B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | %20 | 43 | 0.0602 | 2024/09/06 05:09:58 | 28B / 9B / 4B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | Nibbles | tails | 7 | 10000 |
2 | gs2 | tails | 9 | 7777 |
3 | Atlas | tails | 14 | 5000 |
4 | GolfScript | tails | 17 | 4117 |
5 | K | tubular | 23 | 3043 |
6 | dc | Fleur | 33 | 2121 |
7 | Perl | Sisyphus (tails) | 33 | 2121 |
8 | AWK | Fleur | 34 | 2058 |
9 | xgawk | McBusLuck | 38 | 1842 |
10 | Ruby2 | rotary-o | 41 | 1707 |
11 | Ruby | rotary-o | 42 | 1666 |
12 | z80 | %20 | 43 | 1627 |
13 | Bash (builtins) | tails | 45 | 1555 |
14 | Perl6 | Fleur | 51 | 1372 |
15 | JavaScript | fuzzylojik | 54 | 1296 |
16 | Python3 | Sisyphus | 58 | 1206 |
17 | Scala | rotary-o | 62 | 1129 |
18 | Universal Lambda | tails | 65 | 1076 |
19 | Haskell | xnor | 67 | 1044 |
20 | C | nai | 67 | 1044 |
21 | sed | tails | 98 | 714 |
22 | Whitespace | %20 | 104 | 673 |
23 | Java | rotary-o | 125 | 560 |
24 | C# | rotary-o | 127 | 551 |
25 | Lazy-K | tails | 723 | 96 |
return to the top page