add _static
This commit is contained in:
256
storage/zeta/_static/23629.html
Normal file
256
storage/zeta/_static/23629.html
Normal file
@@ -0,0 +1,256 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>BOJ 23629 - 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>이 얼마나 끔찍하고 무시무시한 수식이니</h1>
|
||||
</header>
|
||||
<article class="section">
|
||||
<h2>문제</h2>
|
||||
<p>하루 종일 숫자만 보다가 정신이 나가버린 사람이 무시무시한 일을 저질러 버렸다. 숫자가 보기 싫으면 없애면 된다고 생각하며 아래와 같은 무시무시한 문자열을 쓴 것이다.</p>
|
||||
|
||||
<p><code>ONETWOTHREEFOUR+TWOTHREEFOURFIVE=</code></p>
|
||||
|
||||
<p>그렇다. 숫자만 안 보이면 된다. 그래서, 아래의 표를 보고 숫자를 모두 영단어로 바꾸었다.</p>
|
||||
|
||||
<table align="center" border="1" cellpadding="1" cellspacing="1" class="table table-bordered" style="width: 200px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;">숫자</td>
|
||||
<td style="text-align: center;">영단어</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"><code>0</code></td>
|
||||
<td style="text-align: center;"><code>ZERO</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"><code>1</code></td>
|
||||
<td style="text-align: center;"><code>ONE</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"><code>2</code></td>
|
||||
<td style="text-align: center;"><code>TWO</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"><code>3</code></td>
|
||||
<td style="text-align: center;"><code>THREE</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"><code>4</code></td>
|
||||
<td style="text-align: center;"><code>FOUR</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"><code>5</code></td>
|
||||
<td style="text-align: center;"><code>FIVE</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"><code>6</code></td>
|
||||
<td style="text-align: center;"><code>SIX</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"><code>7</code></td>
|
||||
<td style="text-align: center;"><code>SEVEN</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"><code>8</code></td>
|
||||
<td style="text-align: center;"><code>EIGHT</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"><code>9</code></td>
|
||||
<td style="text-align: center;"><code>NINE</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p>그런데 이런, 문자열을 보다가 그만 문자열을 적은 사람이 정신을 잃었다. 우리가 문자열을 보고 원래의 식을 계산해서 알려주자. 변환되기 전의 수식을 정확하게 판단하여 정답을 구할 수 있다면, 정답을 출력하자. 만약 변환되기 전의 수식으로 가능한 것이 없다면 <code>"</code><strong>Madness!</strong><code>"</code>를 출력하자.</p>
|
||||
|
||||
<p>변환되기 전의 수식은 양의 정수로 시작해서 양의 정수와 연산자가 번갈아서 등장하며, 마지막 연산자는 =이고, =은 수식의 마지막에만 등장한다. 등장하는 연산자는 +, -, x, /, =으로 총 5가지가 있다. 기존의 사칙연산 방식과는 다르게 앞에서부터 순서대로 계산이 이루어지며, / 연산의 결과로 정수가 아닌 수가 나오면 0에 가까운 방향으로 반올림된다. 예를 들어 1.8은 1로, -1.8은 -1로 반올림된다.</p>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>입력</h2>
|
||||
<p>영문 대문자 및 <code>+,-,x,/,=</code>로 이루어진 문자열이 주어진다. 문자열은 =로 끝나며, 연산자로 시작하지 않는다. =은 항상 문자열의 마지막에만 등장한다. 문자열의 시작 또는 연산자의 바로 다음에 <code>"ZERO"</code>가 등장하는 경우는 없다.</p>
|
||||
|
||||
<p>주어지는 문자열 <span class="math-inline"><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mrow><mi>S</mi></mrow></math></span>의 길이는 <span class="math-inline"><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mrow><mn>4</mn><mi>≤</mi><mo>|</mo><mi>S</mi><mo>|</mo><mi>≤</mi><mn>100</mn><mo>,</mo><mn>000</mn></mrow></math></span> 이고, 문자열에 포함된 수는 <span class="math-inline"><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mrow><mn>1</mn></mrow></math></span> 이상 <span class="math-inline"><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mrow><mn>1</mn><mo>,</mo><mn>000</mn><mo>,</mo><mn>000</mn></mrow></math></span> 이하이다.</p>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>출력</h2>
|
||||
<p>변환되기 전의 수식으로 가능한 것이 없는 경우, <strong>Madness!</strong> 를 출력한다.</p>
|
||||
|
||||
<p>가능한 수식이 있을 경우, 첫 번째 줄에는 그 수식을 출력하고, 두 번째 줄에는 식의 계산값을 모든 숫자를 다시 영단어로 변환하여 출력한다.</p>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>제한</h2>
|
||||
<p>정답 및 계산 과정 중에 나오는 수의 절댓값은 모두 <span class="math-inline"><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mrow><msup><mn>10</mn><mrow><mn>15</mn></mrow></msup></mrow></math></span>보다 작다.</p>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 입력 1 복사</h2>
|
||||
<pre class="sampledata" id="sample-input-1">ONETWOTHREEFOUR+FIVESIXSEVEN=
|
||||
</pre>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 입력 2 복사</h2>
|
||||
<pre class="sampledata" id="sample-input-2">FIVEZEROxTWOTWO-ONEONEONEONE=
|
||||
</pre>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 입력 3 복사</h2>
|
||||
<pre class="sampledata" id="sample-input-3">ONE-SIX/THREE=
|
||||
</pre>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 입력 4 복사</h2>
|
||||
<pre class="sampledata" id="sample-input-4">ONE+-THREE=
|
||||
</pre>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 입력 5 복사</h2>
|
||||
<pre class="sampledata" id="sample-input-5">ONETWOFIVENINEEIGHTSEVEN=
|
||||
</pre>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 출력 1 복사</h2>
|
||||
<pre class="sampledata" id="sample-output-1">1234+567=
|
||||
ONEEIGHTZEROONE
|
||||
</pre>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 출력 2 복사</h2>
|
||||
<pre class="sampledata" id="sample-output-2">50x22-1111=
|
||||
-ONEONE
|
||||
</pre>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 출력 3 복사</h2>
|
||||
<pre class="sampledata" id="sample-output-3">1-6/3=
|
||||
-ONE
|
||||
</pre>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 출력 4 복사</h2>
|
||||
<pre class="sampledata" id="sample-output-4">Madness!
|
||||
</pre>
|
||||
</article>
|
||||
<article class="section">
|
||||
<h2>예제 출력 5 복사</h2>
|
||||
<pre class="sampledata" id="sample-output-5">125987=
|
||||
ONETWOFIVENINEEIGHTSEVEN
|
||||
</pre>
|
||||
</article>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user