# 相互负的奎因

22

1. 仅由可打印的ASCII字符组成
2. 尺寸均大于1
3. 每一行每一列至少包含一个空格。
4. 每一行和每一列至少包含一个非空格字符。

``````%n 2e
1  g 3
&* __
3
``````

``````  f  ^
33 >
9  \$
^ }|Q'
``````

## 计分

``````Original   Negative   Combined
A A       B B        BABA
A A         B B       ABAB
``````

@Optimizer这就是我没有强制执行奖金的原因。
es1024

1

Optimizer

@MartinBüttner啊，我不好。我在用奇怪的字眼思考。
Optimizer

1

MegaTom，2014年

15

# CJam，（51 49 47 46 45 42 x 2）* 48％= 40.32

``````{])"_~"+S41*'R+@,[{N@S}{SN@}{W=N]_}]=~}_~
R
``````

``````                                         R
{])"_~"+S41*'R+@,[{N@S}{SN@}{W=N]_}]=~}_~
``````

``````{])"_~"+S41*'R+@,[{N@S}{SN@}{W=N]_}]=~}_~R
{])"_~"+S41*'R+@,[{N@S}{SN@}{W=N]_}]=~}_~R
``````

``````{])"_~"+S41*'R+@,[{N@S}{SN@}{W=N]_}]=~}_~
{                                     }_~   "Copy this code block and execute the copy";
]                                          "Wrap everything before it in array";
)                                         "Pop the last element out of it";
"_~"+                                    "Append string '_~' to the copied code block";
S41*                                "Create a string of 41 spaces";
'R+                             "Append character R to it";
@,                           "Rotate the array to top and get its length";
[{   }{   }{     }]=~      "Get the corresponding element from this"
"array and execute it";
``````

``````{])"_~"+S41*'R+@,[{N@S}{SN@}{W=N]_}]=~}_~
R
``````

`````` {N@S}          "Note that at this point, the stack is something like:"
"[[<code block that was copied> '_ '~ ] <41 spaces and R string>]";
@            "Rotate the code block to top of stack";
S           "Put a trailing space which negates the original R";
``````

``````                                         R
{])"_~"+S41*'R+@,[{N@S}{SN@}{W=N]_}]=~}_~
``````

``````{SN@}            "Note at this point, the stack is same as in case 1";
SN              "Push space and newline to stack";
@             "Rotate last three elements to bring the 41 spaces and R string to top";
``````

``````{])"_~"+S41*'R+@,[{N@S}{SN@}{W=N]_}]=~}_~R
{])"_~"+S41*'R+@,[{N@S}{SN@}{W=N]_}]=~}_~R
``````

``````{W=N]_}          "Note at this point, the stack is same as in case 1";
W=              "Take the last character out of the 41 spaces and R string, i.e. R";
N]            "Add a new line to stack and wrap the stack in an array";
_           "Copy the array to get back the source of Case 3 itself";
``````

27

## Python，97x2 + 2 = 196

``````c='o=1-%d;print("%%97s\\n%%97s"%%("#","c=%%r;exec(c%%%%%%d)\\40"%%(c,o),"#")[o:][:2])';exec(c%1)
#``````

``````                                                                                                #
c='o=1-%d;print("%%97s\\n%%97s"%%("#","c=%%r;exec(c%%%%%%d)\\40"%%(c,o),"#")[o:][:2])';exec(c%0) ``````

8
+1是迄今为止唯一使用真实语言的内容
WinnieNicklaus 2014年

mbomb007

23

# CJam（58 56 54 48 46 x 2）* 48％= 44.16

``````{`"_~"+{_,94\m2/S*a_+\*
N/23f/Wf%N*}_`'"#)!*}_~
``````

``````                       {`"_~"+{_,94\m2/S*a_+\*
N/23f/Wf%N*}_`'"#)!*}_~
``````

``````{`"_~"+{_,94\m2/S*a_+\*{`"_~"+{_,94\m2/S*a_+\*
N/23f/Wf%N*}_`'"#)!*}_~N/23f/Wf%N*}_`'"#)!*}_~
``````

## 怎么运行的

``````_,94\m2/S*a_+\*N/23f/Wf%N*
_,                         "Duplicate the quine string and get its length.";
94\m                     "Subtract from 94.";
2/                   "Divide by two.";
S*                 "Create a string with that many spaces. This will be
an empty string for the first mutual quine, and contain
23 spaces for the second mutual quine.";
a_+              "Create an array that contains this string twice.";
\*            "Join the two copies together with the quine string.";
N/          "Split into lines.";
23f/      "Split each line into halves (23 bytes each).";
Wf%   "Reverse the two halves of each line.";
N* "Join with a newline.";
``````

# 领取赏金（12 x 10）* 48％= 57.6

``````{`"_~"
+{129X
\$,m2/S
*a_+\*
N/6f/1
;1;1;1
;1;1;1
;Wf%N*
}_`'"#
)!*}_~
``````

``````      {`"_~"
+{129X
\$,m2/S
*a_+\*
N/6f/1
;1;1;1
;1;1;1
;Wf%N*
}_`'"#
)!*}_~
``````

（附带说明：无需在中间行上保持左右交替，只有第一行和最后一行的位置很重要。对于其他所有行，可以任意选择左右。）

``````{`"_~"{`"_~"
+{129X+{129X
\$,m2/S\$,m2/S
*a_+\**a_+\*
N/6f/1N/6f/1
;1;1;1;1;1;1
;1;1;1;1;1;1
;Wf%N*;Wf%N*
}_`'"#}_`'"#
)!*}_~)!*}_~
``````

（我说的是巧合，因为负责执行内部代码的部分现在被奇怪地散布在另一个quine中，但仍然可以正常工作。）

``````{`"_~"{`"_~"+{___'"___}_`'"#)!*}_~)!*}_~
``````

``````{`"_~"                               }_~ "The standard CJam quine.";
{`"_~"+                  }_~       "Another CJam quine. Provided it doesn't do
anything in the rest of that block, this
will leave this inner block as a string on
the stack.";
)      "Slice the last character off the string.";
!     "Negate... this yields 0.";
*    "Repeat the string zero times.";
``````

``````             {___'"___}                  "Push a block which happens to contain
quotes.";
_`'"#)!*          "This is from the original code and just
removes the block if it does contain
quotes.";
``````

4
TLDR；upvote;）
Optimizer

“而且纯属巧合”罗；）
Timtech

@Timtech参见我的编辑。纯粹的巧合并不是轻描淡写。^^
Martin Ender 2014年

10

# CJam，42 37 33 x 2 = 66

``````{`As_W%er"_~"+S 33*F'Lt1{\}*N\}_~
L
``````

``````               L
{`As_W%er"_~"+S 33*F'Lt0{\}*N\}_~
``````

（这些线被交换，并`1`变成一个`0`。）

## 怎么运行的

``````{"_~"}_~
``````

``````Stack: [{"_~"} "_~"]
``````

```````                             "Convert block to its string representation.";
As                           "Push 10 and convert to string.";
_W%                        "Duplicate and reverse, to get another string 01.";
er                      "Swap 0s and 1s in the block string.";
"_~"+                 "Append _~.";
S 33*            "Push a string with 33 spaces.";
F'Lt        "Set the character at index 15 to L.";
1{ }*   "Repeat this block once.";
\     "Swap the code string and the space string.";
N\ "Push a newline and move it between the two lines.";
``````

5

# CJam，27×2 = 54

``````{ ` " _ ~ " + N - ) 2 * ' '
> @ t s G B + / N * } _ ~
``````

`````` { ` " _ ~ " + N - ) 2 * '
' > @ t s G B + / N * } _ ~
``````

`'A'B>`比较字符A和B。`' '\n >`因为32> 10返回1，并且`' \n' >`因为两个空格相等而返回0。

2

# CJam，30 29 x 2 = 58

``````{"_~"SN]_,4=S28*'R+\{N@}*}_~
R
``````

``````                            R
{"_~"SN]_,4=S28*'R+\{N@}*}_~
``````