結果
問題 | No.264 じゃんけん |
ユーザー | ccc |
提出日時 | 2022-07-14 16:22:42 |
言語 | C# (.NET 8.0.203) |
結果 |
WA
|
実行時間 | - |
コード長 | 877 bytes |
コンパイル時間 | 12,236 ms |
コンパイル使用メモリ | 145,128 KB |
実行使用メモリ | 163,692 KB |
最終ジャッジ日時 | 2023-09-08 06:37:41 |
合計ジャッジ時間 | 13,317 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 50 ms
28,760 KB |
testcase_01 | AC | 50 ms
28,720 KB |
testcase_02 | WA | - |
testcase_03 | AC | 50 ms
28,576 KB |
testcase_04 | AC | 50 ms
28,620 KB |
testcase_05 | AC | 51 ms
28,556 KB |
testcase_06 | AC | 51 ms
28,684 KB |
testcase_07 | AC | 50 ms
28,380 KB |
testcase_08 | AC | 50 ms
163,692 KB |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 171 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.0/publish/
ソースコード
using System; using System.Linq; class Program { static void Main() { /// 0: グー,1:チョキ,2:パー /// 0 0 Drew /// 0 1 Won /// 0 2 lost /// 1 0 lost /// 1 1 Drew /// 1 2 Won /// 2 0 Won /// 2 1 lost /// 2 2 Drew var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (l[0] == 0 && l[1] == 2) { Console.WriteLine("lost"); } else if (l[0] == 2 && l[1] == 0) { Console.WriteLine("Won"); } else if (l[0] < l[1]) { Console.WriteLine("Won"); } else if (l[0] > l[1]) { Console.WriteLine("Lost"); } else { Console.WriteLine("Drew"); } } }