結果

問題 No.264 じゃんけん
ユーザー ui_mtc
提出日時 2020-03-20 21:49:47
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 436 bytes
コンパイル時間 1,767 ms
コンパイル使用メモリ 165,332 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-15 05:23:51
合計ジャッジ時間 2,035 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define int long long
using namespace std;
using Graph = vector<vector<int>>;

signed main(){
  int A, B;
  cin >> A >> B;
  bool fg = 0;
  if( A == B ){
    cout << "Drew" << endl;
    return 0;
  }else if( A == 0 ){
    if( B == 1 ) fg = 1;
  }else if( A == 1 ){
    if( B == 2 ) fg = 1;
  }else if( A == 2 ){
    if( B == 0 ) fg = 1;
  }
  
  if( fg ) cout << "Won" << endl;
  else cout << "Lost" << endl;
}
0