結果

問題 No.630 門松グラフ
ユーザー %20%20
提出日時 2018-01-06 01:26:07
言語 Perl
(5.38.2)
結果
AC  
実行時間 203 ms / 1,500 ms
コード長 127 bytes
コンパイル時間 40 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 52,624 KB
最終ジャッジ日時 2023-08-24 21:22:04
合計ジャッジ時間 4,805 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,160 KB
testcase_01 AC 6 ms
5,076 KB
testcase_02 AC 6 ms
5,112 KB
testcase_03 AC 6 ms
5,288 KB
testcase_04 AC 7 ms
5,116 KB
testcase_05 AC 6 ms
5,288 KB
testcase_06 AC 6 ms
5,152 KB
testcase_07 AC 6 ms
5,196 KB
testcase_08 AC 6 ms
5,080 KB
testcase_09 AC 6 ms
5,160 KB
testcase_10 AC 6 ms
5,292 KB
testcase_11 AC 6 ms
5,228 KB
testcase_12 AC 6 ms
5,120 KB
testcase_13 AC 6 ms
5,112 KB
testcase_14 AC 6 ms
5,172 KB
testcase_15 AC 6 ms
5,320 KB
testcase_16 AC 6 ms
5,196 KB
testcase_17 AC 6 ms
5,156 KB
testcase_18 AC 6 ms
5,172 KB
testcase_19 AC 6 ms
5,268 KB
testcase_20 AC 203 ms
52,624 KB
testcase_21 AC 6 ms
5,052 KB
testcase_22 AC 203 ms
52,456 KB
testcase_23 AC 6 ms
5,172 KB
testcase_24 AC 168 ms
39,996 KB
testcase_25 AC 6 ms
5,076 KB
testcase_26 AC 169 ms
39,748 KB
testcase_27 AC 170 ms
39,752 KB
testcase_28 AC 201 ms
50,664 KB
testcase_29 AC 177 ms
45,136 KB
testcase_30 AC 192 ms
46,904 KB
testcase_31 AC 170 ms
41,360 KB
testcase_32 AC 98 ms
26,148 KB
testcase_33 AC 87 ms
22,508 KB
testcase_34 AC 141 ms
34,160 KB
testcase_35 AC 104 ms
25,652 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible precedence problem on bitwise | operator at Main.pl line 2.
Main.pl syntax OK

ソースコード

diff #

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