結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-13 10:01:36 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 653 bytes |
| コンパイル時間 | 1,808 ms |
| コンパイル使用メモリ | 194,468 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-13 10:01:38 |
| 合計ジャッジ時間 | 2,700 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int me, him;
cin >> me >> him;
if (me == him) {
cout << "Drew";
}
else {
if (me == 0 && him == 1) {
cout << "Won";
}
else if (me == 1 && him == 0) {
cout << "Lost";
}
if (me == 1 && him == 2) {
cout << "Won";
}
else if (me == 2 && him == 1) {
cout << "Lost";
}
if (me == 0 && him == 2) {
cout << "Lost";
}
else if (me == 2 && him == 0) {
cout << "Won";
}
}
}