結果

問題 No.870 無敵囲い
ユーザー ngtkanangtkana
提出日時 2020-02-06 12:24:44
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 300 ms
コード長 569 bytes
コンパイル時間 963 ms
コンパイル使用メモリ 65,932 KB
実行使用メモリ 23,760 KB
最終ジャッジ日時 2023-09-11 16:29:47
合計ジャッジ時間 3,200 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,572 KB
testcase_01 AC 60 ms
23,720 KB
testcase_02 AC 59 ms
21,576 KB
testcase_03 AC 60 ms
21,608 KB
testcase_04 AC 59 ms
21,744 KB
testcase_05 AC 61 ms
21,744 KB
testcase_06 AC 60 ms
21,600 KB
testcase_07 AC 59 ms
21,568 KB
testcase_08 AC 59 ms
21,532 KB
testcase_09 AC 60 ms
23,536 KB
testcase_10 AC 59 ms
21,724 KB
testcase_11 AC 60 ms
23,552 KB
testcase_12 AC 59 ms
21,592 KB
testcase_13 AC 59 ms
21,620 KB
testcase_14 AC 60 ms
23,760 KB
testcase_15 AC 59 ms
21,548 KB
testcase_16 AC 60 ms
23,588 KB
testcase_17 AC 60 ms
23,608 KB
testcase_18 AC 60 ms
21,644 KB
testcase_19 AC 59 ms
19,604 KB
testcase_20 AC 59 ms
21,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Linq;
using System.Collections.Generic;


static class NagataKanaIsAGenius {
    public static void Main() {
        int[,]ckd=new int[11,11];
        ckd[2,8]=1;
        ckd[3,9]=2;
        ckd[7,9]=3;
        int n=int.Parse(Console.ReadLine());
        for(int i=0;i<n;i++){
            int[]a=Console.ReadLine().Split().Select(int.Parse).ToArray();
            int x=ckd[a[0],a[1]];
            ckd[a[0],a[1]]=0;
            ckd[a[2],a[3]]=x;
        }
        Console.WriteLine(ckd[5,8]==1&&ckd[4,8]==2&&ckd[6,8]==3?"YES":"NO");
    }
}
0