結果

問題 No.264 じゃんけん
ユーザー TDTD
提出日時 2022-05-24 17:18:26
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 596 bytes
コンパイル時間 6,147 ms
コンパイル使用メモリ 158,100 KB
実行使用メモリ 176,812 KB
最終ジャッジ日時 2023-10-20 18:50:27
合計ジャッジ時間 7,323 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System;

namespace yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] str = Console.ReadLine().Split(' ');
            int a = int.Parse(str[0]);//自分
            int b = int.Parse(str[1]);//相手
            if (a == b)
            {
                Console.WriteLine("Drew");
            } else if (a == 2 && b == 0 || a == 1 && b == 2 || a == 0&&b==1)
            {
                Console.WriteLine("Won");
            }
            else
            {
                Console.WriteLine("Lost");
            }
        }
    }
}
0