結果

問題 No.264 じゃんけん
ユーザー StarMatyanStarMatyan
提出日時 2018-07-18 00:35:26
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 436 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 7,928 KB
最終ジャッジ日時 2023-08-18 11:52:24
合計ジャッジ時間 1,095 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,864 KB
testcase_01 AC 15 ms
7,868 KB
testcase_02 AC 15 ms
7,792 KB
testcase_03 AC 15 ms
7,820 KB
testcase_04 AC 16 ms
7,928 KB
testcase_05 AC 15 ms
7,780 KB
testcase_06 AC 16 ms
7,852 KB
testcase_07 AC 15 ms
7,784 KB
testcase_08 AC 15 ms
7,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#じゃんけん関数
firstdata = input();
secdata = firstdata.split(" ");
mydata = int(secdata[0]);
youdata = int(secdata[1]);
kekka = "";

#判定
if (mydata == 0 and youdata == 1) or (mydata == 1 and youdata == 2) or (mydata == 2 and youdata == 0):
	kekka = "Won";
elif (mydata == 0 and youdata == 0) or (mydata == 1 and youdata == 1) or (mydata == 2 and youdata == 2):
	kekka = "Drew";
else:
	kekka = "Lost";

#出力
print(kekka);
0