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