結果
問題 | No.264 じゃんけん |
ユーザー | oemon |
提出日時 | 2016-11-21 23:32:43 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 61 ms / 5,000 ms |
コード長 | 994 bytes |
コンパイル時間 | 2,609 ms |
コンパイル使用メモリ | 105,644 KB |
実行使用メモリ | 25,948 KB |
最終ジャッジ日時 | 2023-08-18 06:14:39 |
合計ジャッジ時間 | 3,528 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 59 ms
21,824 KB |
testcase_01 | AC | 60 ms
21,912 KB |
testcase_02 | AC | 60 ms
21,728 KB |
testcase_03 | AC | 60 ms
23,880 KB |
testcase_04 | AC | 60 ms
21,836 KB |
testcase_05 | AC | 59 ms
21,864 KB |
testcase_06 | AC | 61 ms
23,912 KB |
testcase_07 | AC | 61 ms
25,948 KB |
testcase_08 | AC | 60 ms
21,864 KB |
コンパイルメッセージ
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 No264 { class Program { static void Main(string[] args) { var NK = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); var N = NK[0]; var K = NK[1]; var result = ""; switch (N) { case 0: if (K == 0) result = "Drew"; if (K == 1) result = "Won"; if (K == 2) result = "Lost"; break; case 1: if (K == 0) result = "Lost"; if (K == 1) result = "Drew"; if (K == 2) result = "Won"; break; case 2: if (K == 0) result = "Won"; if (K == 1) result = "Lost"; if (K == 2) result = "Drew"; break; } Console.Write(result); } } }