結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
|
提出日時 | 2024-08-01 18:00:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 482 ms |
コンパイル使用メモリ | 66,064 KB |
最終ジャッジ日時 | 2025-02-23 19:41:00 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int P, i, N, K; cin >> P; for (i = 0; i != P; ++i) { cin >> N >> K; if (N % (K + 1) == 1) cout << "Lose\n"; else cout << "Win\n"; } return 0; }