結果

問題 No.166 マス埋めゲーム
ユーザー togaerrortogaerror
提出日時 2015-03-25 14:12:34
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 509 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 5,148 KB
最終ジャッジ日時 2023-09-11 10:06:44
合計ジャッジ時間 1,794 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
4,908 KB
testcase_01 AC 5 ms
4,988 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 5 ms
5,088 KB
testcase_05 AC 4 ms
4,868 KB
testcase_06 AC 5 ms
4,848 KB
testcase_07 WA -
testcase_08 AC 5 ms
5,084 KB
testcase_09 AC 5 ms
4,988 KB
testcase_10 AC 5 ms
4,932 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 5 ms
5,060 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 5 ms
4,872 KB
testcase_20 WA -
testcase_21 AC 4 ms
4,816 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

#!/usr/bin/perl

use warnings;
use strict;

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

$h = $h * $w;

if(($h % $k == 0)and($k != 1)) {
	print "YES\n";
} else {
	print "NO\n";
}

exit;
0