結果

問題 No.264 じゃんけん
ユーザー re0n3
提出日時 2021-01-28 17:08:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 341 bytes
コンパイル時間 583 ms
コンパイル使用メモリ 62,932 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-26 01:27:58
合計ジャッジ時間 1,178 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(void){
    int N, K;
    scanf("%d %d", &N, &K);
    if(N == 0 && K == 1 || N == 1 && K == 2 || N == 2 && K == 0){
        printf("Won");
    }else if(N == 0 && K == 2 || N == 1 && K == 0 || N == 2 && K == 1){
        printf("Lost");
    }else{
        printf("Drew");
    }
    return 0;
}
0