Knight Move
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Every input line is a position on a standard chess board. Each output line should be the possible positions a Knight piece can move to (starting from the top left most, if possible, then moving clockwise).
Info: http://en.wikipedia.org/wiki/Knight_(chess)
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
d4
Sample output:
c6 e6 f5 f3 e2 c2 b3 b5
Sample input:_
a5
h1
Sample output:
b7 c6 c4 b3
g3 f2
Sample input:_
a8
f6
b2
g5
d2
e1
h3
c7
Sample output:
c7 b6
e8 g8 h7 h5 g4 e4 d5 d7
a4 c4 d3 d1
f7 h7 h3 f3 e4 e6
c4 e4 f3 f1 b1 b3
d3 f3 g2 c2
g5 g1 f2 f4
e8 e6 d5 b5 a6 a8
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | yvl | 88 | 0.0371 | 2014/08/28 04:16:43 | 0B / 42B / 42B |
2 | leonid | 88 | 0.0388 | 2014/08/28 04:34:24 | 0B / 42B / 42B |
3 | mitchs | 98 | 0.0357 | 2014/08/28 03:28:42 | 0B / 38B / 58B |
4 | jpl | 103 | 0.0351 | 2014/09/02 22:41:40 | 0B / ?B / ?B |
5 | Histocrat | 122 | 0.0352 | 2014/09/05 23:21:38 | 0B / 49B / 69B |
6 | mitchs | 81 | 0.1240 | 2017/10/08 16:36:29 | 1B / 34B / 45B |
7 | mitchs (leonid) | 85 | 0.0390 | 2017/10/08 16:27:08 | 0B / 41B / 40B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 69 | 0.0344 | 2014/09/03 06:31:13 | 0B / 36B / 30B |
2 | brx | 81 | 0.0248 | 2014/09/06 05:15:53 | 0B / 36B / 43B |
3 | test1 | 89 | 0.0408 | 2014/09/02 22:24:41 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | leonid | 116 | 0.0930 | 2014/09/05 14:55:25 | 0B / 68B / 34B |
2 | evilbungle | 120 | 0.0882 | 2014/09/06 00:51:24 | 0B / 72B / 41B |
3 | wilkes | 121 | 0.1436 | 2014/09/08 06:36:16 | 0B / 74B / 39B |
4 | twobit | 122 | 0.1129 | 2014/09/05 07:30:59 | 0B / 77B / 40B |
5 | hallvabo | 124 | 0.0973 | 2014/08/27 12:57:25 | 0B / 75B / 34B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 120 | 0.0315 | 2014/09/06 04:37:53 | 0B / 66B / 54B |
2 | llhuii | 127 | 0.0323 | 2014/09/06 01:27:10 | 0B / 64B / 61B |
3 | llhuii(teebee) | 118 | 0.0316 | 2014/09/08 17:32:57 | 0B / 64B / 54B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 180 | 0.0527 | 2014/09/07 16:49:19 | 0B / 42B / 125B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | mute | 216 | 0.0359 | 2014/09/04 11:49:50 | 0B / 91B / 99B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 120 | 0.0383 | 2014/09/07 18:42:26 | 0B / 66B / 54B |
2 | llhuii | 131 | 0.0344 | 2014/09/07 23:13:05 | 0B / 65B / 63B |
3 | llhuii(teebee) | 116 | 0.0323 | 2014/09/08 17:31:56 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Vlo | 193 | 0.3968 | 2014/08/27 23:25:16 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | whio | 52 | 0.0642 | 2014/09/05 07:49:43 | 2B / 16B / 33B |
2 | tails | 52 | 0.0728 | 2014/09/07 13:29:56 | 0B / 22B / 29B |
3 | whio | 47 | 0.0679 | 2014/09/09 07:00:04 | 0B / 11B / 35B |
4 | whio(tails) | 49 | 0.0730 | 2014/09/09 03:57:01 | 2B / 13B / 33B |
5 | tails (whio) | 50 | 0.0723 | 2014/09/08 15:15:12 | 2B / 14B / 33B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 28 | 0.1795 | 2017/10/03 12:33:50 | 13B / 6B / 9B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | gs2 | tails | 28 | 10000 |
2 | GolfScript | whio | 47 | 5957 |
3 | Perl | teebee | 69 | 4057 |
4 | Ruby | mitchs | 81 | 3456 |
5 | Python3 | wilkes | 115 | 2434 |
6 | Python | leonid | 116 | 2413 |
7 | xgawk | llhuii(teebee) | 116 | 2413 |
8 | AWK | llhuii(teebee) | 118 | 2372 |
9 | Haskell | henkma | 142 | 1971 |
10 | sed | tails | 180 | 1555 |
11 | R | Vlo | 193 | 1450 |
12 | Bash | mute | 216 | 1296 |
return to the top page