<div>일단 조건에 맞게 짜 보긴 했는데요. 이런저런 버그는 그냥 고쳐 쓰시면 될 듯 합니다. ^^;</div> <div>감사합니다.</div> <div><strong></strong> </div> <div><strong>소스</strong></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 style="line-height:130%;">15</div> <div style="line-height:130%;">16</div> <div style="line-height:130%;">17</div> <div style="line-height:130%;">18</div> <div style="line-height:130%;">19</div> <div style="line-height:130%;">20</div> <div style="line-height:130%;">21</div> <div style="line-height:130%;">22</div> <div style="line-height:130%;">23</div> <div style="line-height:130%;">24</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;"><span style="color:rgb(0,134,179);">#define</span> rrrr main(</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#include</span> <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span>stdio.h<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">></span></div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> r <span style="color:rgb(167,29,93);">for</span>( </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> rr ){<span style="color:rgb(167,29,93);">if</span>( </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> ___ <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> rrrr__r <span style="color:rgb(167,29,93);">break</span>;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> r___ <span style="color:rgb(6,109,226);">int</span></div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> char2 <span style="color:rgb(0,153,204);">256</span></div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> rrr ; </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> rrr__ <span style="color:rgb(167,29,93);">continue</span>;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> r_r_ <span style="color:rgb(6,109,226);">char</span></div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> _r_ }</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> r_r <span style="color:rgb(167,29,93);">if</span>(_[<span style="color:rgb(0,153,204);">0</span>]</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">r___ rrrr <span style="color:rgb(167,29,93);">void</span> ) </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> rr_ { </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">rr_ r_r_ _ [char2 ] <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> rr_ <span style="color:rgb(0,153,204);">0</span>,_r_ rrr</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> __r <span style="color:rgb(6,109,226);">printf</span>(</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">fgets(_,<span style="color:rgb(0,153,204);">256</span>,stdin) rrr r___ __ <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> <span style="color:rgb(0,153,204);">0</span>,_7 <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> <span style="color:rgb(0,153,204);">0</span> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">rrr r __<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span><span style="color:rgb(0,153,204);">0</span> rrr __<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span>char2 rrr __ ___ rr _[__] </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> <span style="color:rgb(0,153,204);">0</span>)rrrr__r rrr }__<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span> rrr r _7<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span><span style="color:rgb(0,153,204);">1</span>;_7 <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> __ </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#define</span> rr_r rrr } <span style="color:rgb(167,29,93);">return</span> <span style="color:rgb(0,153,204);">0</span> rrr</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">rrr _7 ___ rr _7<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span><span style="color:rgb(0,153,204);">1</span> && (_[__<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span>_7] <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span> <span style="color:rgb(99,163,92);">'0'</span>) <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span></div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(0,153,204);">0</span>) rrr__ __r <span style="color:rgb(99,163,92);">"%d"</span>,_[__<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span>_7] <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span> <span style="color:rgb(99,163,92);">'0'</span>) rrr _r_</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">r_r <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span> <span style="color:rgb(99,163,92);">'0'</span> <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span> <span style="color:rgb(0,153,204);">5</span>) rr_ __r <span style="color:rgb(99,163,92);">"0"</span>)rr_r _r_</div></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>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.