結果
問題 | No.1314 N言っちゃダメゲーム (5) |
ユーザー | umezo |
提出日時 | 2020-12-11 00:26:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 2,029 ms |
コンパイル使用メモリ | 191,344 KB |
最終ジャッジ日時 | 2025-01-16 21:45:41 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#define rep(i,n) for (int i=0;i < (int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include <bits/stdc++.h> using namespace std; int main(){ int m,k; cin>>m>>k; int a=(m-1)/(k+1); if((m-a-1)%2==0 && a==0) cout<<"Draw"<<endl; else if((m-a-1)%2==0) cout<<"Lose"<<endl; else cout<<"Win"<<endl; return 0; }