結果

問題 No.264 じゃんけん
ユーザー qwrtpsfgqwrtpsfg
提出日時 2017-08-01 21:22:11
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 565 bytes
コンパイル時間 1,648 ms
コンパイル使用メモリ 107,500 KB
実行使用メモリ 25,944 KB
最終ジャッジ日時 2024-04-19 07:38:56
合計ジャッジ時間 1,572 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
24,116 KB
testcase_01 AC 24 ms
24,036 KB
testcase_02 AC 24 ms
24,116 KB
testcase_03 AC 24 ms
25,872 KB
testcase_04 AC 25 ms
25,944 KB
testcase_05 AC 24 ms
23,908 KB
testcase_06 AC 24 ms
24,028 KB
testcase_07 AC 24 ms
23,776 KB
testcase_08 AC 24 ms
24,112 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 = "";
                
        if(b - a == 0)
        {
            answer = "Drew";
        }
        else if((a - b + 3) % 3 == 1)
        {
            answer = "Lost";
        }
        else
        {
            answer = "Won";
        }
        
        Console.WriteLine(answer);

    }
}

0