<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Codeforces Round 1039 (Div. 2) on 이왓슨 작업실</title><link>https://blog.js7777.party/tags/codeforces-round-1039-div.-2/</link><description>Recent content in Codeforces Round 1039 (Div. 2) on 이왓슨 작업실</description><generator>Hugo</generator><language>ko-KR</language><lastBuildDate>Sun, 03 Aug 2025 23:00:25 +0900</lastBuildDate><atom:link href="https://blog.js7777.party/tags/codeforces-round-1039-div.-2/index.xml" rel="self" type="application/rss+xml"/><item><title>Codeforces Round 1039 (Div. 2)</title><link>https://blog.js7777.party/posts/110/</link><pubDate>Sun, 03 Aug 2025 23:00:25 +0900</pubDate><guid>https://blog.js7777.party/posts/110/</guid><description>&lt;figure class="img"&gt;&lt;img src="https://blog.js7777.party/posts/110/img-01.png" alt="" loading="lazy" decoding="async" width="1888" height="84"&gt;&lt;/figure&gt;&lt;p&gt;B,C 난이도가..&lt;/p&gt;&#10;&lt;p&gt;C는 심지어 시스페일 당해서 더 슬펐다.&lt;/p&gt;&#10;&lt;h3 id="a--0006-ac"&gt;A — 00:06 AC&lt;a class="hanchor" href="#a--0006-ac" aria-label="이 제목 링크 복사"&gt;#&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;각 시점에서 코인 없이 제거할 수 있는 쓰레기 중에 가장 무거운 쓰레기부터 그리디하게 처리하면 된다. 무게가 &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;c&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;를 넘어간 쓰레기는 다시 되돌릴 수 없고, 만약 1초 뒤에 무게가 &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;c&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;를 넘어가는 쓰레기가 있다면 그 쓰레기를 처리하는 게 이득이기 때문이다. 사실 무게가 &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mi mathvariant="normal"&gt;/&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;c / 2&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt; 초과인 쓰레기는 1초 뒤에는 코인이 있어야 제거할 수 있게 되므로 &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mi mathvariant="normal"&gt;/&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mo&gt;&amp;lt;&lt;/mo&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo&gt;≤&lt;/mo&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;c / 2 &amp;lt; x \le c&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;를 만족하는 &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;x&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt; 중에 아무거나 제거해도 된다.&lt;/p&gt;</description></item></channel></rss>