結果

問題 No.264 じゃんけん
ユーザー nattoumarunattoumaru
提出日時 2018-02-16 00:14:18
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 598 bytes
コンパイル時間 766 ms
コンパイル使用メモリ 68,112 KB
実行使用メモリ 26,056 KB
最終ジャッジ日時 2023-08-28 17:29:05
合計ジャッジ時間 1,838 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
21,824 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 54 ms
21,956 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 54 ms
21,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace programPractice
{
    class Program
    {
        static void Main(string[] args) { 
            int[] janken = Console.ReadLine().Split().Select(int.Parse).ToArray();
            string p;
            if (janken[0] == janken[1])
            {
                p = "Drew";
            } else if (janken[0] + 1 % 3 ==0) {
                p = "Won";
            }
            else {
                p = "Lose";
            }
            Console.WriteLine(p);
        }
  }
}
0