結果
問題 | No.8 N言っちゃダメゲーム |
ユーザー |
|
提出日時 | 2024-05-07 00:07:07 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 5,000 ms |
コード長 | 269 bytes |
コンパイル時間 | 1,986 ms |
コンパイル使用メモリ | 192,268 KB |
最終ジャッジ日時 | 2025-02-21 11:30:52 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--){ int N,K; cin >> N >> K; if((N-1)%(K+1)) cout << "Win\n"; else cout << "Lose\n"; } }