mirror of
https://github.com/xlucn/PAT.git
synced 2026-11-05 06:37:35 +08:00
37 lines
2.7 KiB
HTML
37 lines
2.7 KiB
HTML
Come on! Let's C
|
||
<div class="ques-view"><p>"Let's C" is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejiang University. Since the idea of the contest is for fun, the award rules are funny as the following:</p>
|
||
<ul>
|
||
<li>0、 The Champion will receive a "Mystery Award" (such as a BIG collection of students' research papers...).</li>
|
||
<li>1、 Those who ranked as a prime number will receive the best award -- the Minions (小黄人)!</li>
|
||
<li>2、 Everyone else will receive chocolates.</li>
|
||
</ul>
|
||
<p>Given the final ranklist and a sequence of contestant ID's, you are supposed to tell the corresponding awards.</p>
|
||
<h3 id="input-specification-">Input Specification:</h3>
|
||
<p>Each input file contains one test case. For each case, the first line gives a positive integer N (<span class="katex"><span class="katex-mathml"><math><mrow><mo>≤</mo><mn>1</mn><msup><mn>0</mn><mn>4</mn></msup></mrow>\le 10^4</math></span><span aria-hidden="true" class="katex-html"><span class="strut" style="height:0.8141079999999999em;"></span><span class="strut bottom" style="height:0.950078em;vertical-align:-0.13597em;"></span><span class="base textstyle uncramped"><span class="mrel">≤</span><span class="mord mathrm">1</span><span class="mord"><span class="mord mathrm">0</span><span class="msupsub"><span class="vlist"><span style="top:-0.363em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;"></span></span><span class="reset-textstyle scriptstyle uncramped mtight"><span class="mord mathrm mtight">4</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;"></span></span></span></span></span></span></span></span></span>), the total number of contestants. Then N lines of the ranklist follow, each in order gives a contestant's ID (a 4-digit number). After the ranklist, there is a positive integer K followed by K query ID's.</p>
|
||
<h3 id="output-specification-">Output Specification:</h3>
|
||
<p>For each query, print in a line <code>ID: award</code> where the award is <code>Mystery Award</code>, or <code>Minion</code>, or <code>Chocolate</code>. If the ID is not in the ranklist, print <code>Are you kidding?</code> instead. If the ID has been checked before, print <code>ID: Checked</code>.</p>
|
||
<h3 id="sample-input-">Sample Input:</h3>
|
||
<pre><code class="lang-in">6
|
||
1111
|
||
6666
|
||
8888
|
||
1234
|
||
5555
|
||
0001
|
||
6
|
||
8888
|
||
0001
|
||
1111
|
||
2222
|
||
8888
|
||
2222
|
||
</code></pre>
|
||
<h3 id="sample-output-">Sample Output:</h3>
|
||
<pre><code class="lang-out">8888: Minion
|
||
0001: Chocolate
|
||
1111: Mystery Award
|
||
2222: Are you kidding?
|
||
8888: Checked
|
||
2222: Are you kidding?
|
||
</code></pre>
|
||
</div> |