結果

問題 No.396 クラス替え
ユーザー tailstails
提出日時 2016-07-15 22:33:18
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 1,000 ms
コード長 90 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 5,388 KB
実行使用メモリ 5,304 KB
最終ジャッジ日時 2023-08-10 23:51:10
合計ジャッジ時間 1,194 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,036 KB
testcase_01 AC 6 ms
5,112 KB
testcase_02 AC 5 ms
5,208 KB
testcase_03 AC 5 ms
5,112 KB
testcase_04 AC 6 ms
5,164 KB
testcase_05 AC 5 ms
5,104 KB
testcase_06 AC 6 ms
5,220 KB
testcase_07 AC 5 ms
5,256 KB
testcase_08 AC 6 ms
5,244 KB
testcase_09 AC 5 ms
5,256 KB
testcase_10 AC 5 ms
5,164 KB
testcase_11 AC 5 ms
5,172 KB
testcase_12 AC 6 ms
5,288 KB
testcase_13 AC 5 ms
5,248 KB
testcase_14 AC 5 ms
5,036 KB
testcase_15 AC 6 ms
5,176 KB
testcase_16 AC 5 ms
5,108 KB
testcase_17 AC 6 ms
5,056 KB
testcase_18 AC 5 ms
5,260 KB
testcase_19 AC 5 ms
5,304 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($n,$m)=glob<>;($x,$y)=glob<>;
$m*=2;
print+($x-$y)%$m==0 || ($x+$y-2)%$m==$m-1 ? YES : NO
0