結果

問題 No.264 じゃんけん
コンテスト
ユーザー 大谷祐翔
提出日時 2025-10-29 13:35:44
言語 C#
(.NET 8.0.404)
結果
WA  
実行時間 -
コード長 522 bytes
コンパイル時間 7,881 ms
コンパイル使用メモリ 169,068 KB
実行使用メモリ 183,952 KB
最終ジャッジ日時 2025-10-29 13:35:54
合計ジャッジ時間 8,401 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (111 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

class Program
{
    static void Main(string[] args)
    {
        string[] inputNum = Console.ReadLine()!.Split(' ');
        string myHand = inputNum[0];
        string pairHand = inputNum[1];

        if (myHand == pairHand)
        {
            Console.WriteLine("Drew");
        }
        else if (myHand == "2" && pairHand == "0"
            || myHand == "1" && pairHand == "2")
        {
            Console.WriteLine("Won");
        }
        else
        {
            Console.WriteLine("Lost");
        }
    }
}
0