結果
問題 | No.8 N言っちゃダメゲーム |
ユーザー |
|
提出日時 | 2021-04-09 00:49:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 382 bytes |
コンパイル時間 | 1,851 ms |
コンパイル使用メモリ | 166,588 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-24 03:49:36 |
合計ジャッジ時間 | 2,297 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include "bits/stdc++.h" using namespace std; using ll = long long; void Main() { int N, K; cin >> N >> K; if (N % (K + 1) == 1) { cout << "Lose" << endl; } else { cout << "Win" << endl; } } int main() { std::cout << std::fixed << std::setprecision(15); int P; cin >> P; while (P--) { Main(); } return 0; }