結果

問題 No.264 じゃんけん
コンテスト
ユーザー kurante5
提出日時 2021-03-14 19:16:14
言語 C++14
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 657 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 282 ms
コンパイル使用メモリ 72,208 KB
実行使用メモリ 9,824 KB
最終ジャッジ日時 2026-09-19 14:55:30
合計ジャッジ時間 1,581 ms
ジャッジサーバーID
(参考情報)
judge5_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <string>

using namespace std;

int main() {
    int N, K;
    cin >> N >> K;
    if (N == K) {
        cout << "Drew" << endl;
    }
    else if (N == 0) {
        if (K == 1){
            cout << "Win" << endl;
        }
        else if (K == 2) {
            cout << "Lose" << endl;
        }
    }
    else if (N == 1) {
        if(K == 0) {
            cout << "Lose" << endl;
        }
        else if (K == 2) {
            cout << "Win" << endl;
        }
    }
    else {
        if (K == 0) {
            cout << "Win" << endl;
        }
        else if (K == 1) {
            cout << "Lose" << endl;
        }
    }
}
0