結果
問題 | No.264 じゃんけん |
ユーザー |
![]() |
提出日時 | 2020-11-12 09:19:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 438 bytes |
コンパイル時間 | 500 ms |
コンパイル使用メモリ | 66,304 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 19:04:13 |
合計ジャッジ時間 | 961 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
#include <iostream> #include <vector> using namespace std; int main() { pair<int, int> ab; cin >> ab.first >> ab.second; if (ab.first == ab.second) { cout << "Drew" << endl; } if (ab == make_pair(0, 1) || ab == make_pair(1, 2) || ab == make_pair(2, 0)) { cout << "Won" << endl; } if (ab == make_pair(1, 0) || ab == make_pair(2, 1) || ab == make_pair(0, 2)) { cout << "Lost" << endl; } }