mirror of
https://github.com/xlucn/PAT.git
synced 2026-11-04 00:38:13 +08:00
22 lines
1.7 KiB
HTML
22 lines
1.7 KiB
HTML
Wifi密码
|
||
<div class="ques-view"><p>下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用 wifi,又怕耽误亲们的学习,现将 wifi 密码设置为下列数学题答案:A-1;B-2;C-3;D-4;请同学们自己作答,每两日一换。谢谢合作!!~”—— 老师们为了促进学生学习也是拼了…… 本题就要求你写程序把一系列题目的答案按照卷子上给出的对应关系翻译成 wifi 的密码。这里简单假设每道选择题都有 4 个选项,有且只有 1 个正确答案。</p>
|
||
<p><img alt="wifi.jpg" src="https://images.ptausercontent.com/7e56be3f-caba-45f1-b9cb-38a96d44de76.jpg"/></p>
|
||
<h3 id="-">输入格式:</h3>
|
||
<p>输入第一行给出一个正整数 N(<span class="katex"><span class="katex-mathml"><math><mrow><mo>≤</mo></mrow>\le</math></span><span aria-hidden="true" class="katex-html"><span class="strut" style="height:0.63597em;"></span><span class="strut bottom" style="height:0.7719400000000001em;vertical-align:-0.13597em;"></span><span class="base textstyle uncramped"><span class="mrel">≤</span></span></span></span> 100),随后 N 行,每行按照 <code>编号-答案</code> 的格式给出一道题的 4 个选项,<code>T</code> 表示正确选项,<code>F</code> 表示错误选项。选项间用空格分隔。</p>
|
||
<h3 id="-">输出格式:</h3>
|
||
<p>在一行中输出 wifi 密码。</p>
|
||
<h3 id="-">输入样例:</h3>
|
||
<pre><code class="lang-in">8
|
||
A-T B-F C-F D-F
|
||
C-T B-F A-F D-F
|
||
A-F D-F C-F B-T
|
||
B-T A-F C-F D-F
|
||
B-F D-T A-F C-F
|
||
A-T C-F B-F D-F
|
||
D-T B-F C-F A-F
|
||
C-T A-F B-F D-F
|
||
</code></pre>
|
||
<h3 id="-">输出样例:</h3>
|
||
<pre><code class="lang-out">13224143
|
||
</code></pre>
|
||
</div> |