結果
| 問題 |
No.8 N言っちゃダメゲーム
|
| コンテスト | |
| ユーザー |
shirano_c
|
| 提出日時 | 2015-06-28 00:33:51 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 367 bytes |
| コンパイル時間 | 325 ms |
| コンパイル使用メモリ | 55,568 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-07 20:17:55 |
| 合計ジャッジ時間 | 783 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 10 |
ソースコード
#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||max){
cout << "Lose" << endl;
}
else if ((dame - 1) % (max + 1) < max){
cout << "Win"<< endl;
}
else cout << "Lose" << endl;
}
}
shirano_c