結果

問題 No.264 じゃんけん
ユーザー itok217itok217
提出日時 2017-04-09 19:08:34
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 506 bytes
コンパイル時間 2,839 ms
コンパイル使用メモリ 99,092 KB
実行使用メモリ 24,032 KB
最終ジャッジ日時 2023-09-25 01:28:11
合計ジャッジ時間 3,680 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,004 KB
testcase_01 AC 59 ms
24,032 KB
testcase_02 AC 59 ms
21,876 KB
testcase_03 AC 59 ms
22,028 KB
testcase_04 AC 59 ms
23,772 KB
testcase_05 AC 60 ms
23,772 KB
testcase_06 AC 59 ms
21,744 KB
testcase_07 AC 58 ms
21,852 KB
testcase_08 AC 59 ms
23,916 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.Linq;

class Program {
    static void Main() {
        int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
        if (n[0] == n[1]) {
            Console.WriteLine("Drew");
        } else if (n[0] == 0) {
            Console.WriteLine(n[1] == 1 ? "Won" : "Lost");
        } else if (n[0] == 1) {
            Console.WriteLine(n[1] == 2 ? "Won" : "Lost");
        } else if (n[0] == 2) {
            Console.WriteLine(n[1] == 0 ? "Won" : "Lost");
        }
    }
}
0