結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2018-02-26 20:25:53 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 336 bytes |
コンパイル時間 | 531 ms |
コンパイル使用メモリ | 67,360 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-24 16:23:33 |
合計ジャッジ時間 | 1,035 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <vector> #define REP(i, a, b) for (int i = int(a); i < int(b); i++) using namespace std; int main () { int N; cin >> N; REP (i, 0, N) { int a, b; cin >> a >> b; if ((a - 1) % (b + 1)) { cout << "Win" << endl; } else { cout << "Lose" << endl; } } return 0; }