yukicoder-234
从 Trac 迁移的文章
这是从旧校内 Wiki 迁移的文章,可能存在一些样式问题,您可以向 memset0 反馈。
原文章内容如下:
{{{
#!html
<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});</script>
<script type="text/javascript" async src="http://10.71.10.90/sfiction/tool/MathJax/MathJax-master/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<style>
.input, pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
color: #333;
word-break: break-all;
word-wrap: break-word;
background-color: #f5f5f5;
border: 1px solid #ccc;
border-radius: 4px;
}
</style>
}}}
== [https://yukicoder.me/problems/no/234 No.234 めぐるはめぐる (4)] ==
=== Description ===
{{{
#!html
<p>考虑如下图一样的$N$阶三角形,求出图中简单多边形的数目。<br>
<img src="http://10.71.10.90/zimpha/images/yukicoder-234.png"/>
</p>
}}}
=== Input ===
{{{
#!html
<p class="input">
$N$
</p>
<p>
$1 \le N \le 12$。
</p>
}}}
=== Output ===
{{{
#!html
<p>输出方案数。</p>
}}}
=== Sample ===
==== Sample 1 ====
输入
{{{
#!html
<pre>
1
</pre>
}}}
输出
{{{
#!html
<pre>
1
</pre>
}}}
==== Sample 2 ====
输入
{{{
#!html
<pre>
2
</pre>
}}}
输出
{{{
#!html
<pre>
11
</pre>
}}}
==== Sample 3 ====
输入
{{{
#!html
<pre>
5
</pre>
}}}
输出
{{{
#!html
<pre>
128967
</pre>
}}}
No.234 めぐるはめぐる (4)
Description
考虑如下图一样的$N$阶三角形,求出图中简单多边形的数目。
Input
$N$
$1 \le N \le 12$。
Output
输出方案数。
Sample
Sample 1
输入
1
输出
1
Sample 2
输入
2
输出
11
Sample 3
输入
5
输出
128967