結果

問題 No.264 じゃんけん
ユーザー AtriaAtria
提出日時 2019-11-10 15:42:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 5,000 ms
コード長 671 bytes
コンパイル時間 853 ms
コンパイル使用メモリ 67,504 KB
実行使用メモリ 23,972 KB
最終ジャッジ日時 2023-10-13 07:46:36
合計ジャッジ時間 2,139 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,908 KB
testcase_01 AC 57 ms
23,972 KB
testcase_02 AC 57 ms
21,724 KB
testcase_03 AC 56 ms
21,820 KB
testcase_04 AC 57 ms
23,964 KB
testcase_05 AC 57 ms
21,792 KB
testcase_06 AC 57 ms
21,824 KB
testcase_07 AC 56 ms
21,784 KB
testcase_08 AC 56 ms
19,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;

namespace CP
{
    class Atria
    {
        static void Main(string[] args)
        {
            int[] s = ReadLine().Split(' ').Select(int.Parse).ToArray();
            if(s[0] == s[1])
            {
                WriteLine("Drew");
            }
            else if ((s[0] == 0 && s[1] == 1)|| (s[0] == 1 && s[1] == 2)||(s[0] == 2 && s[1] == 0))
            {
                WriteLine("Won");
            }
            else
            {
                WriteLine("Lost");
            }
        }
    }
}
0