結果

問題 No.264 じゃんけん
ユーザー yuki-One300yuki-One300
提出日時 2017-12-13 09:51:15
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 56 ms / 5,000 ms
コード長 584 bytes
コンパイル時間 1,951 ms
コンパイル使用メモリ 102,420 KB
実行使用メモリ 22,748 KB
最終ジャッジ日時 2023-08-21 01:23:08
合計ジャッジ時間 3,119 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System;

class Program
{
    static void Main()
    {
        int N,K;
        int[] y = new int[5];
        string x = Console.ReadLine();
        string[] z = x.Split(' ');
        

        for(int i=0;i<z.Length; i++){
            y[i] = int.Parse(z[i]);
        }

        N = y[0];
        K = y[1];

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