結果

問題 No.264 じゃんけん
ユーザー qwrtpsfgqwrtpsfg
提出日時 2017-08-01 21:05:33
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 974 bytes
コンパイル時間 1,076 ms
コンパイル使用メモリ 112,636 KB
実行使用メモリ 25,872 KB
最終ジャッジ日時 2024-04-19 07:37:47
合計ジャッジ時間 1,653 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
17,664 KB
testcase_01 AC 24 ms
17,792 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 25 ms
18,048 KB
testcase_05 AC 25 ms
17,664 KB
testcase_06 AC 25 ms
17,920 KB
testcase_07 WA -
testcase_08 AC 24 ms
17,920 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello{
    public static void Main(){
        // Here your code !
        string s = Console.ReadLine();
        string[] input = s.Split(' ');
        int a = int.Parse(input[0]);
        int b = int.Parse(input[1]);
        string answer = "";
                
        switch(a)
        {
            case 0:
                if(b == 1)
                    answer = "Won";
                if(b == 2)
                    answer = "Lose";
                break;
            case 1:
                if(b == 0)
                    answer = "Lose";
                if(b == 2)
                    answer = "Won";
                break;
            case 2:
                if(b == 0)
                    answer = "Won";
                if(b == 1)
                    answer = "Lose";
                break;
        }
        
        if(b - a == 0)
        {
            answer = "Drew";
        }
        
        Console.WriteLine(answer);

    }
}

0