結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
|
提出日時 | 2021-01-15 10:57:26 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 5,000 ms |
コード長 | 545 bytes |
コンパイル時間 | 957 ms |
コンパイル使用メモリ | 108,200 KB |
実行使用メモリ | 26,000 KB |
最終ジャッジ日時 | 2024-11-25 08:33:58 |
合計ジャッジ時間 | 1,747 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 No._08 { class Program { static void Main(string[] args) { int p = int.Parse(Console.ReadLine()); while (p-- > 0) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int k = int.Parse(input[1]); if ((n - 1) % (k + 1) > 0) Console.WriteLine("Win"); else Console.WriteLine("Lose"); } } } }