結果
| 問題 | 
                            No.1314 N言っちゃダメゲーム (5)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-12-20 20:09:05 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 332 bytes | 
| コンパイル時間 | 807 ms | 
| コンパイル使用メモリ | 65,792 KB | 
| 最終ジャッジ日時 | 2025-01-17 04:56:29 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 23 WA * 5 | 
ソースコード
#include <iostream>
using namespace std;
int main(){
    int M, K; cin >> M >> K;
    int lose = M/(K+1);
    int win = M-lose-1;
    int a = (win+1)/2;
    int b = win/2;
    if(a==b) b += lose;
    else a += lose;
    if(a > b) cout << "Win" << endl;
    else if(a < b) cout << "Lose" << endl;
    else cout << "Draw" << endl;
}