結果
| 問題 |
No.1314 N言っちゃダメゲーム (5)
|
| コンテスト | |
| ユーザー |
tko919
|
| 提出日時 | 2020-12-21 01:04:09 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 676 bytes |
| コンパイル時間 | 1,488 ms |
| コンパイル使用メモリ | 166,896 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-21 12:37:33 |
| 合計ジャッジ時間 | 2,414 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
//template
#define rep(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define ALL(v) (v).begin(),(v).end()
typedef long long int ll;
const int inf = 0x3fffffff; const ll INF = 0x1fffffffffffffff; const double eps=1e-12;
template<typename T>inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<typename T>inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
//end
int main(){
int m,k; cin>>m>>k;
int L=(m-1)/(k+1);
int W=m-L-1;
int a=(W+1)/2,b=W/2;
if(a==b)b+=L;
else a+=L;
if(a>b)puts("Win");
else if(a==b)puts("Draw");
else puts("Lose");
return 0;
}
tko919