結果

問題 No.264 じゃんけん
ユーザー ProgramingWe
提出日時 2017-10-27 15:23:30
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 866 bytes
コンパイル時間 734 ms
コンパイル使用メモリ 102,784 KB
実行使用メモリ 17,920 KB
最終ジャッジ日時 2024-11-21 20:49:53
合計ジャッジ時間 1,429 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] n = new int[2];
            string[] strn = Console.ReadLine().Split(' ');
            int N = int.Parse(strn[0]);
            int K = int.Parse(strn[1]);
            if (N == K)
            {
                Console.WriteLine("Drew");
            }
            else if (K - N == 1)
            {
                Console.WriteLine("Win");
            }
            else if (N - K == 1)
            {
                Console.WriteLine("Lost");
            }
            else if (N == 2)
            {
                Console.WriteLine("Win");
            }
            else if (N == 0)
            {
                Console.WriteLine("Lost");
            }
        }
    }
}
0