結果
問題 | No.264 じゃんけん |
ユーザー | kimny |
提出日時 | 2017-11-15 13:24:28 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,537 bytes |
コンパイル時間 | 2,075 ms |
コンパイル使用メモリ | 104,016 KB |
実行使用メモリ | 22,816 KB |
最終ジャッジ日時 | 2023-08-16 14:24:27 |
合計ジャッジ時間 | 3,232 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
22,816 KB |
testcase_01 | AC | 56 ms
22,796 KB |
testcase_02 | AC | 54 ms
20,832 KB |
testcase_03 | AC | 53 ms
20,740 KB |
testcase_04 | AC | 53 ms
22,764 KB |
testcase_05 | AC | 55 ms
20,692 KB |
testcase_06 | WA | - |
testcase_07 | AC | 53 ms
22,800 KB |
testcase_08 | AC | 54 ms
20,784 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.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoder_264 { class Program { static void Main(string[] args) { string[] a = Console.ReadLine().Split(' '); int n = int.Parse(a[0]); int k = int.Parse(a[1]); if (n == 0) { if (k == 0) { Console.WriteLine("Drew"); } else if (k == 1) { Console.WriteLine("Won"); } else { Console.WriteLine("Lost"); } } if (n == 1) { if (k == 0) { Console.WriteLine("Lost"); } else if (k == 1) { Console.WriteLine("Drew"); } else { Console.WriteLine("Won"); } } if (n == 2) { if (k == 0) { Console.WriteLine("Won"); } if (k == 1) { Console.WriteLine("Lost"); } else { Console.WriteLine("Drew"); } } Console.ReadLine(); } } }