結果
問題 | No.1314 N言っちゃダメゲーム (5) |
ユーザー |
|
提出日時 | 2022-12-20 14:02:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 1,416 ms |
コンパイル使用メモリ | 165,372 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 01:49:34 |
合計ジャッジ時間 | 2,462 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 14 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ ll m, k, f, s, a, b; cin >> m >> k; s = m / (k + 1); f = m - 1 - s; a = (f + 1) / 2 + s / 2, b = f / 2 + (s + 1) / 2; if(a > b) cout << "Win" << '\n'; else if(a == b) cout << "Draw" << '\n'; else cout << "Lose" << '\n'; }