結果
| 問題 | No.264 じゃんけん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-01-23 19:15:18 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 5,000 ms |
| コード長 | 547 bytes |
| コンパイル時間 | 3,398 ms |
| コンパイル使用メモリ | 103,168 KB |
| 実行使用メモリ | 18,816 KB |
| 最終ジャッジ日時 | 2024-12-26 03:42:24 |
| 合計ジャッジ時間 | 3,374 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
namespace prob264
{
class Program
{
static void Main(string[] args)
{
string s = "";
int[] a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
if (a[0] == a[1])
{
s = "Drew";
}
else if ((a[0] + 1) % 3 == a[1])
{
s = "Won";
}
else
{
s = "Lost";
}
Console.WriteLine(s);
}
}
}