結果

問題 No.630 門松グラフ
ユーザー %20%20
提出日時 2018-01-06 01:28:35
言語 Perl
(5.38.2)
結果
AC  
実行時間 206 ms / 1,500 ms
コード長 125 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 52,620 KB
最終ジャッジ日時 2023-08-24 21:22:17
合計ジャッジ時間 4,865 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,080 KB
testcase_01 AC 6 ms
5,060 KB
testcase_02 AC 6 ms
5,140 KB
testcase_03 AC 6 ms
5,148 KB
testcase_04 AC 6 ms
5,076 KB
testcase_05 AC 6 ms
5,232 KB
testcase_06 AC 6 ms
5,084 KB
testcase_07 AC 6 ms
5,168 KB
testcase_08 AC 6 ms
5,052 KB
testcase_09 AC 6 ms
5,080 KB
testcase_10 AC 6 ms
5,184 KB
testcase_11 AC 6 ms
5,152 KB
testcase_12 AC 6 ms
5,116 KB
testcase_13 AC 6 ms
5,084 KB
testcase_14 AC 6 ms
5,144 KB
testcase_15 AC 6 ms
5,160 KB
testcase_16 AC 6 ms
5,360 KB
testcase_17 AC 6 ms
5,160 KB
testcase_18 AC 6 ms
5,248 KB
testcase_19 AC 6 ms
5,056 KB
testcase_20 AC 206 ms
52,620 KB
testcase_21 AC 6 ms
5,104 KB
testcase_22 AC 202 ms
52,620 KB
testcase_23 AC 6 ms
5,144 KB
testcase_24 AC 169 ms
39,848 KB
testcase_25 AC 6 ms
5,256 KB
testcase_26 AC 167 ms
39,972 KB
testcase_27 AC 168 ms
39,776 KB
testcase_28 AC 201 ms
50,704 KB
testcase_29 AC 176 ms
45,180 KB
testcase_30 AC 192 ms
46,788 KB
testcase_31 AC 171 ms
41,456 KB
testcase_32 AC 98 ms
26,284 KB
testcase_33 AC 87 ms
22,648 KB
testcase_34 AC 141 ms
34,124 KB
testcase_35 AC 103 ms
25,628 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@{[1..$N]}\n",map{$_%$a+1,$",$a+1+($_%$a+$_/$a)%$b,$/}0..$M-1)
0