結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-04-25 00:44:00 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 420 bytes |
| コンパイル時間 | 632 ms |
| コンパイル使用メモリ | 66,956 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 20:28:46 |
| 合計ジャッジ時間 | 1,047 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include <iostream>
#include<math.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main()
{
int n, k;
cin >> n >> k;
if (n == k) cout << "Drew" << endl;
else if (n == 2 && k == 0) cout << "Won" << endl;
else if (n == 0 && k == 2) cout << "Lost" << endl;
else if (n < k) cout << "Won" << endl;
else cout << "Lost" << endl;
return 0;
}