結果
問題 | No.264 じゃんけん |
ユーザー |
|
提出日時 | 2018-02-15 20:55:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 272 bytes |
コンパイル時間 | 1,981 ms |
コンパイル使用メモリ | 166,024 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 07:37:11 |
合計ジャッジ時間 | 2,778 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
//{{{ #include <bits/stdc++.h> using namespace std; //}}} int main(void){ int N, K; cin >> N >> K; string result; if((N + 1) % 3 == K) result = "Won"; if((N + 2) % 3 == K) result = "Lost"; if((N + 3) % 3 == K) result = "Drew"; cout << result << endl; return 0; }