結果
問題 |
No.264 じゃんけん
|
ユーザー |
|
提出日時 | 2025-08-05 15:32:06 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 596 bytes |
コンパイル時間 | 978 ms |
コンパイル使用メモリ | 100,380 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-05 15:32:08 |
合計ジャッジ時間 | 2,222 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
#include <algorithm> #include <iostream> #include <iomanip> #include <climits> #include <string> #include <vector> #include <cmath> #include <set> #include <map> using namespace std; using ll = long long; bool jk(int A, int B) { if ((A == 0 && B == 1) || (A == 1 && B == 2) || (A == 2 && B == 0)) { return true; } else { return false; } } int main(void) { int N, K; cin >> N >> K; if (N == K) { cout << "Drew" << endl; } else { if (jk(N, K)) { cout << "Won" << endl; } else { cout << "Lost" << endl; } } return 0; }