結果

問題 No.264 じゃんけん
ユーザー togaerrortogaerror
提出日時 2015-08-10 01:27:30
言語 Perl
(5.38.2)
結果
AC  
実行時間 5 ms / 5,000 ms
コード長 190 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 5,084 KB
最終ジャッジ日時 2023-09-25 07:47:34
合計ジャッジ時間 1,239 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
4,844 KB
testcase_01 AC 5 ms
4,824 KB
testcase_02 AC 5 ms
4,936 KB
testcase_03 AC 4 ms
4,816 KB
testcase_04 AC 5 ms
4,816 KB
testcase_05 AC 5 ms
5,084 KB
testcase_06 AC 5 ms
4,820 KB
testcase_07 AC 5 ms
4,936 KB
testcase_08 AC 5 ms
4,816 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;

my ($n, $k) = split / /, <>;

if($n == $k) {
	print "Drew\n";
} elsif (($n + 1 == $k)||(($n == 2)&&($k == 0))) {
	print "Won\n";
} else {
	print "Lost\n";
}

exit;
0