outer product

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

calculate outer product (v1 x v2)

Options

exec is denied

rejudge feature is enabled

now post-mortem time, all source codes will be revealed

Sample input:_

1 0 0 0 1 0
0 1 0 0 0 1
0 0 1 1 0 0
0 1 0 1 0 0
0 0 1 0 1 0
1 0 0 0 0 1

Sample output:

0 0 1
1 0 0
0 1 0
0 0 -1
-1 0 0
0 -1 0

Sample input:_

9 4 6 2 7 9
0 2 3 0 7 4
9 4 0 7 1 1
0 6 6 6 1 1
8 7 4 8 7 2
7 4 6 0 8 9
8 7 6 7 8 3
8 9 8 2 3 5
6 9 2 9 6 9
7 1 5 6 0 8
9 1 6 5 3 5
2 9 2 5 9 9
4 4 8 4 7 3
2 5 9 5 1 7
1 0 1 8 8 7
0 8 0 3 8 1
8 8 2 9 7 7
0 5 0 2 6 8
1 0 6 0 5 2
9 4 1 7 4 1
5 3 8 9 4 5
7 9 4 1 3 7
3 2 8 5 4 6
6 8 5 9 6 7
9 9 0 3 3 1
6 7 5 4 8 5
1 4 3 6 3 8
6 6 3 2 3 1
0 8 7 5 7 7
9 4 0 4 0 2
3 4 2 4 1 0
6 2 6 4 3 3
7 9 0 1 1 7
6 1 7 1 4 2
4 3 0 7 8 0
5 0 3 0 9 1
6 7 5 8 0 2
1 3 6 7 4 4
4 0 1 6 3 8
7 6 6 7 5 8
3 2 6 5 6 4
7 2 1 2 4 4
3 9 8 6 2 3
4 7 8 3 7 6
8 9 2 7 1 3
4 3 2 1 6 9
6 5 2 3 5 2
2 7 5 6 1 3
3 3 9 0 9 4
8 4 8 2 3 9

Sample output:

-6 -69 55
-13 0 0
4 -9 -19
0 36 -36
-14 16 0
-12 -63 56
-27 18 15
21 -24 6
69 -36 -45
8 -26 -6
-13 -15 22
63 -8 -27
-44 20 12
26 31 -23
-8 1 8
8 0 -24
42 -38 -16
40 0 -10
-30 -2 5
0 -2 8
-17 47 -7
51 -45 12
-20 22 2
26 3 -36
9 -9 0
-5 -10 20
23 10 -21
-3 0 6
7 35 -40
8 -18 -16
-2 8 -13
-12 6 10
63 -49 -2
-26 -5 23
0 0 11
-27 -5 45
14 28 -56
-12 38 -17
-3 -26 12
18 -14 -7
-28 18 8
4 -26 24
11 39 -48
-14 0 7
25 -10 -55
15 -34 21
0 -6 15
16 24 -40
-69 -12 27
12 -56 16

Sample input:_

7 1 8 1 4 1
0 0 0 5 5 0
5 6 6 2 1 1
6 3 1 7 6 3
1 7 0 1 3 5
0 8 5 4 2 9
3 7 7 9 8 0
1 5 2 1 7 2
9 2 2 0 7 1
1 8 0 8 3 0
8 9 4 3 7 0
3 1 8 4 6 0
6 5 6 7 8 0
9 1 1 5 0 3
8 7 2 3 9 8
2 2 2 9 3 1
0 8 6 6 3 9
6 1 8 1 4 7
6 6 0 0 4 9
9 9 6 2 7 5
8 6 8 1 0 0
3 2 0 3 6 3
5 7 0 0 7 5
9 6 7 7 4 1
1 2 8 1 0 7
8 1 4 2 9 4
0 9 6 4 2 8
8 2 0 6 7 1
5 8 3 4 0 5
3 1 2 1 6 5
4 4 1 1 9 5
0 8 2 4 6 3
8 3 7 9 7 4
2 2 1 3 0 0
8 4 8 7 9 6
4 5 5 3 2 7
4 8 6 7 1 5
4 6 0 3 2 4
6 7 6 7 2 5
9 8 9 5 5 7
1 8 9 5 0 8
6 4 5 2 9 9
0 5 5 9 0 9
4 4 7 0 7 5
4 7 0 4 0 4
3 8 3 8 6 6
3 1 2 8 5 4
7 8 8 6 5 3
7 3 2 0 5 4
9 4 7 1 0 2

Sample output:

-31 1 27
0 0 0
0 7 -7
3 -11 15
35 -5 -4
62 20 -32
-56 63 -39
-4 0 2
-12 -9 63
0 0 -61
-28 12 29
-48 32 14
-48 42 13
3 -22 -5
38 -58 51
-4 16 -12
54 36 -48
-25 -34 23
54 -54 24
3 -33 45
0 8 -6
6 -9 12
35 -25 35
-22 40 -6
14 1 -2
-32 -24 70
60 24 -36
2 -8 44
40 -13 -32
-7 -13 17
11 -19 32
12 8 -32
-37 31 29
0 3 -6
-48 8 44
25 -13 -7
34 22 -52
24 -16 -10
23 12 -37
11 -18 5
64 37 -40
-9 -44 46
45 45 -45
-29 -20 28
28 -16 -28
30 6 -46
-6 4 7
-16 27 -13
2 -28 35
8 -11 -4

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o700.04982020/03/05 01:05:280B / 35B / 29B
2olf700.04942020/03/05 18:30:060B / 35B / 30B
3mitchs700.02812020/03/10 12:57:480B / 35B / 29B
4ludo700.08412020/03/10 20:46:090B / 35B / 29B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o700.17222020/03/05 01:05:130B / 35B / 29B
2mitchs700.20932020/03/10 12:58:050B / 36B / 29B
3ludo700.21712020/03/10 20:46:140B / 35B / 29B
4olf730.20702020/03/04 18:39:580B / 37B / 32B

Perl _

RankUserSizeTimeDateStatistics
1llhuii660.04522020/03/08 13:44:450B / 22B / 43B
2tails660.04452020/03/09 09:41:200B / 22B / 43B
3McBusLuck780.04642020/03/04 04:00:340B / 26B / 50B

Python _

RankUserSizeTimeDateStatistics
1xnor750.08292020/03/06 05:59:010B / 44B / 29B
2mitchs750.09142020/03/06 08:35:250B / 44B / 29B
3Hendrik750.09072020/03/06 19:43:190B / 44B / 29B
4olf750.12032020/03/07 13:38:260B / 44B / 29B
5llhuii750.22102020/03/08 13:30:160B / 44B / 29B
6ludo750.09162020/03/10 21:05:180B / 44B / 29B
7McBusLuck780.09082020/03/04 05:07:400B / 48B / 28B

Python3 _

RankUserSizeTimeDateStatistics
1olf720.14282020/03/07 13:39:130B / 41B / 30B
2llhuii720.23342020/03/08 14:37:060B / 41B / 30B
3ludo720.14012020/03/10 21:05:380B / 41B / 30B
4mitchs720.15082020/03/10 21:55:290B / 41B / 30B
5McBusLuck750.21912020/03/04 05:16:450B / 45B / 30B

JavaScript _

RankUserSizeTimeDateStatistics
1Hendrik720.06122020/03/10 05:21:590B / 39B / 32B

Lua _

RankUserSizeTimeDateStatistics
1Hendrik870.04362020/03/07 22:04:230B / 45B / 39B

C _

RankUserSizeTimeDateStatistics
1tails990.04052020/03/04 16:08:200B / 47B / 50B
2llhuii990.04092020/03/08 14:32:180B / 47B / 50B
3chocobi1110.04052020/03/03 23:02:230B / 52B / 57B
4McBusLuck1530.04082020/03/05 06:22:470B / 71B / 82B

Go _

RankUserSizeTimeDateStatistics
1chocobi1750.03872020/03/03 23:50:030B / 98B / 64B

Maxima _

RankUserSizeTimeDateStatistics
1McBusLuck1460.70812020/03/04 06:56:580B / 87B / 56B

Octave _

RankUserSizeTimeDateStatistics
1Hendrik610.49512020/03/04 04:56:330B / 38B / 21B

AWK _

RankUserSizeTimeDateStatistics
1olf400.04072020/03/05 16:20:570B / 17B / 23B
2McBusLuck400.04172020/03/05 20:16:310B / 17B / 23B
3Hendrik400.04572020/03/07 01:22:330B / 17B / 23B
4llhuii400.04132020/03/08 13:31:510B / 17B / 23B
5ludo400.04432020/03/09 21:01:350B / 17B / 23B
6mitchs400.04102020/03/10 21:54:200B / 17B / 23B
7chocobi420.04092020/03/04 21:23:060B / 17B / 25B

sed _

RankUserSizeTimeDateStatistics
1tails2280.20982020/03/05 14:47:310B / 85B / 121B
2mitchs (tails)2230.21962020/03/14 01:09:280B / 80B / 122B

Bash _

RankUserSizeTimeDateStatistics
1ludo460.01622020/03/10 22:11:180B / 20B / 25B
2tails500.06432020/03/09 10:03:010B / 22B / 25B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii490.05312020/03/10 00:23:060B / 20B / 26B
2tails500.06492020/03/09 10:03:230B / 22B / 25B
3McBusLuck590.21332020/03/04 03:24:440B / 23B / 30B

Zsh _

RankUserSizeTimeDateStatistics
1Hendrik460.02102020/03/10 01:28:010B / 20B / 25B
2ludo460.01952020/03/10 22:11:050B / 20B / 25B

Fish _

RankUserSizeTimeDateStatistics
1ludo460.04702020/03/10 22:11:120B / 20B / 25B

make _

RankUserSizeTimeDateStatistics
1tails3890.13412020/03/06 14:37:390B / 183B / 161B

dc _

RankUserSizeTimeDateStatistics
1tails590.04512020/03/04 19:16:420B / 45B / 14B

xgawk _

RankUserSizeTimeDateStatistics
1olf400.05432020/03/05 16:21:110B / 17B / 23B
2McBusLuck400.04342020/03/05 20:16:420B / 17B / 23B
3Hendrik400.04682020/03/07 01:27:000B / 17B / 23B
4llhuii400.05262020/03/08 14:37:140B / 17B / 23B
5ludo400.04292020/03/09 21:01:450B / 17B / 23B
6mitchs400.04262020/03/10 21:54:400B / 17B / 23B

m4 _

RankUserSizeTimeDateStatistics
1tails1090.04192020/03/05 11:41:580B / 55B / 47B

R _

RankUserSizeTimeDateStatistics
1ludo790.64092020/03/10 22:12:050B / 55B / 23B
2olf840.32272020/03/06 19:16:530B / 42B / 42B

GolfScript _

RankUserSizeTimeDateStatistics
1mitchs380.10822020/03/10 22:04:430B / 4B / 33B
2tails430.13372020/03/04 14:56:360B / 17B / 24B

gs2 _

RankUserSizeTimeDateStatistics
1tails200.28232020/03/04 09:08:449B / 9B / 2B

Lazy-K _

RankUserSizeTimeDateStatistics
1tails14550.48802020/03/05 10:46:390B / 810B / 645B

Scala _

RankUserSizeTimeDateStatistics
1Hendrik1036.82152020/03/05 06:13:050B / 56B / 41B
2rotary-o1036.67812020/03/06 01:07:390B / 51B / 47B

Language Ranking_

RankLangUserSizeScore
1gs2tails2010000
2GolfScriptmitchs385263
3AWKolf405000
4xgawkolf405000
5ZshHendrik464347
6Fishludo464347
7Bashludo464347
8Bash (builtins)llhuii494081
9dctails593389
10OctaveHendrik613278
11Perlllhuii663030
12Ruby2rotary-o702857
13Rubyrotary-o702857
14Python3olf722777
15JavaScriptHendrik722777
16Pythonxnor752666
17Rludo792531
18LuaHendrik872298
19Ctails992020
20ScalaHendrik1031941
21m4tails1091834
22MaximaMcBusLuck1461369
23Gochocobi1751142
24sedmitchs (tails)223896
25maketails389514
26Lazy-Ktails1455137

return to the top page