結果
問題 | No.264 じゃんけん |
ユーザー |
![]() |
提出日時 | 2019-03-21 10:33:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 1,597 ms |
コンパイル使用メモリ | 166,992 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-19 01:26:11 |
合計ジャッジ時間 | 1,732 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
#include <bits/stdc++.h> typedef long long ll; const int INF = 1e9; const ll LINF = 1e18; const int MOD = 1e9 + 7; using namespace std; int main() { int n, k; cin >> n >> k; int x = (k - n + 3) % 3; if (x == 0) cout << "Drew" << endl; else if (x == 1) cout << "Won" << endl; else cout << "Lost" << endl; }