Count diamonds level 2
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Count the number of diamonds in each ten lines segment.
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
----------------------------------------
*
***
*****
***
*
----------------------------------------
*
***
* *****
*** ***
***** *
***
*
----------------------------------------
* *
*** ***
***** *****
*** *** *
* * ***
*****
***
*
----------------------------------------
* * * * *
* *** *** *** *** ***
*** * * * * * *
* *** * *
* * *** * ***
*** * *** *
* * * * * *
*** * * * *** *** ***
* *** *** *** * * *
* * *
----------------------------------------
* * * *
*** *** * *** ***
* * *** ***** *
* ***
* *
***
* *
*** * * * *
* *** *** *** ***
* * * *
----------------------------------------
* * * * * * *
*** *** *** *** *** *** ***
* * * * * * * *
*** * *
* * *** * ***
*** * *** *
* * * * *
*** * *** * ***
* *** * *** *
* *
----------------------------------------
*
***
* *
***
***** *
*** ***
* * *
*** *
* ***
*
----------------------------------------
*
***
*
----------------------------------------
*
*** *
* ***
* *
***
*
----------------------------------------
*
***
*
*
*** *
* ***
* *
***
*
----------------------------------------
* * *
* *** *** ***
*** * * * *
* *** * *
* *** * ***
* * *** *
* *** * * *
*** * *** * * ***
* * *** *** *
* *
----------------------------------------
* * * * * * * * *
*** *** *** *** *** *** *** *** ***
* * * * * * * * *
* * *
*** *** *** *
* * * * ***
* *** * * *
*** ***** * *** * ***
* *** *** * *** *
* * *
----------------------------------------
*
* ***
*** *
*
* * *
*** *** ***
* * *
*
***
*
----------------------------------------
* * * * * * *
*** *** *** *** *** *** ***
* * * * * * *
* *
* * *** * ***
*** *** * *** *
* * * * *
*** * * * ***
* *** *** *** *
* * *
----------------------------------------
*
***
*
* *
*** ***
* *
*
***
*
----------------------------------------
*
* ***
*** *
* *
*** *
* ***
* * *
*** *** *
* * ***
*
----------------------------------------
*
***
*
*
*** *
* ***
* *
*** *
* ***
*
----------------------------------------
*
***
*
----------------------------------------
* * *
*** *** ***
* * *
----------------------------------------
* * * * * *
*** *** *** *** *** ***
* * * * * * *
*** * *
* * *** * ***
*** * *** *
* * * *
*** * * * ***
* *** *** *** *
* * *
----------------------------------------
Sample output:
1
2
3
18
11
17
5
1
3
4
14
19
6
17
4
7
5
1
3
16
Sample input:_
----------------------------------------
* * * * *
*** *** *** *** * ***
* * * * * *** *
*** * *
***** ***
*** * * * *
* *** *** ***
* * * * ***** * *
*** *** *** *** ***
* * * * *
----------------------------------------
* *
*** ***
* *
*
***
*
*
***
*
----------------------------------------
* * * * * * *
*** *** *** *** *** *** ***
* * * * * * * *
*** * *
* * *** * ***
*** * *** *
* * * *
* *** * * ***
*** * *** *** *
* * *
----------------------------------------
* * * * *
*** *** *** *** * ***
* * * * *** *
* * *
*** ***
* * * *
*** ***
* * * * * * *
*** *** *** *** ***
* * * * *
----------------------------------------
*
* ***
*** *****
* * ***
*** * *
* ***
* *
*** * *
* *** ***
* *
----------------------------------------
* * *
* * *** *** ***
*** *** * * *
* * *
* ***
* *** *
* *** * * *
*** * *** * * ***
* * *** *** *
* *
----------------------------------------
* * * * *
*** *** *** *** ***
* * * * *
* * * * *
*** *** *** *** ***
* * * * *
----------------------------------------
* * * * * * *
*** *** *** *** *** *** ***
* * * * * * * *
*** * *
* * *** * ***
*** * *** *
* * * *
*** * * * ***
* *** *** *** *
* * *
----------------------------------------
* * * * *
*** *** *** *** * ***
* * * * *** *
* * *
*** ***
* * * *
*** ***
* * * * * * *
*** *** *** *** ***
* * * * *
----------------------------------------
* * * * * * * *
*** *** *** *** *** *** *** ***
* * * * * * * *
* * * *
*** *** *** * ***
* * * * *** *
* *** * * *
*** * * *** * ***
* *** * *** *
* *
----------------------------------------
*
***
*
* *
*** ***
* * *
***
*
----------------------------------------
* * * * *
* *** *** *** *** ***
*** * * * * * *
* *** * *
* * *** * ***
*** * * *** *
* * *** * * * *
*** * * * *** *** ***
* *** *** * * *
* *
----------------------------------------
*
* ***
*** *
* *
*** *
* ***
* *
*** * *
* *** ***
* *
----------------------------------------
* * *
* *** *** ***
*** * * * *
* *** * *
* *** * ***
* * *** *
* *** * * *
*** * *** * * ***
* * *** *** *
* *
----------------------------------------
*
* ***
*** *
*
* *
*** ***
* *
* *
*** ***
* *
----------------------------------------
* * *
* *** *** ***
*** * * * *
* *** * *
* *** * ***
* * *** *
* *** * * *
*** * *** * * ***
* * *** *** *
* *
----------------------------------------
*
* * ***
*** *** *
* *
* * *
*** *** ***
* * * * *
*** * ***
* *** *
*
----------------------------------------
* * * * * * * *
*** *** *** *** *** *** *** ***
* * * * * * * *
*
* * * ***
*** *** *** *
* * * * *
*** * * * ***
* *** *** *** *
* * *
----------------------------------------
*
***
*
*
***
*
----------------------------------------
* * * * *
* *** *** *** *** ***
*** * * * * * *
* *** * *
* * *** * ***
*** * * *** *
* * *** * * * *
*** * ***** * *** *** ***
* *** *** *** * * *
* * *
----------------------------------------
Sample output:
15
4
17
15
7
13
10
17
15
19
4
18
7
14
6
14
9
17
2
18
Sample input:_
----------------------------------------
*
***
* *
***
*
*
***
*
----------------------------------------
* * * *
*** *** *** ***
***** * * * *
*** *** * *
* * *** * ***
* * *** *
* *** * * *
*** * *** * * ***
* * *** *** *
* *
----------------------------------------
* * * * *
*** *** *** *** * ***
* * * * *** *
* *
* ***
*** * * *
* *** ***
* * * * * * *
*** *** *** *** ***
* * * * *
----------------------------------------
*
* * ***
*** *** *
* *
* *
*** ***
* * * * *
*** * *** ***
* *** * *
*
----------------------------------------
*
***
*****
***
* *
***
*
----------------------------------------
*
* ***
*** *
*
*
* ***
*** *
* * *
*** ***
* *
----------------------------------------
*
* ***
*** *
*
*
***
* *
*** *
* ***
*
----------------------------------------
*
***
*
*
***
*
*
***
*
----------------------------------------
*
***
*
*
***
*
* *
*** * ***
* *** *
*
----------------------------------------
*
* *** *
*** * ***
* * *
***
* * *
* *** ***
*** ***** * *
* *** ***
* *
----------------------------------------
*
* * ***
*** *** *
* *
*
* ***
* *** * * *
*** * * *** ***
* *** * *
*
----------------------------------------
*
***
* *
*** *
* ***
* *
*** * * *
* *** *** ***
* * *
----------------------------------------
*
* * ***
*** *** *
* *
* * *
*** *** ***
* * * * *
*** * ***
* *** *
*
----------------------------------------
* * *
*** *** ***
* * *
----------------------------------------
*
***
*
*
***
*
----------------------------------------
*
***
* *****
*** ***
* *
*
***
*
----------------------------------------
*
* *** *
*** * ***
* * *
***
* *
* * ***
*** * *** *
* *** *
*
----------------------------------------
*
*** *
* ***
* *
***
*
*
***
*
----------------------------------------
*
* ***
*** *
*
* *
*** ***
* *
* *
*** ***
* *
----------------------------------------
*
***
* *
***
*
----------------------------------------
Sample output:
3
14
15
9
2
6
5
3
5
8
9
7
9
3
2
3
8
4
6
2
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | flag(~ksk) | 31 | 0.0786 | 2009/10/17 13:46:01 | 0B / 13B / 13B |
2 | hide24 | 32 | 0.0694 | 2009/10/16 10:38:39 | 0B / 14B / 13B |
3 | leonid | 36 | 0.1049 | 2009/10/07 00:27:45 | 0B / 21B / 12B |
4 | yvl | 36 | 0.1100 | 2009/10/07 01:49:11 | 0B / 21B / 12B |
5 | murky-satyr | 38 | 0.1276 | 2009/10/06 04:23:37 | 0B / 20B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tybalt89 | 32 | 0.0586 | 2009/10/05 00:09:20 | 0B / ?B / ?B |
2 | c|mell | 32 | 0.0301 | 2009/10/06 19:13:17 | 0B / 11B / 17B |
3 | yibe | 32 | 0.0562 | 2009/10/17 15:04:19 | 0B / 11B / 17B |
4 | Mithran | 35 | 0.1656 | 2009/10/07 12:51:10 | 0B / 19B / 11B |
5 | dcutter | 35 | 0.0386 | 2009/10/11 06:13:36 | 0B / 12B / 20B |
6 | ySas | 47 | 0.1360 | 2009/10/04 10:34:46 | 0B / 20B / 23B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kt3k | 52 | 0.4814 | 2009/10/04 01:10:21 | 0B / 31B / 17B |
2 | hallvabo | 52 | 0.1195 | 2009/10/04 02:12:42 | 0B / 31B / 17B |
3 | Mark Byers | 52 | 0.1139 | 2009/10/04 23:46:30 | 0B / 30B / 19B |
4 | recursive | 52 | 0.1097 | 2009/10/06 03:50:51 | 0B / 30B / 19B |
5 | primo | 52 | 0.1603 | 2009/10/07 03:07:45 | 0B / 31B / 17B |
6 | leonid | 52 | 0.1407 | 2009/10/08 00:03:00 | 0B / 31B / 17B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 64 | 0.1488 | 2009/10/13 12:06:17 | 0B / 35B / 25B |
2 | Chiether | 97 | 0.1588 | 2009/10/13 10:39:05 | 0B / 58B / 36B |
3 | o-cn | 60 | 0.0238 | 2009/11/27 03:49:09 | 0B / 34B / 23B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | amanatto | 88 | 0.6280 | 2009/10/16 11:24:34 | 0B / ?B / ?B |
2 | Pla | 126 | 0.3103 | 2009/10/10 17:26:43 | 0B / 79B / 42B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | youz | 69 | 0.4192 | 2009/10/07 23:45:21 | 0B / 41B / 25B |
2 | c|mell | 71 | 0.4316 | 2009/10/06 19:00:51 | 0B / 31B / 34B |
3 | kozima | 84 | 0.5605 | 2009/10/07 23:31:20 | 0B / 51B / 28B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | youz | 51 | 11.4399 | 2009/10/07 23:17:27 | 0B / 29B / 20B |
2 | pooq | 51 | 11.1696 | 2009/10/12 23:57:27 | 0B / 31B / 18B |
3 | murky-satyr | 58 | 11.1792 | 2009/10/06 04:30:51 | 0B / 33B / 24B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 90 | 0.2606 | 2012/11/20 17:32:36 | 0B / 65B / 19B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 64 | 0.1283 | 2009/10/06 00:02:17 | 0B / 30B / 32B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 60 | 0.0290 | 2009/10/13 10:28:10 | 0B / 34B / 21B |
2 | clock | 59 | 0.0335 | 2012/11/20 19:58:35 | 0B / 33B / 21B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | murky-satyr | 82 | 0.0411 | 2009/11/22 23:59:49 | 0B / 47B / 19B |
2 | pooq | 85 | 0.0474 | 2009/11/21 14:21:17 | 0B / 48B / 21B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 66 | 0.1652 | 2009/10/11 13:03:05 | 0B / 34B / 31B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | *yuko* | 67 | 0.1042 | 2009/10/16 13:55:36 | 0B / 41B / 24B |
2 | pooq | 105 | 0.1218 | 2009/10/13 10:29:00 | 0B / 63B / 32B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 33 | 0.1559 | 2009/10/10 22:55:00 | 0B / 12B / 18B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nu | 71 | 0.0951 | 2009/10/11 06:27:09 | 0B / 38B / 33B |
2 | 51b | 72 | 0.0466 | 2009/10/17 14:58:33 | 0B / 35B / 37B |
3 | chocobi | 81 | 0.0713 | 2009/10/04 01:03:50 | 0B / 40B / 41B |
4 | xsd | 82 | 0.0539 | 2009/10/03 23:36:01 | 0B / 43B / 39B |
5 | nu(51b) | 68 | 0.0479 | 2009/10/18 08:49:19 | 0B / 35B / 33B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | 51b | 93 | 0.0257 | 2009/10/17 15:02:30 | 0B / 55B / 35B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | ksk | 92 | 0.2720 | 2009/10/08 00:16:48 | 0B / 51B / 38B |
2 | xsd | 107 | 0.1610 | 2009/10/03 23:37:56 | 0B / 53B / 48B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | notogawa | 72 | 0.1233 | 2009/10/15 21:38:46 | 0B / ?B / ?B |
2 | Lost_dog | 79 | 0.0897 | 2009/10/16 23:54:29 | 0B / 47B / 32B |
3 | abstract | 89 | 0.0777 | 2009/10/05 02:27:01 | 0B / 53B / 33B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | uru | 157 | 0.0487 | 2009/10/12 23:51:11 | 0B / 104B / 40B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 24 | 0.0285 | 2009/10/04 06:07:54 | 0B / 8B / 14B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | eban | 42 | 0.3773 | 2009/10/18 00:27:20 | 0B / 15B / 21B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Mark Byers | 53 | 1.2626 | 2009/10/08 04:40:51 | 18B / 23B / 12B |
2 | yshl(bin) | 55 | 1.1190 | 2009/10/17 14:39:18 | 28B / 13B / 12B |
3 | yshl | 92 | 1.2567 | 2009/10/04 02:48:48 | 0B / 53B / 30B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 114 | 3.4881 | 2009/10/13 15:08:09 | 0B / 60B / 51B |
2 | pooq | 113 | 0.5246 | 2012/11/04 09:58:52 | 0B / 61B / 49B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kt3k | 18 | 0.4561 | 2009/10/04 01:22:26 | 0B / 5B / 11B |
2 | Mark Byers | 18 | 0.4239 | 2009/10/05 02:15:18 | 0B / 5B / 11B |
3 | leonid | 18 | 0.6803 | 2009/10/07 23:56:47 | 0B / 4B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | whio | 14 | 0.2721 | 2017/03/09 04:07:03 | 4B / 2B / 6B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 53 | 1.1177 | 2009/10/14 23:50:09 | 2B / 28B / 18B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 60 | 9.9972 | 2009/10/04 18:30:17 | 0B / 33B / 23B |
2 | murky-satyr | 57 | 3.5404 | 2009/11/28 04:52:22 | 0B / 26B / 27B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | gs2 | whio | 14 | 10000 |
2 | GolfScript | kt3k | 18 | 7777 |
3 | FlogScript | milieu | 21 | 6666 |
4 | AWK | nn | 24 | 5833 |
5 | Burlesque | Hendrik | 25 | 5600 |
6 | goruby | murky-satyr | 28 | 5000 |
7 | Ruby | flag(~ksk) | 31 | 4516 |
8 | Perl | tybalt89 | 32 | 4375 |
9 | J | pooq | 33 | 4242 |
10 | z80 | kodera | 35 | 4000 |
11 | jq | teebee(eban) | 35 | 4000 |
12 | Bash | eban | 42 | 3333 |
13 | Arc | youz | 51 | 2745 |
14 | Python | kt3k | 52 | 2692 |
15 | Postscript | Mark Byers | 53 | 2641 |
16 | Vim | nn | 53 | 2641 |
17 | Groovy | murky-satyr | 57 | 2456 |
18 | Lua | clock | 59 | 2372 |
19 | PHP | o-cn | 60 | 2333 |
20 | JavaScript | nn | 64 | 2187 |
21 | Xtal | pooq | 66 | 2121 |
22 | BASIC | *yuko* | 67 | 2089 |
23 | C | nu(51b) | 68 | 2058 |
24 | Common LISP | youz | 69 | 2028 |
25 | Haskell | notogawa | 72 | 1944 |
26 | Tcl | murky-satyr | 82 | 1707 |
27 | Scheme | amanatto | 88 | 1590 |
28 | Io | pooq | 90 | 1555 |
29 | OCaml | ksk | 92 | 1521 |
30 | D | 51b | 93 | 1505 |
31 | Fortran | *yuko* | 103 | 1359 |
32 | R | pooq | 113 | 1238 |
33 | Pascal | uru | 157 | 891 |
return to the top page