結果
| 問題 | No.8 N言っちゃダメゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-17 12:48:55 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 5,000 ms |
| コード長 | 494 bytes |
| コンパイル時間 | 951 ms |
| コンパイル使用メモリ | 96,848 KB |
| 最終ジャッジ日時 | 2025-02-11 12:15:03 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <algorithm>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <numeric>
#include <bitset>
#include <cmath>
#include <limits>
static const int MOD = 998244353;
using ll = long long;
using uint = unsigned;
using ull = unsigned long long;
using namespace std;
int main() {
int p;
cin >> p;
for (int i = 0; i < p; ++i) {
int n, k;
cin >> n >> k;
puts((n-1)%(k+1) == 0 ? "Lose" : "Win");
}
return 0;
}