結果

問題 No.264 じゃんけん
ユーザー YoiTakaYoiTaka
提出日時 2017-02-22 22:22:46
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 502 bytes
コンパイル時間 1,899 ms
コンパイル使用メモリ 101,336 KB
実行使用メモリ 24,780 KB
最終ジャッジ日時 2023-08-29 01:38:37
合計ジャッジ時間 3,226 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,676 KB
testcase_01 AC 55 ms
20,756 KB
testcase_02 AC 55 ms
22,792 KB
testcase_03 AC 54 ms
22,748 KB
testcase_04 AC 55 ms
20,760 KB
testcase_05 AC 56 ms
18,608 KB
testcase_06 AC 57 ms
20,856 KB
testcase_07 AC 55 ms
20,856 KB
testcase_08 AC 55 ms
24,780 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

class Program
{
    static void Main(string[] args)
    {
        string line = System.Console.ReadLine().Trim();
        string[] Data = line.Split(' ');
        int N = int.Parse(Data[0]);
        int K = int.Parse(Data[1]);

        if(N==K)
        {
            System.Console.WriteLine("Drew");
        }
        else if((3+N-K)%3 == 2)
        {
            System.Console.WriteLine("Won");
        }
        else
        {
            System.Console.WriteLine("Lost");
        }        
    }
}
0