#P3321. 生成树Stcnt
生成树Stcnt
题目描述
<w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing> <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery> <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:SpaceForUL /> <w:BalanceSingleByteDoubleByteWidth /> <w:DoNotLeaveBackslashAlone /> <w:ULTrailSpace /> <w:DoNotExpandShiftReturn /> <w:AdjustLineHeightInTable /> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:UseFELayout /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> <![endif]-->
<w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> <![endif]--><!--[if gte mso 10]> <![endif]-->
tab-stops:list 18.0pt" class="MsoNormal">1.<span style="font: 7pt "Times New Roman";"> </span>有 nk 个点,标号为 0; 1,…… nk
2.<span style="font: 7pt "Times New Roman";"> 如果i≡j mod N,则I,j间不存在边</span></p>输入格式
一行两个数N,K
输出格式
一行一个数,表示答案Mod 10^9+7
2 2
4
数据范围与约定
N,K<=10^9