結果
| 問題 | No.264 じゃんけん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-24 17:18:26 |
| 言語 | C# (.NET 10.0.201) |
| 結果 |
AC
|
| 実行時間 | 72 ms / 5,000 ms |
| コード長 | 596 bytes |
| 記録 | |
| コンパイル時間 | 6,901 ms |
| コンパイル使用メモリ | 172,412 KB |
| 実行使用メモリ | 193,404 KB |
| 最終ジャッジ日時 | 2026-04-09 00:50:45 |
| 合計ジャッジ時間 | 8,251 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (95 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
using System;
namespace yukicoder
{
class Program
{
static void Main(string[] args)
{
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);//自分
int b = int.Parse(str[1]);//相手
if (a == b)
{
Console.WriteLine("Drew");
} else if (a == 2 && b == 0 || a == 1 && b == 2 || a == 0&&b==1)
{
Console.WriteLine("Won");
}
else
{
Console.WriteLine("Lost");
}
}
}
}