Chinese Chess

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

A has a large chessboard. There is only a "bishop" on it. He wants to know if the bishop can jump from the starting point(x1, y1) to the ending point(x2, y2) using one jump.

The "bishop" moves like this: it can move from (x,y) to (x+2, y+2), (x-2, y+2), (x+2, y-2), (x-2, y-2).

Inputs four integers(x1, y1, x2, and y2) that represent the position of the starting point and the ending point.

If the "bishop" can jump from the starting point to the ending point using one jump, output "Yes", otherwise output "No".

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

2 3 4 5

Sample output:

Yes

Ranking

Ruby2 _

RankUserSizeTimeDateStatistics
1pooq90.04962019/08/14 04:41:300B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1c_r_5120.03802019/05/01 09:35:340B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1Unihedron ユニ30.03332019/04/17 15:17:390B / 3B / 0B

Arc _

RankUserSizeTimeDateStatistics
1pooq60.74172019/08/08 13:01:210B / ?B / ?B

Clojure _

RankUserSizeTimeDateStatistics
1pooq120.58282019/08/10 05:38:320B / ?B / ?B

Io _

RankUserSizeTimeDateStatistics
1pooq100.04962019/07/17 06:40:380B / ?B / ?B

JavaScript _

RankUserSizeTimeDateStatistics
1pooq120.01122019/10/09 07:27:430B / ?B / ?B

Tcl _

RankUserSizeTimeDateStatistics
1pooq80.01312019/08/19 11:24:270B / ?B / ?B

Xtal _

RankUserSizeTimeDateStatistics
1pooq80.01232019/08/08 17:24:110B / ?B / ?B

Crystal _

RankUserSizeTimeDateStatistics
1pooq100.01162019/08/12 18:10:570B / ?B / ?B

Kite _

RankUserSizeTimeDateStatistics
1_120.02672019/08/23 19:13:570B / ?B / ?B

PARI/GP _

RankUserSizeTimeDateStatistics
1pooq170.01042019/08/10 04:28:130B / ?B / ?B

Squirrel _

RankUserSizeTimeDateStatistics
1pooq120.00012019/08/04 07:57:060B / ?B / ?B

Forth _

RankUserSizeTimeDateStatistics
1pooq60.01672019/08/15 13:26:110B / ?B / ?B

BASIC _

RankUserSizeTimeDateStatistics
1pooq60.00012019/07/16 15:49:350B / ?B / ?B

C _

RankUserSizeTimeDateStatistics
1_1310.01052019/04/13 14:18:510B / ?B / ?B

Chapel _

RankUserSizeTimeDateStatistics
1pooq130.01282019/08/11 11:18:160B / ?B / ?B

Maxima _

RankUserSizeTimeDateStatistics
1pooq140.05732019/10/17 12:20:020B / ?B / ?B

Octave _

RankUserSizeTimeDateStatistics
1pooq90.12922019/09/07 10:46:190B / ?B / ?B

Asymptote _

RankUserSizeTimeDateStatistics
1pooq110.07162019/07/24 11:19:500B / ?B / ?B

AWK _

RankUserSizeTimeDateStatistics
1Unihedron ユニ80.01042019/04/17 15:18:300B / 4B / 4B

sed _

RankUserSizeTimeDateStatistics
1Unihedron ユニ40.01042019/04/17 15:18:370B / 4B / 0B

jq _

RankUserSizeTimeDateStatistics
1pooq50.01492019/07/16 04:58:410B / ?B / ?B

bc _

RankUserSizeTimeDateStatistics
1pooq60.01062019/07/24 04:51:490B / ?B / ?B

dc _

RankUserSizeTimeDateStatistics
1pooq60.00012019/10/15 09:38:120B / ?B / ?B

m4 _

RankUserSizeTimeDateStatistics
1McBusLuck30.00012019/07/27 18:51:010B / 3B / 0B

Postscript _

RankUserSizeTimeDateStatistics
1pooq60.06812019/10/06 06:19:320B / ?B / ?B

R _

RankUserSizeTimeDateStatistics
1pooq100.10822019/07/27 13:07:190B / ?B / ?B

QCL _

RankUserSizeTimeDateStatistics
1pooq120.00022019/08/08 19:21:450B / ?B / ?B

gs2 _

RankUserSizeTimeDateStatistics
1Unihedron ユニ30.05872019/04/17 15:17:560B / 3B / 0B

Burlesque _

RankUserSizeTimeDateStatistics
1pooq70.00012019/08/03 08:02:520B / ?B / ?B

z80 _

RankUserSizeTimeDateStatistics
1McBusLuck70.00012019/07/17 17:49:044B / 2B / 1B

DOS _

RankUserSizeTimeDateStatistics
1McBusLuck112.54842019/05/18 05:49:565B / ?B / ?B

goruby _

RankUserSizeTimeDateStatistics
1pooq60.01882019/08/21 05:22:430B / ?B / ?B

Groovy _

RankUserSizeTimeDateStatistics
1pooq120.63202019/07/28 20:25:340B / ?B / ?B

Language Ranking_

RankLangUserSizeScore
1PHPUnihedron ユニ310000
2gs2Unihedron ユニ310000
3m4McBusLuck310000
4sedUnihedron ユニ47500
5jqpooq56000
6BASICpooq65000
7bcpooq65000
8Arcpooq65000
9Forthpooq65000
10gorubypooq65000
11Postscriptpooq65000
12dcpooq65000
13z80McBusLuck74285
14Burlesquepooq74285
15AWKUnihedron ユニ83750
16Xtalpooq83750
17Tclpooq83750
18Ruby2pooq93333
19Octavepooq93333
20Iopooq103000
21Rpooq103000
22Crystalpooq103000
23DOSMcBusLuck112727
24Asymptotepooq112727
25Python3c_r_5122500
26Groovypooq122500
27Squirrelpooq122500
28QCLpooq122500
29Clojurepooq122500
30Kite122500
31JavaScriptpooq122500
32Chapelpooq132307
33Maximapooq142142
34PARI/GPpooq171764
35C131229

return to the top page