結果

問題 No.197 手品
ユーザー 抹茶アイス抹茶アイス
提出日時 2023-08-31 10:05:44
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 1,246 bytes
コンパイル時間 2,795 ms
コンパイル使用メモリ 106,760 KB
実行使用メモリ 23,760 KB
最終ジャッジ日時 2023-08-31 10:05:56
合計ジャッジ時間 10,486 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
23,704 KB
testcase_01 AC 54 ms
21,660 KB
testcase_02 AC 56 ms
23,664 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 58 ms
21,636 KB
testcase_06 WA -
testcase_07 AC 56 ms
21,712 KB
testcase_08 AC 57 ms
21,596 KB
testcase_09 WA -
testcase_10 AC 56 ms
21,620 KB
testcase_11 AC 57 ms
21,564 KB
testcase_12 AC 55 ms
23,608 KB
testcase_13 AC 57 ms
21,688 KB
testcase_14 AC 56 ms
23,556 KB
testcase_15 AC 56 ms
21,572 KB
testcase_16 AC 56 ms
21,588 KB
testcase_17 AC 56 ms
23,664 KB
testcase_18 AC 57 ms
21,624 KB
testcase_19 AC 57 ms
23,560 KB
testcase_20 AC 55 ms
21,684 KB
testcase_21 AC 58 ms
23,700 KB
testcase_22 AC 57 ms
21,676 KB
testcase_23 AC 56 ms
19,644 KB
testcase_24 AC 57 ms
23,656 KB
testcase_25 AC 58 ms
21,664 KB
testcase_26 AC 57 ms
23,628 KB
testcase_27 AC 57 ms
21,568 KB
testcase_28 AC 57 ms
23,624 KB
testcase_29 AC 58 ms
23,720 KB
testcase_30 AC 57 ms
23,684 KB
testcase_31 AC 57 ms
23,596 KB
testcase_32 AC 56 ms
21,656 KB
testcase_33 AC 56 ms
21,580 KB
testcase_34 AC 57 ms
21,548 KB
testcase_35 AC 57 ms
19,592 KB
testcase_36 AC 58 ms
21,712 KB
testcase_37 AC 58 ms
21,616 KB
testcase_38 AC 57 ms
23,608 KB
testcase_39 AC 55 ms
19,492 KB
testcase_40 AC 58 ms
21,564 KB
testcase_41 AC 56 ms
21,624 KB
testcase_42 AC 57 ms
21,576 KB
testcase_43 WA -
testcase_44 AC 56 ms
23,680 KB
testcase_45 AC 55 ms
21,576 KB
testcase_46 AC 55 ms
21,584 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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

namespace yukicoder
{
    public class Program
    {
        public static void Main()
        {
            var b = Console.ReadLine();
            var n = int.Parse(Console.ReadLine());
            var a = Console.ReadLine();
            if(b.Where(x =>x == 'o').Count() != a.Where(x => x == 'o').Count())
            {
                Console.WriteLine("FAILURE");
            }
            else if (n >= 2)
            {
                Console.WriteLine("FAILURE");
            }
            else if (n == 0)
            {
                if (a == b)
                {
                    Console.WriteLine("FAILURE");
                }
                else
                {
                    Console.WriteLine("SUCCESS");
                }
            }
            else
            {
                var x = "" + b[1] + b[0] + b[2];
                var y = "" + b[0] + b[2] + b[1];
                if (x == a || y == a)
                {
                    Console.WriteLine("FAILURE");
                }
                else
                {
                    Console.WriteLine("SUCCESS");
                }
            }
        }
    }
}
0