<div> </div> <div> 일단 문제는 파이선으로 이루어져있습니다.</div> <div> </div> <div class="colorscripter-code" style="color:rgb(1,1,1);overflow:auto;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <table class="colorscripter-code-table" style="margin:0px;padding:0px;border:;background-color:rgb(250,250,250);" cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:6px;border-right-color:rgb(229,229,229);border-right-width:2px;border-right-style:solid;"> <div style="margin:0px;padding:0px;text-align:right;color:rgb(102,102,102);line-height:130%;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <div style="line-height:130%;">1</div> <div style="line-height:130%;">2</div> <div style="line-height:130%;">3</div> <div style="line-height:130%;">4</div> <div style="line-height:130%;">5</div> <div style="line-height:130%;">6</div> <div style="line-height:130%;">7</div> <div style="line-height:130%;">8</div> <div style="line-height:130%;">9</div> <div style="line-height:130%;">10</div> <div style="line-height:130%;">11</div> <div style="line-height:130%;">12</div> <div style="line-height:130%;">13</div> <div style="line-height:130%;">14</div></div></td> <td style="padding:6px 0px;"> <div style="margin:0px;padding:0px;color:rgb(1,1,1);line-height:130%;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <div style="padding:0px 6px;line-height:130%;white-space:pre;">a <span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">=</span> [<span style="color:rgb(0,153,204);">80</span>, <span style="color:rgb(0,153,204);">95</span>, <span style="color:rgb(0,153,204);">64</span>, <span style="color:rgb(0,153,204);">89</span>, <span style="color:rgb(0,153,204);">100</span>, <span style="color:rgb(0,153,204);">90</span> ,<span style="color:rgb(0,153,204);">77</span>]</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">(가) <span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">></span> 답 s <span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">=</span> [<span style="color:rgb(0,153,204);">1</span>, <span style="color:rgb(0,153,204);">1</span>, <span style="color:rgb(0,153,204);">1</span>, <span style="color:rgb(0,153,204);">1</span>, <span style="color:rgb(0,153,204);">1</span> , <span style="color:rgb(0,153,204);">1</span>, <span style="color:rgb(0,153,204);">1</span>]</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">(나) <span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">></span> 답 <span style="color:rgb(6,109,226);">print</span>(<span style="color:rgb(99,163,92);">"정보 성적 처리"</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(167,29,93);">for</span> x <span style="color:rgb(167,29,93);">in</span> <span style="color:rgb(6,109,226);">range</span>(<span style="color:rgb(0,153,204);">7</span>):</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(167,29,93);">for</span> y <span style="color:rgb(167,29,93);">in</span> <span style="color:rgb(6,109,226);">range</span>(<span style="color:rgb(0,153,204);">7</span>):</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(167,29,93);">if</span> (다): <span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">></span> 답 a[x] <span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);"><</span> a[y]</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> s[x] <span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">=</span> (라) <span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">></span> (아) <span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">/</span><span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">/</span> (라) 답은 s[x] <span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">+</span><span style="color:rgb(0,153,204);">1</span></div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(167,29,93);">for</span> x <span style="color:rgb(167,29,93);">in</span> <span style="color:rgb(6,109,226);">range</span>((마)):</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(6,109,226);">print</span>((바), <span style="color:rgb(99,163,92);">"번 학생의 점수는"</span>, a[x], <span style="color:rgb(99,163,92);">"이고, 석차는"</span>, s[x], <span style="color:rgb(99,163,92);">"등입니다."</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">/</span><span style="color:rgb(0,134,179);"></span><span style="color:rgb(167,29,93);">/</span> 바 답은 x</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> </div></div> <div style="text-align:right;font-size:9px;font-style:italic;margin-top:-13px;margin-right:5px;"><a style="color:rgb(229,229,229);text-decoration:none;" href="http://colorscripter.com/info#e" target="_blank">Colored by Color Scripter</a></div></td> <td style="padding:0px 2px 4px 0px;vertical-align:bottom;"><a style="color:#FFFFFF;text-decoration:none;" href="http://colorscripter.com/info#e" target="_blank"><span style="padding:1px;color:#FFFFFF;font-size:9px;background-color:rgb(229,229,229);">cs</span></a></td></tr></tbody></table></div> <div> </div> <div> 문제는 (아)가 몇번 실행되는가 입니다.</div> <div> </div> <div> 일단 저는 21이라고 생각하는데 학교 답은 47이더라고요.</div> <div> </div> <div> 혹시 해설 해주실 수 있나요. 저는 당연히 if에서 걸러지니까 (아)는 실행 안되는 줄 알고 있었는데 ...</div>