yukicoder-7

从 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/7 No.7 プライムナンバーゲーム] ==

=== Description ===

{{{
#!html
<p>一开始有个正整数$N$,每次可以选择一个$[2, N]$内的质数$x$,把$N$变成$N-x$。不能操作的输,问先手能否必胜。</p>
}}}

=== Input ===

{{{
#!html
<p class="input">
$N$<br>
</p>

<p>$2 \le N \le 10000$</p>
}}}

=== Output ===

{{{
#!html
<p>如果先手必胜输出"Win",否则输出"Lose"。</p>
}}}

=== Sample ===

==== Sample 1 ====
输入
{{{
#!html
<pre>
5
</pre>
}}}
输出
{{{
#!html
<pre>
Win
</pre>
}}}

==== Sample 2 ====
输入
{{{
#!html
<pre>
12
</pre>
}}}
输出
{{{
#!html
<pre>
Lose
</pre>
}}}

No.7 プライムナンバーゲーム

Description

一开始有个正整数$N$,每次可以选择一个$[2, N]$内的质数$x$,把$N$变成$N-x$。不能操作的输,问先手能否必胜。

Input

$N$

$2 \le N \le 10000$

Output

如果先手必胜输出"Win",否则输出"Lose"。

Sample

Sample 1

输入

5

输出

Win
Sample 2

输入

12

输出

Lose