結果

問題 No.264 じゃんけん
ユーザー KKT89
提出日時 2019-12-17 02:16:01
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 328 bytes
コンパイル時間 1,427 ms
コンパイル使用メモリ 77,972 KB
最終ジャッジ日時 2025-01-08 11:50:23
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <queue>
using namespace std;
typedef long long int ll;

int a[]={1,2,0};

int main(){
	 int n,k; cin >> n >> k;
	 if(n==k){
	 	cout << "Drew" << endl;
	 }
	 else if(a[n]==k){
	 	cout << "Won" << endl;
	 }
	 else{
	 	cout << "Lost" << endl;
	 }
}
0