結果
問題 | No.264 じゃんけん |
ユーザー |
![]() |
提出日時 | 2017-10-02 23:23:20 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 707 bytes |
コンパイル時間 | 539 ms |
コンパイル使用メモリ | 67,100 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-15 22:43:04 |
合計ジャッジ時間 | 1,070 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> #include <string> #include <sstream> #include <stack> #include <queue> #include <vector> #include <time.h> using namespace std; void judge(int a,int b){ if( a == b){ cout << "Drew"<<endl; return; } if( a == 0 ){ if( b == 1){ cout << "Won"<<endl; return; }else{ cout<< "Lost" << endl; return; } } if( a == 1 ){ if( b == 0){ cout << "Lost"<<endl; return; }else{ cout<< "Won" << endl; return; } } if( a == 2 ){ if( b == 0){ cout << "Won"<<endl; return; }else{ cout<< "Lost" << endl; return; } } } int main() { int N,K; cin >> N >> K; judge(N,K); return 0; }