結果
| 問題 |
No.8 N言っちゃダメゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-15 10:54:28 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 5,000 ms |
| コード長 | 726 bytes |
| コンパイル時間 | 762 ms |
| コンパイル使用メモリ | 105,088 KB |
| 実行使用メモリ | 18,816 KB |
| 最終ジャッジ日時 | 2024-11-25 08:31:48 |
| 合計ジャッジ時間 | 1,492 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
using System.Collections.Generic;
using System.Linq;
namespace No._08
{
class Program
{
static void Main(string[] args)
{
int p = int.Parse(Console.ReadLine());
int[] n = new int[p];
int[] k = new int[p];
while (p-- > 0)
{
string[] input = Console.ReadLine().Split(' ');
n[p] = int.Parse(input[0]);
k[p] = int.Parse(input[1]);
}
p = n.Count();
while (p-- > 0)
if ((n[p] - 1) % (k[p] + 1) > 0)
Console.WriteLine("Win");
else
Console.WriteLine("Lose");
}
}
}