結果

問題 No.264 じゃんけん
ユーザー ARCANA
提出日時 2023-06-27 23:01:41
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 368 bytes
コンパイル時間 598 ms
コンパイル使用メモリ 67,356 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-04 15:28:43
合計ジャッジ時間 1,126 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>

using namespace std;

int main(){
  // input
  int N,K;
  cin >> N >> K;
  string ans;
  if((N==0 and K == 1) or (N==1 and K==2)or (N==2 and K==0)){
    ans = "Won";
  } 
  else if((N==0 and K == 2) or (N==1 and K==0)or (N==2 and K==1)){
    ans = "Lost";
  } else {
    ans = "Drew";
  }



  cout << ans << endl;
  // output 
}
0