結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2015-06-28 00:41:05 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 364 bytes |
コンパイル時間 | 415 ms |
コンパイル使用メモリ | 55,228 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 20:18:24 |
合計ジャッジ時間 | 1,070 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include<iostream> using namespace std; int main() { int n, dame, max; cin >> n; for (int i = 0; i < n; i++){ cin >> dame >> max; if (dame < max){ cout << "Win" << endl; } else if ((dame - 1) % (max + 1) == 0){ cout << "Lose" << endl; } else if ((dame - 1) % (max + 1) <= max){ cout << "Win" << endl; } else cout << "Lose" << endl; } }