結果

問題 No.1934 Four Fruits
ユーザー cccccc
提出日時 2022-09-01 13:56:32
言語 C#
(.NET 8.0.203)
結果
WA  
実行時間 -
コード長 567 bytes
コンパイル時間 10,459 ms
コンパイル使用メモリ 169,056 KB
実行使用メモリ 188,388 KB
最終ジャッジ日時 2024-04-26 16:06:50
合計ジャッジ時間 11,923 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 53 ms
30,336 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 53 ms
30,208 KB
testcase_08 AC 52 ms
30,332 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (92 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;


class Program
{
    static void Main()
    {
        var abc = Console.ReadLine().Split().Select(int.Parse).ToArray();
        var a = abc[0];
        var b = abc[1];
        var c = abc[2];

        if (a == b && b == c) 
        {
            Console.WriteLine(1);
        }
        else if(a == b || a == c)
        {
            Console.WriteLine(2);
        }
        else if(a != b && b != c)
        {
            Console.WriteLine(3);
        }
    }
}
0