結果
問題 |
No.264 じゃんけん
|
ユーザー |
|
提出日時 | 2017-12-13 09:50:19 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 584 bytes |
コンパイル時間 | 823 ms |
コンパイル使用メモリ | 109,884 KB |
実行使用メモリ | 26,196 KB |
最終ジャッジ日時 | 2024-12-14 09:03:27 |
合計ジャッジ時間 | 1,486 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 3 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class Program { static void Main() { int N,K; int[] y = new int[5]; string x = Console.ReadLine(); string[] z = x.Split(' '); for(int i=0;i<z.Length; i++){ y[i] = int.Parse(z[i]); } N = y[0]; K = y[1]; if(N == K){ Console.WriteLine("Drew"); }else if(N == 0 && K == 1 || N == 1 && K == 2 || N == 2 && K == 0){ Console.WriteLine("Win"); }else{ Console.WriteLine("Lost"); } } }