結果

問題 No.264 じゃんけん
ユーザー qwrtpsfg
提出日時 2017-08-01 21:22:11
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 565 bytes
コンパイル時間 764 ms
コンパイル使用メモリ 105,056 KB
実行使用メモリ 17,920 KB
最終ジャッジ日時 2024-10-11 00:17:56
合計ジャッジ時間 1,506 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello{
    public static void Main(){
        // Here your code !
        string s = Console.ReadLine();
        string[] input = s.Split(' ');
        int a = int.Parse(input[0]);
        int b = int.Parse(input[1]);
        string answer = "";
                
        if(b - a == 0)
        {
            answer = "Drew";
        }
        else if((a - b + 3) % 3 == 1)
        {
            answer = "Lost";
        }
        else
        {
            answer = "Won";
        }
        
        Console.WriteLine(answer);

    }
}

0