結果

問題 No.264 じゃんけん
ユーザー mbanmban
提出日時 2016-11-05 10:51:15
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 571 bytes
コンパイル時間 2,560 ms
コンパイル使用メモリ 104,956 KB
実行使用メモリ 25,864 KB
最終ジャッジ日時 2023-08-16 13:49:10
合計ジャッジ時間 3,587 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
23,880 KB
testcase_01 AC 58 ms
21,740 KB
testcase_02 AC 58 ms
19,748 KB
testcase_03 AC 60 ms
25,864 KB
testcase_04 AC 58 ms
21,836 KB
testcase_05 AC 58 ms
23,900 KB
testcase_06 AC 59 ms
21,788 KB
testcase_07 AC 58 ms
23,820 KB
testcase_08 AC 58 ms
21,728 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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

class Magatro
{
    static void Main()
    {
        int[] NK = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
        switch (((NK[1] - NK[0])+3)%3)
        {
            case 0:
                Console.WriteLine("Drew");
                break;
            case 1:
                Console.WriteLine("Won");
                break;
            case 2:
                Console.WriteLine("Lost");
                break;
        }
    }
}
0