結果

問題 No.264 じゃんけん
ユーザー laneguelanegue
提出日時 2020-03-31 08:12:38
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 485 bytes
コンパイル時間 1,740 ms
コンパイル使用メモリ 62,824 KB
実行使用メモリ 22,752 KB
最終ジャッジ日時 2023-09-06 02:56:34
合計ジャッジ時間 2,466 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,752 KB
testcase_01 AC 56 ms
18,744 KB
testcase_02 AC 56 ms
20,624 KB
testcase_03 AC 56 ms
22,668 KB
testcase_04 AC 56 ms
20,868 KB
testcase_05 AC 56 ms
20,700 KB
testcase_06 AC 56 ms
22,684 KB
testcase_07 AC 56 ms
20,812 KB
testcase_08 AC 57 ms
20,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
public class Program
{
    static void Main()
    {
        int[] hand = Array.ConvertAll(Console.ReadLine().Split(' '), s => int.Parse(s));
        switch ((hand[0] - hand[1] + 3) % 3)
        {
            case 0:
                Console.WriteLine("Drew");
                break;
            case 1:
                Console.WriteLine("Lost");
                break;
            case 2:
                Console.WriteLine("Won");
                break;
        }
    }
}
0