結果
問題 | No.264 じゃんけん |
ユーザー |
|
提出日時 | 2015-08-07 22:28:53 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 22 ms / 5,000 ms |
コード長 | 1,139 bytes |
コンパイル時間 | 759 ms |
コンパイル使用メモリ | 113,108 KB |
実行使用メモリ | 26,000 KB |
最終ジャッジ日時 | 2024-07-18 05:10:23 |
合計ジャッジ時間 | 1,298 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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(string[] args) {int N = cin.nextInt();int L = cin.nextInt();string result = "Drew";if (N == 0 && L == 1 ||N == 1 && L == 2 ||N == 2 && L == 0) {result = "Won";} else if (N == 0 && L == 2 ||N == 1 && L == 0 ||N == 2 && L == 1) {result = "Lost";}Console.WriteLine(result);}}public class cin {private static string[] s = new string[0];private static int i = 0;private static char[] cs = new char[] { ' ' };public static string next() {if (i < s.Length) return s[i++];string st = Console.ReadLine();while (st == "") st = Console.ReadLine();s = st.Split(cs, StringSplitOptions.RemoveEmptyEntries);i = 0;return next();}public static int nextInt() {return int.Parse(next());}public static long nextLong() {return long.Parse(next());}public static double nextDouble() {return double.Parse(next());}}