結果
| 問題 |
No.1314 N言っちゃダメゲーム (5)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-11 00:33:34 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 179 bytes |
| コンパイル時間 | 479 ms |
| コンパイル使用メモリ | 65,236 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-19 20:58:28 |
| 合計ジャッジ時間 | 1,375 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 WA * 5 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main()
| ^~~~
ソースコード
#include<iostream>
using namespace std;
int M,K;
main()
{
cin>>M>>K;
int y=M/(K+1);
int x=M-1-y;
long z=x%2?x/2+1+y:x/2;
cout<<(2*z>M-1?"Win":2*z<M-1?"Lose":"Draw")<<endl;
}