<!DOCTYPE html>
<!-- saved from url=(0068)https://pintia.cn/problem-sets/1833048925827801088/paper/type/answer -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><meta name="renderer" content="webkit"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" property="og:description" content="千名教师建设,万道高质量题目,百万用户拼题的程序设计实验辅助教学平台"><meta property="og:image" content="//static.pintia.cn/sparkling-daydream/icons/PTA-logo.svg"><meta property="og:image:width" content="240"><meta property="og:image:height" content="150"><link rel="icon" href="https://static.pintia.cn/sparkling-daydream/icons/default/android-chrome.png"><link rel="stylesheet" href="./PTA _ 程序设计类实验辅助教学平台_files/fonts.css"><link rel="stylesheet" href="./PTA _ 程序设计类实验辅助教学平台_files/katex.min.css"><title>PTA | 程序设计类实验辅助教学平台</title><style>#splash {
position: fixed;
left: 0;
top: 0;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
height: 100vh;
width: 100vw;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-moz-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
background: #f0f0f0;
}
.huxi {
-webkit-animation: huxi 2000ms ease-in-out infinite alternate;
-moz-animation: huxi 2000ms ease-in-out infinite alternate;
-o-animation: huxi 2000ms ease-in-out infinite alternate;
animation: huxi 2000ms ease-in-out infinite alternate;
}
.huxi a {
display: none;
}
#splash > svg {
display: block;
max-width: 60%;
}
#splash > p {
font-size: 24px;
color: #666;
margin-top: 16px;
}
@-webkit-keyframes huxi {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-moz-keyframes huxi {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-o-keyframes huxi {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes huxi {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}</style><script>var SERVER_CONFIG = {"EDITION":"MAIN","PTA_URL":"https://pintia.cn","GIT_COMMIT_HASH":"626275c","SUBDOMAIN":""}</script><meta name="git-commit-hash" content="626275c1db7b1951912afcd64b77e64927191f4e"><script defer="defer" src="./PTA _ 程序设计类实验辅助教学平台_files/3rd-party.2d0cef026061a004073e.chunk.js.下载" async=""></script><script defer="defer" src="./PTA _ 程序设计类实验辅助教学平台_files/6443.42f909e2ad0bad349873.js.下载" async=""></script><script defer="defer" src="./PTA _ 程序设计类实验辅助教学平台_files/main.cf2debaf1bbabc22d144.js.下载" async=""></script><style>/**
* 字号和图标大小都跟着父级走,注意一定要继承或设置一个与字号相同大小的行高
*/
.link_J63UA:hover {
text-decoration: none;
}
.link_J63UA .icon__8N9h {
margin-left: 5px;
}
</style><style>.iconWrapper_F8AAa {
padding: 8px;
height: 56px;
width: 56px;
background: #d9534f;
border-radius: 50%;
}
.iconWrapper_F8AAa svg {
width: 40px;
height: 40px;
color: #fff;
fill: currentColor;
}
</style><style>.loadingSpin_lxvuR {
padding: 20px;
text-align: center;
}
</style><style>:root {
--color-primary: hsl(212, 89%, 53%);
--color-secondary: hsl(208, 7%, 46%);
--color-pass: hsl(100, 60%, 47%);
--color-danger: hsl(3, 68%, 53%);
--color-warning: hsl(35, 90%, 50%);
--color-ac: hsl(3, 89%, 53%);
--color-wa: hsl(100, 89%, 45%);
--color-pta: hsl(212, 87%, 30%);
--color-pds: hsl(23, 100%, 57%);
--color-pat: hsl(199, 88%, 57%);
--color-oms: hsl(175, 74%, 37%);
--color-zoj: hsl(227, 59%, 40%);
--color-es: hsl(45, 100%, 50%);
--text-black: hsl(0, 0%, 0%);
--text-dark: hsl(0, 0%, 10%);
--text-normal: hsl(0, 0%, 25%);
--text-light: hsl(0, 0%, 45%);
--text-lightest: hsl(0, 0%, 60%);
--text-white: hsl(0, 0%, 100%);
--text-black-r: hsl(0, 0%, 100%);
--border-all: hsla(0, 0%, 0%, 0.06);
--bg-base: hsl(0, 0%, 100%);
--bg-light: hsl(211, 20%, 97%);
--bg-normal: hsl(211, 20%, 93%);
--bg-site: hsl(204, 24%, 95%);
--bg-base-r: hsl(0, 0%, 25%);
--scroll-thumb: hsl(0, 0%, 85%);
--problem-set-landing-from: hsl(214, 100%, 97%);
--active-brightness: 0.85;
--transition-fast: 0.15s;
--transition-normal: 0.2s;
--transition-slow: 0.4s;
--height-full: 100vh;
--height-header: 3.5rem;
--height-exclude-header: calc(var(--height-full) - var(--height-header));
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-sans: 'Harmony', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
@supports (height: 100dvh) {
:root {
--height-full: 100dvh;
}
}
@supports (font-variant-ligatures: none) {
:root {
--font-mono: 'JBMono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", var(--font-sans);
}
}
.dark {
--color-primary: hsl(212, 100%, 60%);
--color-pta: hsl(212, 100%, 60%);
--text-black: hsl(0, 0%, 100%);
--text-dark: hsl(0, 0%, 90%);
--text-normal: hsl(0, 0%, 75%);
--text-light: hsl(0, 0%, 60%);
--text-lightest: hsl(0, 0%, 50%);
--text-white: hsl(0, 0%, 100%);
--text-black-r: hsl(0, 0%, 0%);
--border-all: hsla(0, 0%, 100%, 0.06);
--bg-base: hsl(0, 0%, 25%);
--bg-light: hsl(0, 0%, 28%);
--bg-normal: hsl(0, 0%, 31%);
--bg-site: hsl(0, 0%, 20%);
--bg-base-r: hsl(0, 0%, 100%);
--scroll-thumb: hsl(0, 0%, 45%);
--problem-set-landing-from: hsl(214, 50%, 10%);
}
*,
*::before,
*::after {
box-sizing: border-box;
font-variant-ligatures: none!important;
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-ms-overflow-style: scrollbar;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
display: block;
}
body {
margin: 0;
font-family: var(--font-sans);
font-size: 1rem;
font-weight: 400;
line-height: 1.5rem;
color: var(--text-normal);
text-align: left;
background-color: var(--bg-base);
}
[tabindex="-1"]:focus {
outline: 0 !important;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
margin-bottom: 0.5rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-original-title] {
text-decoration: underline;
text-decoration: underline dotted;
cursor: help;
border-bottom: 0;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: 0.5rem;
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
dfn {
font-style: italic;
}
b,
strong {
font-weight: 800;
}
small {
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: basel