結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
_i1115
|
| 提出日時 | 2020-04-08 02:50:35 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 5,000 ms |
| コード長 | 683 bytes |
| コンパイル時間 | 3,483 ms |
| コンパイル使用メモリ | 112,608 KB |
| 実行使用メモリ | 25,872 KB |
| 最終ジャッジ日時 | 2024-07-16 00:19:52 |
| 合計ジャッジ時間 | 3,483 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
class Program
{
const string WON = "Won";
const string LOST = "Lost";
const string DREW = "Drew";
static void Main ()
{
string[] nums = Console.ReadLine ().Split (' ');
int n = int.Parse (nums[0]);
int k = int.Parse (nums[1]);
if (n == k)
Console.WriteLine (DREW);
else
{
switch (n)
{
case 0:
if (k == 1)
Console.WriteLine (WON);
else
Console.WriteLine (LOST);
break;
case 1:
if (k == 2)
Console.WriteLine (WON);
else
Console.WriteLine (LOST);
break;
case 2:
if (k == 0)
Console.WriteLine (WON);
else
Console.WriteLine (LOST);
break;
}
}
}
}
_i1115