結果
| 問題 |
No.8 N言っちゃダメゲーム
|
| ユーザー |
|
| 提出日時 | 2023-07-25 11:32:09 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 5,000 ms |
| コード長 | 608 bytes |
| コンパイル時間 | 16,761 ms |
| コンパイル使用メモリ | 168,556 KB |
| 実行使用メモリ | 183,548 KB |
| 最終ジャッジ日時 | 2024-10-02 05:54:10 |
| 合計ジャッジ時間 | 11,087 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (98 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
namespace yukicoder
{
public class Program
{
public static void Main()
{
var n = int.Parse(Console.ReadLine());
for(var i = 0; i < n; i++)
{
var a = Console.ReadLine().Split(' ');
if (int.Parse(a[0]) % (int.Parse(a[1]) + 1) == 1)
{
Console.WriteLine("Lose");
}
else
{
Console.WriteLine("Win");
}
}
}
}
}