結果
問題 | No.264 じゃんけん |
ユーザー |
|
提出日時 | 2020-03-31 08:12:38 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 27 ms / 5,000 ms |
コード長 | 485 bytes |
コンパイル時間 | 1,010 ms |
コンパイル使用メモリ | 110,436 KB |
実行使用メモリ | 26,080 KB |
最終ジャッジ日時 | 2024-06-23 21:49:05 |
合計ジャッジ時間 | 1,730 ms |
ジャッジサーバーID (参考情報) |
judge1 / 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; public class Program { static void Main() { int[] hand = Array.ConvertAll(Console.ReadLine().Split(' '), s => int.Parse(s)); switch ((hand[0] - hand[1] + 3) % 3) { case 0: Console.WriteLine("Drew"); break; case 1: Console.WriteLine("Lost"); break; case 2: Console.WriteLine("Won"); break; } } }