結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
_mi_lin_
|
| 提出日時 | 2019-01-17 18:13:10 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 692 bytes |
| コンパイル時間 | 779 ms |
| コンパイル使用メモリ | 111,180 KB |
| 実行使用メモリ | 23,820 KB |
| 最終ジャッジ日時 | 2024-07-01 10:09:33 |
| 合計ジャッジ時間 | 1,564 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 1 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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 == 2) || (N == 2 && K == 1))
{
Console.WriteLine("Lost");
}
}
}
}
_mi_lin_