結果

問題 No.264 じゃんけん
ユーザー _mi_lin__mi_lin_
提出日時 2019-01-17 18:16:33
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 691 bytes
コンパイル時間 2,005 ms
コンパイル使用メモリ 103,956 KB
実行使用メモリ 22,748 KB
最終ジャッジ日時 2023-09-14 02:04:07
合計ジャッジ時間 3,304 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,940 KB
testcase_01 AC 56 ms
20,864 KB
testcase_02 AC 56 ms
20,764 KB
testcase_03 AC 55 ms
18,844 KB
testcase_04 AC 57 ms
22,740 KB
testcase_05 AC 57 ms
22,748 KB
testcase_06 AC 55 ms
18,832 KB
testcase_07 AC 56 ms
20,744 KB
testcase_08 AC 56 ms
20,760 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 No264guu2
{
	class Program
	{
		static void Main(string[] args)
		{
			//値の入力
			var input = Console.ReadLine().Split(' ');
			var N = int.Parse(input[0]);
			var K = int.Parse(input[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 if ((N == 0 && K == 2) || (N == 1 && K == 0) || (N == 2 && K == 1)) 
			{
					Console.WriteLine("Lost");
			}
		}
	}
}
0