結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー t33f
提出日時 2020-12-11 00:49:14
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 633 ms
コンパイル使用メモリ 66,396 KB
最終ジャッジ日時 2025-01-16 21:49:25
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main() {
    int m, k; cin >> m >> k;
    int l = (m-1) / (k+1), w = m - 1 - l;
    if (w % 2 == 0) cout << (l % 2 == 0 ? "Draw" : "Lose") << endl;
    else cout << (l % 2 == 0 ? "Win" : "Draw") << endl;
}
0