经典简约
清爽简洁,回归本真
液态水晶
毛玻璃+霓虹光带
赛博朋克
霓虹故障艺术风
🚫
违规操作检测
禁止使用右键菜单
⚠️ 此操作已被系统记录
1

多多洛的礼物

📝 题解 🔵 仅限 C++
题目描述
<p></p> <p><!--[if gte mso 9]><xml><w:WordDocument><w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel><w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery><w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery><w:DocumentKind>DocumentNotSpecified</w:DocumentKind><w:DrawingGridVerticalSpacing>7.8</w:DrawingGridVerticalSpacing><w:View>Normal</w:View><w:Compatibility><w:DontGrowAutofit /></w:Compatibility><w:Zoom>0</w:Zoom></w:WordDocument></xml><![endif]--></p> <p><!--[if gte mso 9]><xml><w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="156" ><w:LsdException Locked="false" Priority="99" Name="Normal" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 1" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 6" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 7" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 8" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 9" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 1" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 6" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 7" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 8" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 9" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 1" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 6" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 7" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 8" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 9" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Normal Indent" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="footnote text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="annotation text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="header" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="footer" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index heading" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="caption" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="table of figures" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="envelope address" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="envelope return" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="footnote reference" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="annotation reference" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="line number" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="page number" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="endnote reference" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="endnote text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="table of authorities" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="macro" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toa heading" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Title" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Closing" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Signature" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Default Paragraph Font" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text Indent" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Message Header" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Subtitle" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Salutation" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Date" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text First Indent" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text First Indent 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Note Heading" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text Indent 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text Indent 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Block Text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Hyperlink" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="FollowedHyperlink" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Strong" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Emphasis" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Document Map" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Plain Text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="E-mail Signature" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Normal (Web)" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Acronym" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Address" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Cite" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Code" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Definition" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Keyboard" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Preformatted" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Sample" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Typewriter" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Variable" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Normal Table" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="annotation subject" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="No List" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Balloon Text" ></w:LsdException></w:LatentStyles></xml><![endif]--></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; text-align:justify; vertical-align:; "><span style="mso-spacerun:'yes'; font-size:12.0000pt; font-family:'微软雅黑'; ">&nbsp; 明天就是冬至了,热心的龙猫多多洛要开着它的猫巴士带幼儿园的小朋友去郊游;为了报答多多洛,幼儿园的小朋友都带了礼物送给它,男生会送糖果,女生会送巧克力;现在,多多洛想知道,它将会收到总共多少个糖果和巧克力。</span></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; text-align:justify; vertical-align:; "><a href="http://tk.hustoj.com/upload/pimg6216_1.jpg"><img align="middle" alt="" src="http://tk.hustoj.com/upload/pimg6216_1.jpg" /></a></p> <p></p>
输入格式
<p><!--[if gte mso 9]><xml><w:WordDocument><w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel><w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery><w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery><w:DocumentKind>DocumentNotSpecified</w:DocumentKind><w:DrawingGridVerticalSpacing>7.8</w:DrawingGridVerticalSpacing><w:View>Normal</w:View><w:Compatibility><w:DontGrowAutofit /></w:Compatibility><w:Zoom>0</w:Zoom></w:WordDocument></xml><![endif]--></p> <p><!--[if gte mso 9]><xml><w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="156" ><w:LsdException Locked="false" Priority="99" Name="Normal" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 1" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 6" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 7" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 8" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 9" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 1" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 6" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 7" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 8" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 9" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 1" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 6" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 7" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 8" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 9" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Normal Indent" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="footnote text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="annotation text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="header" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="footer" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index heading" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="caption" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="table of figures" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="envelope address" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="envelope return" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="footnote reference" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="annotation reference" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="line number" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="page number" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="endnote reference" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="endnote text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="table of authorities" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="macro" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toa heading" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Title" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Closing" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Signature" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Default Paragraph Font" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text Indent" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Message Header" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Subtitle" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Salutation" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Date" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text First Indent" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text First Indent 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Note Heading" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text Indent 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text Indent 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Block Text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Hyperlink" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="FollowedHyperlink" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Strong" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Emphasis" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Document Map" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Plain Text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="E-mail Signature" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Normal (Web)" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Acronym" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Address" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Cite" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Code" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Definition" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Keyboard" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Preformatted" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Sample" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Typewriter" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Variable" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Normal Table" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="annotation subject" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="No List" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Balloon Text" ></w:LsdException></w:LatentStyles></xml><![endif]--></p> <p class="p0" style="text-indent:21.0000pt; margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; text-align:justify; vertical-align:; "><span style="mso-spacerun:'yes'; font-size:12.0000pt; font-family:'微软雅黑'; ">首先有一个数字T,代表有T组数据;每组数据有一个数字n,接下来有n行,每行包括两个数字s和t,s表示小朋友们的性别(0是女生,1是男生),t表示该小朋友将会送给多多洛多少颗糖果或巧克力。(0&lt;=s&lt;=1,&nbsp;1&lt;=t&lt;=10)</span></p> <p></p>
输出格式
<p><!--[if gte mso 9]><xml><w:WordDocument><w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel><w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery><w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery><w:DocumentKind>DocumentNotSpecified</w:DocumentKind><w:DrawingGridVerticalSpacing>7.8</w:DrawingGridVerticalSpacing><w:View>Normal</w:View><w:Compatibility><w:DontGrowAutofit /></w:Compatibility><w:Zoom>0</w:Zoom></w:WordDocument></xml><![endif]--></p> <p><!--[if gte mso 9]><xml><w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="156" ><w:LsdException Locked="false" Priority="99" Name="Normal" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 1" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 6" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 7" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 8" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="heading 9" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 1" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 6" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 7" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 8" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index 9" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 1" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 6" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 7" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 8" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toc 9" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Normal Indent" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="footnote text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="annotation text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="header" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="footer" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="index heading" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="caption" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="table of figures" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="envelope address" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="envelope return" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="footnote reference" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="annotation reference" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="line number" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="page number" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="endnote reference" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="endnote text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="table of authorities" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="macro" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="toa heading" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Bullet 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Number 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Title" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Closing" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Signature" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Default Paragraph Font" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text Indent" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 4" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="List Continue 5" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Message Header" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Subtitle" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Salutation" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Date" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text First Indent" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text First Indent 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Note Heading" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text Indent 2" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Body Text Indent 3" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Block Text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Hyperlink" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="FollowedHyperlink" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Strong" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Emphasis" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Document Map" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Plain Text" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="E-mail Signature" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Normal (Web)" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Acronym" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Address" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Cite" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Code" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Definition" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Keyboard" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Preformatted" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Sample" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Typewriter" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="HTML Variable" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Normal Table" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="annotation subject" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="No List" ></w:LsdException><w:LsdException Locked="false" Priority="99" Name="Balloon Text" ></w:LsdException></w:LatentStyles></xml><![endif]--></p> <p class="p0" style="text-indent:21.0000pt; margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; text-align:justify; vertical-align:; "><span style="mso-spacerun:'yes'; font-size:12.0000pt; font-family:'微软雅黑'; ">对于每组数据输出两个数字,分别表示多多洛会收到的</span><span style="mso-spacerun:'yes'; font-size:12.0000pt; font-family:'微软雅黑'; "><span style="mso-spacerun:'yes'; font-size:12.0000pt; font-family:'微软雅黑'; ">巧克力</span>和</span><span style="mso-spacerun:'yes'; font-size:12.0000pt; font-family:'微软雅黑'; "><span style="mso-spacerun:'yes'; font-size:12.0000pt; font-family:'微软雅黑'; ">糖果</span>的总数,两个数字之间用一个空格隔开(第二个数字后面没有空格,不要多加)。</span></p> <p></p>
样例
样例输入 1
2 1 0 1 3 0 5 1 6 0 3
样例输出 1
1 0 8 6
提交代码
请先登录后提交

🤖 AI 解题助手

DeepSeek
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这道题,可以帮你分析思路、提供代码示例。
⚠️ 请先登录后使用