結果

問題 No.630 門松グラフ
ユーザー %20%20
提出日時 2018-01-06 01:18:15
言語 Perl
(5.38.2)
結果
AC  
実行時間 133 ms / 1,500 ms
コード長 144 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 5,368 KB
実行使用メモリ 18,772 KB
最終ジャッジ日時 2023-08-24 21:21:59
合計ジャッジ時間 4,316 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,144 KB
testcase_01 AC 6 ms
5,196 KB
testcase_02 AC 6 ms
5,284 KB
testcase_03 AC 6 ms
5,200 KB
testcase_04 AC 6 ms
5,156 KB
testcase_05 AC 6 ms
5,084 KB
testcase_06 AC 6 ms
5,156 KB
testcase_07 AC 6 ms
5,212 KB
testcase_08 AC 6 ms
5,152 KB
testcase_09 AC 6 ms
5,200 KB
testcase_10 AC 6 ms
5,104 KB
testcase_11 AC 6 ms
5,076 KB
testcase_12 AC 6 ms
5,124 KB
testcase_13 AC 6 ms
5,140 KB
testcase_14 AC 6 ms
5,200 KB
testcase_15 AC 6 ms
5,200 KB
testcase_16 AC 6 ms
5,232 KB
testcase_17 AC 6 ms
5,176 KB
testcase_18 AC 6 ms
5,156 KB
testcase_19 AC 6 ms
5,148 KB
testcase_20 AC 133 ms
18,772 KB
testcase_21 AC 6 ms
5,052 KB
testcase_22 AC 133 ms
18,684 KB
testcase_23 AC 6 ms
5,276 KB
testcase_24 AC 97 ms
5,128 KB
testcase_25 AC 6 ms
5,268 KB
testcase_26 AC 97 ms
5,304 KB
testcase_27 AC 97 ms
5,128 KB
testcase_28 AC 128 ms
18,156 KB
testcase_29 AC 112 ms
15,616 KB
testcase_30 AC 118 ms
12,980 KB
testcase_31 AC 103 ms
10,752 KB
testcase_32 AC 62 ms
10,456 KB
testcase_33 AC 53 ms
5,820 KB
testcase_34 AC 83 ms
9,052 KB
testcase_35 AC 61 ms
6,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible precedence problem on bitwise | operator at Main.pl line 2.
Main.pl syntax OK

ソースコード

diff #

($N,$M)=glob<>;
exit!print'NO'if$M>($a=$N>>1)*($b=$N-$a)|$M<$N-1;
print"YES\n@{[1..$N]}\n";
print$_%$a+1,$",$a+1+($_%$a+$_/$a)%$b,$/for 0..$M-1
0