結果

問題 No.264 じゃんけん
ユーザー funakoshifunakoshi
提出日時 2019-06-27 13:13:25
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 1,016 bytes
コンパイル時間 2,041 ms
コンパイル使用メモリ 97,648 KB
実行使用メモリ 20,832 KB
最終ジャッジ日時 2023-09-09 23:50:39
合計ジャッジ時間 3,382 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,736 KB
testcase_01 AC 57 ms
20,704 KB
testcase_02 AC 57 ms
20,544 KB
testcase_03 AC 57 ms
20,580 KB
testcase_04 AC 57 ms
20,644 KB
testcase_05 AC 57 ms
20,716 KB
testcase_06 AC 56 ms
20,564 KB
testcase_07 AC 57 ms
20,832 KB
testcase_08 AC 56 ms
20,560 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;
using System.Text;
using System.Threading.Tasks;

namespace yukicoderTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(' ');
            int me = int.Parse(input[0]);
            int opponent = int.Parse(input[1]);
            if(me==opponent)
            {
                Console.WriteLine("Drew");
            }
            else
            {
                if (me == 0 && opponent == 1)
                {
                    Console.WriteLine("Won");
                }
                else if(me==1&&opponent==2)
                {
                    Console.WriteLine("Won");
                }
                else if(me==2&&opponent==0)
                {
                    Console.WriteLine("Won");
                }
                else
                {
                    Console.WriteLine("Lost");

                }
            }
        }

    }
}
0