5 条题解
-
0
#include<bits/stdc++.h> using namespace std; int main(){ int n;//n代表行数 cin>>n; int i,j,k; for(int i=1;i<=n;i++){//循环行数 for(int j = 1;j <= 3;j++){//循环3个三个三角形 for(int k = 1;k <= n-i;k++){ cout<<" "; } for(int k = 1;k <= 2*i-1;k++){ cout<<"*"; } for(int k = 1;k <= n-i;k++){ cout<<" "; } } cout<<endl; } return 0; }
-
-2
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int i,j,k; for(int i=1;i<=n;i++){ for(int j = 1;j <= 3;j++){ for(int k = 1;k <= n-i;k++){ cout<<" "; } for(int k = 1;k <= 2i-1;k++){ cout<<""; } for(int k = 1;k <= n-i;k++){ cout<<" "; } } cout<<endl; } return 0; }
-
-5
题解 - 【入门】打印星号三角行 - Hydro body { --font-family: "Microsoft Yahei", "Open Sans", "Seravek", "Segoe UI", "Verdana", "PingFang SC", "Hiragino Sans GB", "Lantinghei SC", "Microsoft Yahei", "WenQuanYi Micro Hei", "sans"; --code-font-family: "Ubuntu Mono", "monaco", "Source Code Pro", "Consolas", "Lucida Console", "monospace"; --font-ligatures: none !important; } #panel { display: flex; flex-direction: column; }<!DOCTYPE html> <html data-page="problem_solution" data-layout="basic" class="layout--basic page--problem_solution theme--dark nojs" lang="zh" data-app="Hydro"> <head> <meta charset="UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="chrome=1"/> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png"> <link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="/android-chrome-192x192.png" sizes="192x192"> <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96"> <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"> <link rel="canonical" href="/p/47/solution"> <meta name="theme-color" content="#56758f"> <meta property="og:site_name" content="Hydro" /> <meta property="og:title" content="题解 - 【入门】打印星号三角行 - Hydro" /> <meta property="og:url" content="/p/47/solution" /> <meta property="og:image" content="/favicon-96x96.png" /> <title>题解 - 【入门】打印星号三角行 - Hydro</title> <style> body { --font-family: "Microsoft Yahei", "Open Sans", "Seravek", "Segoe UI", "Verdana", "PingFang SC", "Hiragino Sans GB", "Lantinghei SC", "Microsoft Yahei", "WenQuanYi Micro Hei", "sans"; --code-font-family: "Ubuntu Mono", "monaco", "Source Code Pro", "Consolas", "Lucida Console", "monospace"; --font-ligatures: none !important; } #panel { display: flex; flex-direction: column; } </style> <link rel="stylesheet" media="all" href="/theme-4.47.2.css"> <script> var _htmlNode = document.documentElement; _htmlNode.className = _htmlNode.className.replace(' nojs', ' hasjs'); try { import('data:text/javascript,');Object.fromEntries([]);window.matchMedia('all').addEventListener('change',()=>{}); } catch(e) { const s = document.createElement('script'); s.async = false; s.src = "/polyfill-4.47.2.js"; document.head.appendChild(s); } </script> </head> <body> <nav class="nav slideout-menu" id="menu"> <div class="row"><div class="columns clearfix"> <ol class="nav__list nav__list--main clearfix"> <li class="nav__list-item"> <a href="/"><img class="nav__logo" src="/components/navigation/nav-logo-small_dark.png"></a> </li> <li class="nav__list-item"> <a href="/" class="nav__item"> 首页 </a> </li> <li class="nav__list-item"> <a href="/p" class="nav__item nav--active"> 题库 </a> </li> <li class="nav__list-item"> <a href="/training" class="nav__item"> 训练 </a> </li> <li class="nav__list-item"> <a href="/contest" class="nav__item"> 比赛 </a> </li> <li class="nav__list-item"> <a href="/homework" class="nav__item"> 作业 </a> </li> <li class="nav__list-item"> <a href="/record?uidOrName=172" class="nav__item"> 评测记录 </a> </li> <li class="nav__list-item"> <a href="/ranking" class="nav__item"> 排名 </a> </li> </ol> <ol class="nav__list nav__list--secondary clearfix"> <li class="nav__list-item" data-dropdown-pos="bottom right" data-dropdown-custom-class="nav__dropdown" data-dropdown-target="#menu-nav-user" data-dropdown-disabledconstrainToWindow data-dropdown-trigger-desktop-only> <a href="/user/172" class="nav__item">tyz <span class="icon icon-expand_more nojs--hide"></span></a> <ol class="dropdown-target menu" id="menu-nav-user"> <li class="menu__item"> <a href="/user/172" class="menu__link"> <span class="icon icon-account--circle"></span> 我的资料 </a> </li> <li class="menu__item"> <a href="/home/messages" class="menu__link"> <span class="icon icon-comment--multiple"></span> 站内消息 </a> </li> <li class="menu__seperator"></li> <li class="menu__item"> <a href="/home/settings/domain" class="menu__link"> <span class="icon icon-web"></span> @ Hydro </a> </li> <li class="menu__seperator"></li> <li class="menu__item"> <a href="/home/settings/account" class="menu__link"> <span class="icon icon-wrench"></span> 账户设置 </a> </li> <li class="menu__item"> <a href="/home/settings/preference" class="menu__link"> <span class="icon icon-sliders"></span> 偏好设置 </a> </li> <li class="menu__item"> <a href="/home/security" class="menu__link"> <span class="icon icon-security"></span> 安全设置 </a> </li> <li class="menu__seperator"></li> <li class="menu__item"> <a href="/home/domain" class="menu__link"> <span class="icon icon-web"></span> 我的域 </a> </li> <li class="menu__item"> <a href="/file" class="menu__link"> <span class="icon icon-file"></span> 我的文件 </a> </li> <li class="menu__item"> <a href="/blog/172" class="menu__link"> <span class="icon icon-book"></span> 博客 </a> </li> <li class="menu__seperator"></li> <li class="menu__item"> <a href="/logout" class="menu__link" name="nav_logout"> <span class="icon icon-logout"></span> 登出 </a> </li> </ol> </li> </ol> </div></div> </nav> <nav class="nav--shadow"></nav> <div class="slideout-panel" id="panel"> <div class="slideout-overlay"></div> <div class="header--mobile"> <div class="row"><div class="columns clearfix"> <div class="float-left"> <a class="header--mobile__domain" href="/" target="_self"> <img src="/components/navigation/nav-logo-small_dark.png"> </a> </div> <div class="float-right"> <button type="button" class="header__hamburger"> <div class="hamburger hamburger--spin"> <span class="hamburger-box"> <span class="hamburger-inner"></span> </span> </div> </button> </div> </div></div> </div> <div class="main"> <div class="row"> <div class="medium-9 columns"> <div class="section"> <div class="section__header"> <h1 class="section__title">2 条题解</h1> </div> <div class="section__body"> <ul class="dczcomments__list view--solution"> <li class="dczcomments__item"> <div class="media"> <div class="media__left top"> <div class="vote vote--discussion"> <div class="vote-number">0</div> </div> </div> <div class="media__body top"> <div class="clearfix"> <div class="supplementary dczcomments__supplementary"> <span class="user-profile-link"> <img class="small user-profile-avatar v-center" loading="lazy" src="//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&s=64" width="20" height="20"> <a class="user-profile-name" href="/user/172"> 6 (tyz) </a> <a class="user-profile-badge v-center badge--lv5" href="/user/172" data-tooltip="LV 5: Top 30%">LV 5</a> </span> </div> </div> <div class="hasjs--hide"> <form method="post" class="dczcomments__box" name="dczcomments__box__form" data-hotkey="ctrl+enter:submit,esc:vjCommentBoxCancel"> <div> <textarea name="content" class="textbox" data-markdown required></textarea> </div> <div> <input type="submit" class="rounded primary button dczcomments__box__submit" value="分享 (Ctrl+Enter)" data-value-reply="回复 (Ctrl+Enter)" data-value-comment="分享 (Ctrl+Enter)" data-value-comment-update="更新 (Ctrl+Enter)" data-value-reply-update="更新 (Ctrl+Enter)"> <input type="button" class="rounded button nojs--hide" name="dczcomments__box__cancel" value="取消 (Esc)"> </div> <input type="hidden" name="operation" value="submit"> </form> </div> <div class="nojs--hide"> <textarea class="textbox" name="dczcomments__dummy-box" readonly data-form="{"operation":"submit"}" placeholder="发表您的题解"></textarea> </div> <div class="commentbox-placeholder"></div> <ul style="display:none"> <li class="dczcomments__reply commentbox-container"> <div class="media"> <div class="media__body top"> <div class="clearfix"> <div class="supplementary dczcomments__supplementary"> <span class="user-profile-link"> <img class="small user-profile-avatar v-center" loading="lazy" src="//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&s=64" width="20" height="20"> <a class="user-profile-name" href="/user/172"> 6 (tyz) </a> </span> </div> </div> <div class="commentbox-placeholder"></div> </div> </div> </li> </ul> </div> </div> </li> <li class="dczcomments__item"> <div class="media"> <div class="media__left top"> <div class="vote vote--discussion"> <div class="vote-number rotator--enabled">0</div> <form method="post" class="vote-op clearfix"> <input type="hidden" name="psid" value="637245186248fb90a93bf64e"> <button type="submit" name="operation" value="upvote" class="vote-button upvote" data-tooltip="好评" data-tooltip-pos="bottom center" aria-label="好评"><span class="icon icon-vote--up"></span></button> <button type="submit" name="operation" value="downvote" class="vote-button downvote" data-tooltip="差评" data-tooltip-pos="bottom center" aria-label="差评"><span class="icon icon-vote--down"></span></button> </form> </div> </div> <div class="media__body top"> <div class="clearfix"> <div class="supplementary dczcomments__supplementary"> <span class="user-profile-link"> <img class="small user-profile-avatar v-center" loading="lazy" src="//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&s=64" width="20" height="20"> <a class="user-profile-name" href="/user/192"> 李松辰 (202522249) </a> <a class="user-profile-badge v-center badge--lv8" href="/user/192" data-tooltip="LV 8: Top 5%">LV 8</a> </span> @ <span class="time relative" data-timestamp="1668433176">2022-11-14 13:39:36</span> </div> <div class="dczcomments__operations nojs--hide"> <a href="javascript:;" data-tooltip="复制链接" data-copylink="/p/47/solution/637245186248fb90a93bf64e"> <span class="icon icon-link"></span> </a> <a href="javascript:;" data-tooltip="回复" data-op="reply" data-type="comment" data-form="{"operation":"reply","psid":"637245186248fb90a93bf64e"}" ><span class="icon icon-reply"></span></a> </div> </div> <div class="typo" data-emoji-enabled data-raw-url="/p/47/solution/637245186248fb90a93bf64e/raw"> <p>#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int i,j,k; for(int i=1;i<=n;i++){ for(int j = 1;j <= 3;j++){ for(int k = 1;k <= n-i;k++){ cout<<" "; } for(int k = 1;k <= 2<em>i-1;k++){ cout<<"</em>"; } for(int k = 1;k <= n-i;k++){ cout<<" "; } } cout<<endl; } return 0; }</p> </div> <div class="commentbox-edit-target"></div> <ul class="dczcomments__replies commentbox-reply-target"></ul> </div> </div> </li> <li class="dczcomments__item"> <div class="media"> <div class="media__left top"> <div class="vote vote--discussion"> <div class="vote-number rotator--enabled">0</div> <form method="post" class="vote-op clearfix"> <input type="hidden" name="psid" value="637244d66248fb90a93bf64c"> <button type="submit" name="operation" value="upvote" class="vote-button upvote" data-tooltip="好评" data-tooltip-pos="bottom center" aria-label="好评"><span class="icon icon-vote--up"></span></button> <button type="submit" name="operation" value="downvote" class="vote-button downvote" data-tooltip="差评" data-tooltip-pos="bottom center" aria-label="差评"><span class="icon icon-vote--down"></span></button> </form> </div> </div> <div class="media__body top"> <div class="clearfix"> <div class="supplementary dczcomments__supplementary"> <span class="user-profile-link"> <img class="small user-profile-avatar v-center" loading="lazy" src="//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&s=64" width="20" height="20"> <a class="user-profile-name" href="/user/192"> 李松辰 (202522249) </a> <a class="user-profile-badge v-center badge--lv8" href="/user/192" data-tooltip="LV 8: Top 5%">LV 8</a> </span> @ <span class="time relative" data-timestamp="1668433110">2022-11-14 13:38:30</span> </div> <div class="dczcomments__operations nojs--hide"> <a href="javascript:;" data-tooltip="复制链接" data-copylink="/p/47/solution/637244d66248fb90a93bf64c"> <span class="icon icon-link"></span> </a> <a href="javascript:;" data-tooltip="回复" data-op="reply" data-type="comment" data-form="{"operation":"reply","psid":"637244d66248fb90a93bf64c"}" ><span class="icon icon-reply"></span></a> </div> </div> <div class="typo" data-emoji-enabled data-raw-url="/p/47/solution/637244d66248fb90a93bf64c/raw"> <pre><code>Testdata configuration incorrect. 没有找到测试数据。 </code></pre> </div> <div class="commentbox-edit-target"></div> <ul class="dczcomments__replies commentbox-reply-target"> <li class="dczcomments__reply"> <div class="media"> <div class="media__body top"> <div class="clearfix"> <div class="supplementary dczcomments__supplementary"> <span class="user-profile-link"> <img class="small user-profile-avatar v-center" loading="lazy" src="//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&s=64" width="20" height="20"> <a class="user-profile-name" href="/user/192"> 李松辰 (202522249) </a> </span> @ <span class="time relative" data-timestamp="1668433120">2022-11-14 13:38:40</span> </div> <div class="dczcomments__operations nojs--hide"> <a href="javascript:;" data-tooltip="回复" data-op="reply" data-type="reply"><span class="icon icon-reply"></span></a> </div> </div> <div class="typo" data-emoji-enabled data-raw-url="/p/47/solution/637244d66248fb90a93bf64c/637244e06248fb90a93bf64d/raw"> <p>???</p> </div> <div class="commentbox-edit-target"></div> </div> </div> </li></ul> </div> </div> </li></ul> <ul class="pager pager-bottom"><li> <span class="pager__item current">1</span> </li></ul> </div> </div> </div> <div class="medium-3 columns"> <div class="section side section--problem-sidebar"> <div class="section__header"> <h1 class="section__title">【入门】打印星号三角行</h1> </div> <div> <ol class="menu"> <li class="menu__item"><a class="menu__link" href="/p/47"> <span class="icon icon-flag"></span> 查看题目 </a></li> <li class="menu__item scratchpad--hide"><a class="menu__link" href="/p/47/submit"> <span class="icon icon-send"></span> 递交 </a></li> <li class="menu__seperator"></li> <li class="menu__item"><a class="menu__link active" href="/p/47/solution"> <span class="icon icon-comment--text"></span> 题解 </a></li> <li class="menu__item"><a class="menu__link" href="/p/47/files"> <span class="icon icon-file"></span> 文件 </a></li> </ol> </div> </div> <div class="section side"> <div class="section__header"> <h1 class="section__title">信息</h1> </div> <div class="section__body typo" data-fragment-id="problem-sidebar-information"> <dl class="large horizontal"> <dt>ID</dt> <dd>47</dd> <dt>时间</dt> <dd>1000ms</dd> <dt>内存</dt> <dd>16MiB</dd> <dt>难度</dt> <dd>10</dd> <dt>标签</dt> <dd> <ul class="problem__tags"> <li class="problem__tag"><a class="problem__tag-link" href="/p?q=category%3A%E5%B5%8C%E5%A5%97%E5%BE%AA%E7%8E%AF">嵌套循环</a></li></ul> </dd> <dt>递交数</dt> <dd><a href="/record?pid=47">20</a></dd> <dt>已通过</dt> <dd>0</dd> <dt>上传者</dt> <dd><span class="user-profile-link"> <img class="small user-profile-avatar v-center" loading="lazy" src="//q1.qlogo.cn/g?b=qq&nk=14112085&s=160" width="20" height="20"> <a class="user-profile-name" href="/user/1"> mzh </a> </span> </dd> </dl> </div></div> </div> </div> </div> <div class="footer"> <div class="row"><div class="columns"> <div class="row footer__links"> <div class="medium-3 large-2 columns footer__category expandable"> <h1> 状态 <span class="expand-icon"> <span class="icon icon-expand_more"></span> </span> </h1> <div class="footer__category__expander"><ul class="footer__category__list"> <li class="footer__category__item"><a href="/record">评测队列</a></li> <li class="footer__category__item"><a href="/status">服务状态</a></li> </ul></div> </div> <div class="medium-3 large-2 columns footer__category expandable"> <h1> 开发 <span class="expand-icon"> <span class="icon icon-expand_more"></span> </span> </h1> <div class="footer__category__expander"><ul class="footer__category__list"> <li class="footer__category__item"><a href="https://github.com/hydro-dev/Hydro" target="_blank">开源</a></li> <li class="footer__category__item"><a href="/api">API</a></li> </ul></div> </div> <div class="medium-3 large-2 columns footer__category expandable end"> <h1> 支持 <span class="expand-icon"> <span class="icon icon-expand_more"></span> </span> </h1> <div class="footer__category__expander"><ul class="footer__category__list"> <li class="footer__category__item"><a href="/wiki/help">帮助</a></li> <!--<li class="footer__category__item"><a href="#">博客</a></li>--> <li class="footer__category__item"><a href="/wiki/about#contact">QQ 群</a></li> </ul></div> </div> </div> <div class="footer__extra-link clearfix"> <div class="footer__extra-left"> <ol class="clearfix"> <li class="footer__extra-link-item"><a href="/wiki/about">关于</a></li> <li class="footer__extra-link-item"><a href="/wiki/about#contact">联系我们</a></li> <li class="footer__extra-link-item"><a href="/wiki/about#privacy">隐私</a></li> <li class="footer__extra-link-item"><a href="/wiki/about#tos">服务条款</a></li> <li class="footer__extra-link-item"><a href="https://hydro.js.org/#%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC">版权申诉</a></li> <li class="footer__extra-link-item nojs--hide" data-dropdown-target="#menu-footer-lang"> <span><span class="icon icon-global"></span> Language <span class="icon icon-expand_less"></span></span> <ol class="dropdown-target menu" id="menu-footer-lang"><li class="menu__item"><a class="menu__link" href="/language/en">English</a></li><li class="menu__item"><a class="menu__link" href="/language/ko">한국어</a></li><li class="menu__item"><a class="menu__link" href="/language/zh">简体中文</a></li><li class="menu__item"><a class="menu__link" href="/language/zh_TW">正體中文</a></li></ol> </li> <li class="footer__extra-link-item"> <a href="/legacy?legacy=true">Legacy mode</a> </li> <li class="footer__extra-link-item nojs--hide" data-dropdown-target="#menu-footer-theme"> <span><span class="icon icon-global"></span> 主题 <span class="icon icon-expand_less"></span></span> <ol class="dropdown-target menu" id="menu-footer-theme"> <li class="menu__item"><a class="menu__link" href="/set_theme/light">亮色</a></li> <li class="menu__item"><a class="menu__link" href="/set_theme/dark">暗色</a></li> </ol> </li> </ol> </div> <div class="footer__extra-right"> <ol class="clearfix"><li class="footer__extra-link-item"></li><li class="footer__extra-link-item"></li><li class="footer__extra-link-item">Worker 0 in 12ms</li> <!-- Prepare 3ms --> <!-- Method 3ms --> <li class="footer__extra-link-item">Powered by <a href="https://hydro.js.org">Hydro v4.7.2</a> Community</li> </ol> </div> </div> </div></div> </div> </div> <script> var UiContext = '{"cdn_prefix":"/","url_prefix":"/","ws_prefix":"/","nav_logo_dark":"/components/navigation/nav-logo-small_dark.png","constantVersion":"bb03f26b","domainId":"system","domain":{"_id":"system","owner":1,"name":"Hydro","bulletin":"Hydro System","roles":{"root":"-1","guest":"10715086071862673209484250490600018105614048117055336074437503883703510511249361224931983788156958581275946729175531468251871452856923140435984577574698574803934567774824230985421074605062371141877954182153046474983581941267398767559165543946077062914571196477686542167660429831652661870373870220902529","default":"10715086071862673209484250490600018105614048117055336074437503883703510511249361224931983788156958581275946729175531468251871452856923140435984577574698574803934567774824230985421074605062371141877954182153046474983581941267398767559165543946077062914571196477686542167660429831652809806901414229410497","student":"10715086071862673209484250490600018105614048117055336074437503883703510511249361224931983788156958581275946729175531468251871452856923140435984577574698574803934567774824230985421074605062371141877954182153046474983581941267398767559165543946077062914571196477686542167660429831652809806901414229410497"},"avatar":"","lower":"system"},"extraTitleContent":"\u3010\u5165\u95E8\u3011\u6253\u5370\u661F\u53F7\u4E09\u89D2\u884C","SWConfig":{"hosts":["http://219.153.61.2:20004","https://219.153.61.2:20004","/","/"],"domains":[]}}'; var UserContext = '{"_id":172,"mail":"tyz@126.com","uname":"tyz","hashType":"hydro","priv":66564,"regat":"2022-10-27T07:52:32.640Z","loginat":"2023-02-18T01:57:40.978Z","perm":"BigInt::10715086071862673209484250490600018105614048117055336074437503883703510511249361224931983788156958581275946729175531468251871452856923140435984577574698574803934567774824230985421074605062371141877954182153046474983581941267398767559165543946077062914571196477686542167660429831652809806901414229410497","scope":"BigInt::-1","role":"default","tfa":false,"authn":false,"group":["2022\u5189\u961F","2023\u6821\u57F9","172","172"],"viewLang":"zh","skipAnimate":true,"timeZone":"Africa/Abidjan","codeLang":"java","codeTemplate":"#include<iostream>\\r\\nusing namespace std;\\r\\nint main(){\\r\\n return 0;\\r\\n}","avatar":"//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&s=128","qq":"","gender":"0","bio":"\u8BA9\u4F60\u4EEC\u5C1D\u5C1D\u6218\u6817\u7684\u6ECB\u5473\uFF0C\u56E0\u5BD2\u51B7\uFF0C\u4E5F\u56E0\u754F\u60E7\u3002\\r\\n\\r\\n","school":"\u5C3F\u9891\u5B9E\u9A8C\u5C0F\u5B66","studentId":"2028348975634759437539465936555555555555555555548520523","backgroundImage":"/components/profile/backgrounds/2.jpg","unreadMsg":0,"fontFamily":"Microsoft Yahei","codeFontFamily":"Ubuntu Mono","preferredEditorType":"sv","monacoTheme":"vs-light","theme":"dark","showInvisibleChar":true,"formatCode":true,"displayName":"6","nAccept":64,"nSubmit":102,"rp":187.77742878666663,"rpInfo":{"problem":187.77742878666663},"rank":49,"level":5,"avatarUrl":"//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&s=128"}'; </script> <script type="text/javascript" src="/resource/4.47.2/lang-zh.js"></script> <script type="text/javascript" src="/hydro-4.47.2.js"></script> </body> </html>
2 条题解
-
06 (tyz) LV 5</li>
</span></div> </div> <div class="hasjs--hide"> <form method="post" class="dczcomments__box" name="dczcomments__box__form" data-hotkey="ctrl+enter:submit,esc:vjCommentBoxCancel"> <div> <textarea name="content" class="textbox" data-markdown required></textarea> </div> <div> <input type="submit" class="rounded primary button dczcomments__box__submit" value="分享 (Ctrl+Enter)" data-value-reply="回复 (Ctrl+Enter)" data-value-comment="分享 (Ctrl+Enter)" data-value-comment-update="更新 (Ctrl+Enter)" data-value-reply-update="更新 (Ctrl+Enter)"> <input type="button" class="rounded button nojs--hide" name="dczcomments__box__cancel" value="取消 (Esc)"> </div> <input type="hidden" name="operation" value="submit"> </form> </div> <div class="nojs--hide"> <textarea class="textbox" name="dczcomments__dummy-box" readonly data-form="{"operation":"submit"}" placeholder="发表您的题解"></textarea> </div> <div class="commentbox-placeholder"></div> <ul style="display:none"> <li class="dczcomments__reply commentbox-container"> <div class="media"> <div class="media__body top"> <div class="clearfix"> <div class="supplementary dczcomments__supplementary"> <span class="user-profile-link"> <img class="small user-profile-avatar v-center" loading="lazy" src="//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&s=64" width="20" height="20"> <a class="user-profile-name" href="/user/172"> 6 (tyz) </a>
</div> </div> <div class="commentbox-placeholder"></div> </div> </div> </li> </ul> </div>
0李松辰 (202522249) LV 8 @ 2022-11-14 13:39:36#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int i,j,k; for(int i=1;i<=n;i++){ for(int j = 1;j <= 3;j++){ for(int k = 1;k <= n-i;k++){ cout<<" "; } for(int k = 1;k <= 2i-1;k++){ cout<<""; } for(int k = 1;k <= n-i;k++){ cout<<" "; } } cout<<endl; } return 0; }
</div> <div class="commentbox-edit-target"></div> <ul class="dczcomments__replies commentbox-reply-target"></ul> </div>
0李松辰 (202522249) LV 8 @ 2022-11-14 13:38:30Testdata configuration incorrect. 没有找到测试数据。
</span> @ 2022-11-14 13:38:40</div> <div class="commentbox-edit-target"></div> <ul class="dczcomments__replies commentbox-reply-target"> <li class="dczcomments__reply"> <div class="media"> <div class="media__body top"> <div class="clearfix"> <div class="supplementary dczcomments__supplementary"> <span class="user-profile-link"> <img class="small user-profile-avatar v-center" loading="lazy" src="//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&s=64" width="20" height="20"> <a class="user-profile-name" href="/user/192"> 李松辰 (202522249) </a>
???
</div> <div class="commentbox-edit-target"></div> </div> </div> </li></ul> </div>
<ul class="pager pager-bottom"><li> <span class="pager__item current">1</span> </li></ul> </div> </div> </div>
-
- 1
信息
- ID
- 47
- 时间
- 1000ms
- 内存
- 16MiB
- 难度
- 4
- 标签
- 递交数
- 66
- 已通过
- 32
- 上传者