結果
問題 |
No.1314 N言っちゃダメゲーム (5)
|
ユーザー |
![]() |
提出日時 | 2020-12-11 00:04:52 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 2,040 ms |
コンパイル使用メモリ | 191,412 KB |
最終ジャッジ日時 | 2025-01-16 21:41:34 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 WA * 8 |
ソースコード
#include <stdio.h> #include <bits/stdc++.h> using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000000000000000 int main(){ int M,K; cin>>M>>K; int win = M-1 - (M/(K+1)); int lose = M - 1 - win; if(win%2==0){ if(lose%2)cout<<"Lose"<<endl; else cout<<"Draw"<<endl; } else{ cout<<"Win"<<endl; } return 0; }