結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
fushigu
|
| 提出日時 | 2019-05-17 09:47:11 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 472 bytes |
| コンパイル時間 | 480 ms |
| コンパイル使用メモリ | 63,224 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-17 05:49:53 |
| 合計ジャッジ時間 | 1,036 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 1 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
using ll = long long;
int main()
{
int N, K;
cin >> N >> K;
int ans;
if (N == K) ans = 2;
else if (N == 2 && K == 0) ans = 0;
else if (N < K) ans = 0;
else ans = 1;
switch (ans)
{
case 0:
cout << "Won" << endl;
break;
case 1:
cout << "Lost" << endl;
break;
case 2:
cout << "Drew" << endl;
break;
default:
break;
}
return 0;
}
fushigu