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

Xtal _

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

Crystal _

RankUserSizeTimeDateStatistics
1pooq100.01162019/08/12 18:10: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

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

m4 _

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

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

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
10z80McBusLuck74285
11Burlesquepooq74285
12AWKUnihedron ユニ83750
13Xtalpooq83750
14Ruby2pooq93333
15Iopooq103000
16Rpooq103000
17Crystalpooq103000
18DOSMcBusLuck112727
19Asymptotepooq112727
20Python3c_r_5122500
21Groovypooq122500
22Squirrelpooq122500
23QCLpooq122500
24Clojurepooq122500
25Chapelpooq132307
26PARI/GPpooq171764
27C131229

return to the top page