結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
mban
|
| 提出日時 | 2016-11-05 10:51:15 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 5,000 ms |
| コード長 | 571 bytes |
| コンパイル時間 | 973 ms |
| コンパイル使用メモリ | 113,552 KB |
| 実行使用メモリ | 27,260 KB |
| 最終ジャッジ日時 | 2024-11-25 03:03:15 |
| 合計ジャッジ時間 | 1,509 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.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;
}
}
}
mban