add _static
This commit is contained in:
310
storage/zeta/_static/10233.html
Normal file
310
storage/zeta/_static/10233.html
Normal file
@@ -0,0 +1,310 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>BOJ 10233 - Offline</title>
|
||||
<style>
|
||||
:root {
|
||||
--bg: #fafaf8;
|
||||
--paper: #ffffff;
|
||||
--ink: #1e1f24;
|
||||
--muted: #6a6d75;
|
||||
--line: #d8dce3;
|
||||
--accent: #0d6e6e;
|
||||
--code-bg: #f4f6fb;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
background:
|
||||
radial-gradient(circle at 15% 0%, #f0efe9 0%, transparent 42%),
|
||||
radial-gradient(circle at 85% 20%, #e7f1f2 0%, transparent 38%),
|
||||
var(--bg);
|
||||
color: var(--ink);
|
||||
font-family: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", sans-serif;
|
||||
line-height: 1.65;
|
||||
}
|
||||
main {
|
||||
max-width: 980px;
|
||||
margin: 0 auto;
|
||||
padding: 24px 16px 56px;
|
||||
}
|
||||
.header {
|
||||
background: var(--paper);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 14px;
|
||||
padding: 18px 20px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.header h1 { margin: 0 0 6px; font-size: 1.5rem; }
|
||||
.header p { margin: 0; color: var(--muted); font-size: 0.95rem; }
|
||||
.header a { color: var(--accent); text-decoration: none; }
|
||||
.section {
|
||||
background: var(--paper);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 14px;
|
||||
padding: 16px 18px;
|
||||
margin-bottom: 14px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
h2 {
|
||||
margin: 0 0 10px;
|
||||
font-size: 1.05rem;
|
||||
color: var(--accent);
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
pre, code {
|
||||
font-family: "JetBrains Mono", "Fira Code", monospace;
|
||||
background: var(--code-bg);
|
||||
}
|
||||
pre {
|
||||
padding: 12px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #e7ebf2;
|
||||
overflow: auto;
|
||||
}
|
||||
blockquote {
|
||||
margin: 14px 0;
|
||||
padding: 16px 16px 14px 22px;
|
||||
border-left: 4px solid var(--accent);
|
||||
border-radius: 10px;
|
||||
background: linear-gradient(90deg, #eef8f8 0%, #f9fdfd 100%);
|
||||
color: #24313a;
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
}
|
||||
blockquote::before {
|
||||
content: "“";
|
||||
position: absolute;
|
||||
left: 8px;
|
||||
top: 2px;
|
||||
font-size: 1.35rem;
|
||||
line-height: 1;
|
||||
color: #0b5f5f;
|
||||
opacity: 0.7;
|
||||
}
|
||||
blockquote > :first-child { margin-top: 0; }
|
||||
blockquote > :last-child { margin-bottom: 0; }
|
||||
q {
|
||||
color: #114f50;
|
||||
font-weight: 700;
|
||||
background: #edf8f8;
|
||||
border-radius: 6px;
|
||||
padding: 0 4px;
|
||||
}
|
||||
.math-inline math {
|
||||
font-size: 1em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.math-block {
|
||||
margin: 10px 0;
|
||||
padding: 8px 10px;
|
||||
overflow-x: auto;
|
||||
background: #f8fbff;
|
||||
border: 1px solid #e2ecf8;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.math-block math {
|
||||
font-size: 1.04em;
|
||||
display: block;
|
||||
}
|
||||
table { border-collapse: collapse; width: 100%; }
|
||||
th, td { border: 1px solid var(--line); padding: 6px 8px; }
|
||||
img { max-width: 100%; height: auto; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<header class="header">
|
||||
<h1>Tax Rate Changed</h1>
|
||||
</header>
|
||||
<article class="section">
|
||||
<h2>문제</h2>
|
||||
<p>VAT (value-added tax) is a tax imposed at a certain rate proportional to the sale price.</p>
|
||||
|
||||
<p>Our store uses the following rules to calculate the after-tax prices.</p>
|
||||
|
||||
<ul>
|
||||
<li>When the VAT rate is <i>x</i>%, for an item with the before-tax price of <i>p</i> yen, its after-tax price of the item is <i>p</i> (100+<i>x</i>) / 100 yen, fractions rounded off.</li>
|
||||
<li>The total after-tax price of multiple items paid at once is the sum of after-tax prices of the items.</li>
|
||||
</ul>
|
||||
|
||||
<p>The VAT rate is changed quite often. Our accountant has become aware that "different pairs of items that had the same total after-tax price may have different total after-tax prices after VAT rate changes." For example, when the VAT rate rises from 5% to 8%, a pair of items that had the total after-tax prices of 105 yen before can now have after-tax prices either of 107, 108, or 109 yen, as shown in the table below.</p>
|
||||
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Before-tax prices of two items</th>
|
||||
<th>After-tax price with 5% VAT</th>
|
||||
<th>After-tax price with 8% VAT</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>20, 80</td>
|
||||
<td>21 + 84 = 105</td>
|
||||
<td>21 + 86 = 107</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2, 99</td>
|
||||
<td>2 + 103 = 105</td>
|
||||
<td>2 + 106 = 108</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>13, 88</td>
|
||||
<td>13 + 92 = 105</td>
|
||||
<td>14 + 95 = 109</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p>Our accountant is examining effects of VAT-rate changes on after-tax prices. You are asked to write a program that calculates the possible maximum total after-tax price of two items with the new VAT rate, knowing their total after-tax price before the VAT rate change.</p>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>입력</h2>
|
||||
<p>The input consists of multiple datasets. Each dataset is in one line, which consists of three integers <i>x</i>, <i>y</i>, and <i>s</i> separated by a space. <i>x</i> is the VAT rate in percent <i>before</i> the VAT-rate change, <i>y</i> is the VAT rate in percent <i>after</i> the VAT-rate change, and <i>s</i> is the sum of after-tax prices of two items <i>before</i> the VAT-rate change. For these integers, 0 < <i>x</i> < 100, 0 < <i>y</i> < 100, 10 < <i>s</i> < 1000, and <i>x</i> ≠ <i>y</i> hold. For before-tax prices of items, all possibilities of 1 yen through <i>s</i>-1 yen should be considered.</p>
|
||||
|
||||
<p>The end of the input is specified by three zeros separated by a space.</p>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>출력</h2>
|
||||
<p>For each dataset, output in a line the possible maximum total after-tax price when the VAT rate is changed to <i>y</i>%.</p>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>힌트</h2>
|
||||
<p>In the following table, an instance of a before-tax price pair that has the maximum after-tax price after the VAT-rate change is given for each dataset of the sample input.</p>
|
||||
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Dataset</th>
|
||||
<th>Before-tax prices</th>
|
||||
<th>After-tax price with <i>y</i>% VAT</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5 8 105</td>
|
||||
<td>13, 88</td>
|
||||
<td>14 + 95 = 109</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>8 5 105</td>
|
||||
<td>12, 87</td>
|
||||
<td>12 + 91 = 103</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1 2 24</td>
|
||||
<td>1, 23</td>
|
||||
<td>1 + 23 = 24</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>99 98 24</td>
|
||||
<td>1, 12</td>
|
||||
<td>1 + 23 = 24</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>12 13 26</td>
|
||||
<td>1, 23</td>
|
||||
<td>1 + 25 = 26</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1 22 23</td>
|
||||
<td>1, 22</td>
|
||||
<td>1 + 26 = 27</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1 13 201</td>
|
||||
<td>1,199</td>
|
||||
<td>1 +224 = 225</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>13 16 112</td>
|
||||
<td>25, 75</td>
|
||||
<td>29 + 87 = 116</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2 24 50</td>
|
||||
<td>25, 25</td>
|
||||
<td>31 + 31 = 62</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1 82 61</td>
|
||||
<td>11, 50</td>
|
||||
<td>20 + 91 = 111</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1 84 125</td>
|
||||
<td>50, 75</td>
|
||||
<td>92 +138 = 230</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1 99 999</td>
|
||||
<td>92,899</td>
|
||||
<td>183+1789 =1972</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>99 1 999</td>
|
||||
<td>1,502</td>
|
||||
<td>1 +507 = 508</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>98 99 999</td>
|
||||
<td>5,500</td>
|
||||
<td>9 +995 =1004</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1 99 11</td>
|
||||
<td>1, 10</td>
|
||||
<td>1 + 19 = 20</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>99 1 12</td>
|
||||
<td>1, 6</td>
|
||||
<td>1 + 6 = 7</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 입력 1 복사</h2>
|
||||
<pre class="sampledata" id="sample-input-1">5 8 105
|
||||
8 5 105
|
||||
1 2 24
|
||||
99 98 24
|
||||
12 13 26
|
||||
1 22 23
|
||||
1 13 201
|
||||
13 16 112
|
||||
2 24 50
|
||||
1 82 61
|
||||
1 84 125
|
||||
1 99 999
|
||||
99 1 999
|
||||
98 99 999
|
||||
1 99 11
|
||||
99 1 12
|
||||
0 0 0
|
||||
</pre>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 출력 1 복사</h2>
|
||||
<pre class="sampledata" id="sample-output-1">109
|
||||
103
|
||||
24
|
||||
24
|
||||
26
|
||||
27
|
||||
225
|
||||
116
|
||||
62
|
||||
111
|
||||
230
|
||||
1972
|
||||
508
|
||||
1004
|
||||
20
|
||||
7
|
||||
</pre>
|
||||
</article>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user