結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2015-06-28 00:29:46 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 431 ms |
コンパイル使用メモリ | 56,124 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-07 20:17:49 |
合計ジャッジ時間 | 822 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 3 |
ソースコード
#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; } }