結果

問題 No.264 じゃんけん
ユーザー naimonon77naimonon77
提出日時 2016-04-10 15:07:24
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 705 bytes
コンパイル時間 632 ms
コンパイル使用メモリ 63,732 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-19 07:17:18
合計ジャッジ時間 1,513 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES

#include <iostream>
#include <string>
#define REP(i,a,b) for(i=a;i<b;++i)
#define rep(i,n) REP(i,0,n)
#define ll long long
#define ull unsigned ll
typedef long double ld;
#define SQR(X)  ( (X)*(X) )
#define CUBE(X) ( (X)*(X)*(X) )
#define ALL(a) (a).begin(),(a).end()
#define ifnot(a) if(not a)
#define dump(x)  cerr << #x << " = " << (x) << endl
using namespace std;

// #define int ll
bool test = 1;

//.....................

signed main(void)
{
  int i,j;
  int N,K; cin >> N >> K;
  string ans;
  int a = K-N;
  if(a<0) a+=3;
  if(a == 0) ans = "Drew";
  if(a == 1) ans = "Won";
  if(a == 2) ans = "Lost";
  cout << ans << endl;
  return 0;
}
0