結果

問題 No.264 じゃんけん
ユーザー soupesuteaka
提出日時 2016-03-02 17:58:40
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 28 ms / 5,000 ms
コード長 455 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-24 13:30:47
合計ジャッジ時間 832 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: UTF-8

import sys
import re
import itertools
from collections import deque

### defs ###
def win(n,k):
	if(N==0):
		if(K==1):
			return 1
		elif(K==2):
			return -1
	elif(N==1):
		if(K==2):
			return 1
		elif(K==0):
			return -1
	else:
		if(K==0):
			return 1
		elif(K==1):
			return -1
	return 0

### main ###
N, K = map(int, sys.stdin.readline().split())
res=win(N,K)
if(res==1):
	print("Won")
elif(res==-1):
	print("Lost")
else:
	print("Drew")
0