結果
問題 | No.1314 N言っちゃダメゲーム (5) |
ユーザー |
![]() |
提出日時 | 2020-12-11 00:09:41 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 371 bytes |
コンパイル時間 | 2,242 ms |
コンパイル使用メモリ | 191,344 KB |
最終ジャッジ日時 | 2025-01-16 21:42:47 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 WA * 4 |
ソースコード
#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-1)/(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; }