結果
| 問題 |
No.8 N言っちゃダメゲーム
|
| ユーザー |
ty70
|
| 提出日時 | 2015-12-14 03:04:54 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 446 bytes |
| コンパイル時間 | 420 ms |
| コンパイル使用メモリ | 53,980 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-15 12:10:08 |
| 合計ジャッジ時間 | 1,000 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#define rep(i,n) for(int i=0;i<(n);i++)
#define ALL(A) A.begin(), A.end()
using namespace std;
/*
No.8 N言っちゃダメゲーム
ARC 046B の類題(こっちの方が簡単)
*/
int main()
{
ios_base::sync_with_stdio(0);
int p; cin >> p;
rep (i, p){
int n, k; cin >> n >> k;
if ((n - 1) % (k + 1) == 0){
cout << "Lose" << endl;
}else{
cout << "Win" << endl;
} // end if
} // end rep
return 0;
}
ty70