結果
| 問題 | No.264 じゃんけん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-24 17:18:26 |
| 言語 | C# (.NET 10.0.400 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 29 ms / 5,000 ms |
| + 732µs | |
| コード長 | 596 bytes |
| 記録 | |
| コンパイル時間 | 4,841 ms |
| コンパイル使用メモリ | 171,324 KB |
| 実行使用メモリ | 193,572 KB |
| 最終ジャッジ日時 | 2026-08-31 20:06:39 |
| 合計ジャッジ時間 | 6,387 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (79 ミリ秒)。 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");
}
}
}
}