結果
問題 | No.264 じゃんけん |
ユーザー | EleBrain |
提出日時 | 2015-08-07 22:28:53 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 58 ms / 5,000 ms |
コード長 | 1,139 bytes |
コンパイル時間 | 2,060 ms |
コンパイル使用メモリ | 105,348 KB |
実行使用メモリ | 22,800 KB |
最終ジャッジ日時 | 2023-09-25 06:05:06 |
合計ジャッジ時間 | 3,252 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
20,780 KB |
testcase_01 | AC | 58 ms
22,796 KB |
testcase_02 | AC | 56 ms
22,764 KB |
testcase_03 | AC | 57 ms
20,824 KB |
testcase_04 | AC | 56 ms
20,820 KB |
testcase_05 | AC | 56 ms
20,684 KB |
testcase_06 | AC | 56 ms
22,800 KB |
testcase_07 | AC | 56 ms
20,616 KB |
testcase_08 | AC | 57 ms
18,772 KB |
コンパイルメッセージ
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()); } }