結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
21,676 KB
testcase_01 AC 58 ms
23,660 KB
testcase_02 AC 56 ms
15,472 KB
testcase_03 AC 57 ms
15,520 KB
testcase_04 AC 56 ms
15,452 KB
testcase_05 AC 56 ms
15,488 KB
testcase_06 AC 56 ms
15,464 KB
testcase_07 AC 57 ms
15,472 KB
testcase_08 AC 57 ms
15,428 KB
testcase_09 AC 57 ms
15,540 KB
testcase_10 AC 56 ms
15,584 KB
testcase_11 AC 55 ms
15,540 KB
testcase_12 AC 56 ms
15,488 KB
testcase_13 AC 55 ms
15,472 KB
testcase_14 AC 56 ms
15,600 KB
testcase_15 AC 56 ms
15,464 KB
testcase_16 AC 56 ms
15,600 KB
testcase_17 AC 56 ms
15,588 KB
testcase_18 AC 57 ms
15,536 KB
testcase_19 AC 56 ms
15,476 KB
testcase_20 AC 56 ms
15,504 KB
testcase_21 AC 55 ms
15,596 KB
testcase_22 AC 57 ms
15,456 KB
testcase_23 AC 57 ms
15,492 KB
testcase_24 AC 57 ms
15,488 KB
testcase_25 AC 56 ms
15,528 KB
testcase_26 AC 57 ms
15,488 KB
testcase_27 AC 57 ms
15,600 KB
testcase_28 AC 57 ms
15,540 KB
testcase_29 AC 56 ms
15,608 KB
testcase_30 AC 56 ms
15,512 KB
testcase_31 AC 57 ms
15,476 KB
testcase_32 AC 56 ms
15,592 KB
testcase_33 AC 57 ms
15,600 KB
testcase_34 AC 59 ms
15,544 KB
testcase_35 AC 55 ms
15,500 KB
testcase_36 AC 54 ms
15,528 KB
testcase_37 AC 55 ms
15,584 KB
testcase_38 AC 58 ms
21,688 KB
testcase_39 AC 58 ms
23,680 KB
testcase_40 AC 58 ms
21,624 KB
testcase_41 AC 56 ms
21,624 KB
testcase_42 AC 55 ms
21,620 KB
testcase_43 AC 56 ms
23,524 KB
testcase_44 AC 55 ms
21,652 KB
testcase_45 AC 55 ms
21,672 KB
testcase_46 AC 57 ms
21,564 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("SUCCESS");
            }
            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