結果

問題 No.264 じゃんけん
ユーザー かぼちゃ
提出日時 2018-03-28 18:08:37
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 276 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 59,676 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-25 13:14:11
合計ジャッジ時間 1,011 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
    int n,k;
    cin >> n >> k;
    if(n == k)cout << "Drew\n";
    else if((n+1)%3 == k)cout << "Won\n";
    else if((n+2)%3 == k)cout << "Lost\n";
    return 0;
}
0