結果

問題 No.264 じゃんけん
ユーザー ub_nyaoiixub_nyaoiix
提出日時 2016-12-17 10:55:11
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 388 bytes
コンパイル時間 2,317 ms
コンパイル使用メモリ 101,468 KB
実行使用メモリ 24,880 KB
最終ジャッジ日時 2023-08-20 21:46:01
合計ジャッジ時間 3,037 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,644 KB
testcase_01 AC 55 ms
20,796 KB
testcase_02 AC 55 ms
20,704 KB
testcase_03 AC 55 ms
22,812 KB
testcase_04 AC 55 ms
20,712 KB
testcase_05 AC 56 ms
20,604 KB
testcase_06 AC 55 ms
20,612 KB
testcase_07 AC 56 ms
18,748 KB
testcase_08 AC 57 ms
24,880 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 Q0264
{
	public static void Main()
	{
		string[] input = Console.ReadLine().Split(' ');
		int n = int.Parse(input[0]);
		int k = int.Parse(input[1]);

		string output;
		if(n == k)
		{
			output = "Drew";
		}
		else if((n==0 && k==1) || (n==1 && k==2) || (n==2 && k==0))
		{
			output = "Won";
		}
		else
		{
			output = "Lost";
		}

		Console.WriteLine(output);
	}
}
0