結果
問題 | No.264 じゃんけん |
ユーザー |
|
提出日時 | 2017-12-13 09:51:15 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 27 ms / 5,000 ms |
コード長 | 584 bytes |
コンパイル時間 | 839 ms |
コンパイル使用メモリ | 107,832 KB |
実行使用メモリ | 26,004 KB |
最終ジャッジ日時 | 2024-12-14 09:03:29 |
合計ジャッジ時間 | 1,609 ms |
ジャッジサーバーID (参考情報) |
judge2 / 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; 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("Won"); }else{ Console.WriteLine("Lost"); } } }