結果

問題 No.264 じゃんけん
ユーザー kumakumaaaaa
提出日時 2020-08-02 17:50:34
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 370 bytes
コンパイル時間 1,630 ms
コンパイル使用メモリ 164,660 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 03:31:30
合計ジャッジ時間 2,235 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define INF 2000000000000000000
#define ll long long
#define pll pair<ll, ll>
using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  ll N, K;
  cin >> N >> K;
  if ((N + 1) % 3 == K) {
    cout << "Won" << "\n";
  }
  else if (N == K) {
    cout << "Drew" << "\n";
  }
  else {
    cout << "Lost" << "\n";
  }
}
0