結果
| 問題 |
No.8 N言っちゃダメゲーム
|
| ユーザー |
skewes
|
| 提出日時 | 2015-12-29 16:32:07 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 5,000 ms |
| コード長 | 644 bytes |
| コンパイル時間 | 995 ms |
| コンパイル使用メモリ | 105,728 KB |
| 実行使用メモリ | 18,048 KB |
| 最終ジャッジ日時 | 2024-09-19 08:24:30 |
| 合計ジャッジ時間 | 1,534 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace yukicoder
{
class _008
{
static void Main()
{
int p = int.Parse(Console.ReadLine());
for (int i = 0; i < p; i++)
{
int[] np = Array.ConvertAll(Console.ReadLine().Split(' ')
, x => int.Parse(x));
g(np[0], np[1]);
}
}
static void g(int n, int k)
{
if (n - 1 <= k || n % (k + 1) != 1)
{
Console.WriteLine("Win");
}
else
{
Console.WriteLine("Lose");
}
}
}
}
skewes