結果

問題 No.264 じゃんけん
ユーザー 檜垣祐一郎檜垣祐一郎
提出日時 2020-12-13 00:59:04
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 537 ms
コンパイル使用メモリ 63,320 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 02:53:17
合計ジャッジ時間 1,244 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
  int n;
  int k;
  
  cin >> n >> k;
  if (n == k) cout << "Draw" << endl;
  else if ((n - k == -1) || (n - k == 2)) cout << "Won" << endl;
  else cout << "Lost" << endl;
  return 0;
}
0