結果
問題 | No.264 じゃんけん |
ユーザー | Umekobuchacha |
提出日時 | 2019-08-29 22:40:38 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 58 ms / 5,000 ms |
コード長 | 938 bytes |
コンパイル時間 | 2,497 ms |
コンパイル使用メモリ | 101,916 KB |
実行使用メモリ | 22,656 KB |
最終ジャッジ日時 | 2023-08-11 04:20:52 |
合計ジャッジ時間 | 3,484 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
20,812 KB |
testcase_01 | AC | 55 ms
20,868 KB |
testcase_02 | AC | 56 ms
18,728 KB |
testcase_03 | AC | 58 ms
20,588 KB |
testcase_04 | AC | 58 ms
20,540 KB |
testcase_05 | AC | 57 ms
22,656 KB |
testcase_06 | AC | 58 ms
20,764 KB |
testcase_07 | AC | 56 ms
20,652 KB |
testcase_08 | AC | 57 ms
20,616 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; namespace ConsoleApp1 { class Program { static void Main(string[] args) { #if LocalDebug var exStdIn = new System.IO.StreamReader("stdin.txt"); System.Console.SetIn(exStdIn); #endif var Data = Console.ReadLine().Split(' '); var Me = int.Parse(Data[0]); var You = int.Parse(Data[1]); var Result = "Won"; if(Me==You) { Result = "Drew"; } if((Me==0)&&(You==2) || (Me == 1) && (You == 0) || (Me == 2) && (You == 1)) { Result = "Lost"; } Console.WriteLine(Result); #if LocalDebug System.Console.ReadKey(); #endif } static int GetData() { return int.Parse(Console.ReadLine()); } } }