結果
問題 | No.8 N言っちゃダメゲーム |
ユーザー |
![]() |
提出日時 | 2015-08-20 02:39:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 343 bytes |
コンパイル時間 | 471 ms |
コンパイル使用メモリ | 59,340 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 10:47:30 |
合計ジャッジ時間 | 983 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #define SENTE 0 #define GOTE 1 int main() { int gametime; std::cin >> gametime; for (int i = 0; i < gametime; i++) { int n, k; std::cin >> n >> k; if (n % (k + 1) == 1) { std::cout << "Lose" << std::endl; } else { std::cout << "Win" << std::endl; } } return 0; }