結果

問題 No.264 じゃんけん
ユーザー gon_027
提出日時 2018-09-12 20:49:16
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 529 bytes
コンパイル時間 485 ms
コンパイル使用メモリ 53,464 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 15:55:51
合計ジャッジ時間 925 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

#define p(x) cout << x << endl;
#define el cout << endl;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    int n, k;
    cin >> n >> k;

    if((n == 0 && k == 0) || (n == 1 && k == 1) || (n == 2 && k == 2)){
        printf("Drew\n");
    } else if((n == 0 && k == 1) || (n == 1 && k == 2) || (n == 2 && k == 0)){
        printf("Won\n");
    } else if ((n == 0 && k == 2) || (n == 1 && k == 0) || (n == 2 && k == 1)){
        printf("Lost\n");
    }
}
0