question_id stringlengths 6 6 | content stringlengths 1 27.2k |
|---|---|
p02728 | <span class="lang-en">
<p>Score : <var>600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3>
<p>We have a tree with <var>N</var> vertices numbered <var>1</var> to <var>N</var>. The <var>i</var>-th edge in this tree connects Vertex <var>a_i</var> and <var>b_i</var>.
For each <var>k=1, ..., N</var>... |
p01807 |
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<!-- begin en only -->
<h3><u>Stamp Rally</u></h3>
<!... |
p02682 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have <var>A</var> cards, each of which has an integer <var>1</var> written on it. Similarly, we also have <var>B</var> cards with <var>0</var>s and <var>C</var> cards with <var>-1</var>s.</p>
<p>We w... |
p03990 | <span class="lang-en">
<p>Score : <var>1400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sigma and Sugim are playing a game.</p>
<p>The game is played on a graph with <var>N</var> vertices numbered <var>1</var> through <var>N</var>. The graph has <var>N-1</var> red edges and <var>N-1</var>... |
p00345 |
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>宿°æ¢çŽåæ°å</H1>
<p>
宿°ã®ãã¡ãå°æ°éšã埪ç°ãããã®ãšæéæ¡ã®... |
p02378 |
<H1>Bipartite Matching</H1>
<p>
A bipartite graph <var>G = (V, E)</var> is a graph in which the vertex set <var>V</var> can be divided into two disjoint subsets <var>X</var> and <var>Y</var> such that every edge <var>e ∈ E</var> has one end point in <var>X</var> and the other end point in <var>Y</var>.
</p>
<p>... |
p03139 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We conducted a survey on newspaper subscriptions.
More specifically, we asked each of the <var>N</var> respondents the following two questions:</p>
<ul>
<li>Question <var>1</var>: Are you subscribing to... |
p01104 |
<h3><u>Making Lunch Boxes</u></h3>
<p>
Taro has been hooked on making lunch boxes recently.
Taro has obtained a new lunch box recipe book today, and wants to try as many of the recipes listed in the book as possible.
</p>
<p>
Enough of the ingredients for all the recipes are at hand, but they all are in vacuum packs... |
p03093 | <span class="lang-en">
<p>Score : <var>1200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>M</var> be a positive integer.</p>
<p>You are given <var>2 N</var> integers <var>a_1, a_2, \ldots, a_{2 N}</var>, where <var>0 \leq a_i < M</var> for each <var>i</var>.</p>
<p>Consider divi... |
p03569 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have a string <var>s</var> consisting of lowercase English letters.
Snuke can perform the following operation repeatedly:</p>
<ul>
<li>Insert a letter <code>x</code> to any position in <var>s</var> o... |
p01554 |
<h1>Kagisys</h1>
<p>ããéšå±ã§ã¯ICã«ãŒããçšããŠéµãéãéãããé»åé ã·ã¹ãã ãçšããŠããã
ãã®ã·ã¹ãã ã¯ä»¥äžã®ããã«åäœããã
</p>
<p>åãŠãŒã¶ãŒãæã€ICã«ãŒããæã«ããããšããã®ICã«ãŒãã®IDãã·ã¹ãã ã«æž¡ãããã
ã·ã¹ãã ã¯IDãç»é²ãããŠããæãæœé ãããŠãããªãéé ããããã§ãªãã®ãªãæœé ããããããã¡ãã»ãŒãžãåºåãããã
IDãç»é²ãããŠããªãå Žåã¯ãç»é²ãããŠããªããšããã¡ãã»ãŒãžãåºåããéé åã³æœé ã¯ãããªãããªãã
</p>
<p>ããŠãçŸåšã·ã¹ãã ã«ã¯Nåã®ID(U<sub>1</sub>, U<sub>2</sub>, âŠâŠ, U<sub>N</sub>)ãç»é²ãããŠã... |
p00596 |
<H1><font color="#000000">Problem B:</font> Dominoes Arrangement</H1>
<pre>
[0, 0]
[0, 1] [1, 1]
[0, 2] [1, 2] [2, 2]
[0, 3] [1, 3] [2, 3] [3, 3]
[0, 4] [1, 4] [2, 4] [3, 4] [4, 4]
[0, 5] [1, 5] [2, 5] [3, 5] [4, 5] [5, 5]
[0, 6] [1, 6] [2, 6] [3, 6] [4, 6] [5, 6] [6, 6]
</pre>
<p>
Consider the ... |
p02051 | <h3>äžæè°ãªãã¿ã³</h3>
<!-- begin ja only -->
<p>ããªãã¯ïŒçºå€ãã«ãããã³ãžã§ã³ã§ã³ã€ã³ã皌ãããšã«ããïŒãã®ãã³ãžã§ã³ã«ã¯ <i>N</i> åã®éšå±ãååšãïŒ<i>1</i> ãã <i>N</i> ãŸã§ã®çªå·ãã€ããããŠããïŒãŸãïŒãã³ãžã§ã³å
ã«ã¯ãã³ã€ã³ãã¿ã³ããè±åºãã¿ã³ããã¯ãŒããã¿ã³ããšåŒã°ããäžæè°ãªãã¿ã³ãååšããïŒããããã®ãã¿ã³ã®è©³çŽ°ã¯æ¬¡ã®éãã§ããïŒ</p>
<ul>
<li>ã³ã€ã³ãã¿ã³ã¯åéšå±ã«ã¡ããã© <i>1</i> åååšããïŒã³ã€ã³ãã¿ã³ã¯äœåã§ãæŒãããšãã§ãïŒãã®ãã³ã«ã³ã€ã³ã <i>1</i> ææã«å
¥ãïŒ</li>
<li>è±åºãã¿ã³ã¯åéšå±ã«ã¡ã... |
p02401 | <H1>Simple Calculator</H1>
<p>
Write a program which reads two integers <var>a</var>, <var>b</var> and an operator <var>op</var>, and then prints the value of <var>a</var> <var>op</var> <var>b</var>.
</p>
<p>
The operator <var>op</var> is '+', '-', '*' or '/' (sum, difference, product or quotient). The division shoul... |
p01387 |
<div>
<h1 class="title">åé¡ L : <span style="font-size:110%;font-family:times new roman;"><i>L</i></span> çªç®ã®æ°å</h1>
<p>åä¹±ãå
ãã€ããå€ãã® Gââgle ã®ã³ãŒããŒãæã
ãåãæŒããã«ãã£ãŠããïŒ
ããªãã®æ°ã ïŒ
ãã®äžã«ã¯ïŒæ±äº¬å€§åп代ã«åããåªããæå°ããŠãããå
茩ãã¡ãå€ãèŠåããããïŒ
æ®å¿µãªããïŒä»ã§ã¯æµå士ã ïŒ</p>
<dl class="docutils">
<dt>wata</dt>
<dd>ãäºæ³ä»¥äžã®æ°ã âŠã</dd>
<dt>(iwi)</dt>
<dd>ãããïŒæã
ãè¶
é«éææ°æ... |
p02952 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given is an integer <var>N</var>. Find the number of positive integers less than or equal to <var>N</var> that have an odd number of digits (in base ten without leading zeros).</p>
</section>
</div>
<di... |
p03640 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have a grid with <var>H</var> rows and <var>W</var> columns of squares.
Snuke is painting these squares in colors <var>1</var>, <var>2</var>, <var>...</var>, <var>N</var>.
Here, the following conditi... |
p03210 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p><em>Shichi-Go-San</em> (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children.</p>
<p>Takahashi is now <var>X</va... |
p02817 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given are two strings <var>S</var> and <var>T</var> consisting of lowercase English letters. Concatenate <var>T</var> and <var>S</var> in this order, without space in between, and print the resulting st... |
p01738 |
<p>
You are practicing a juggle that involves in a number of square tiles.
They all look the same in their size, but actually there are three different kinds of the tiles, A, B and X.
The kind of a tile can be distinguishable by its mass.
All the tiles of the same kind have exactly the same mass.
The mass of type A t... |
p03705 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke has <var>N</var> integers. Among them, the smallest is <var>A</var>, and the largest is <var>B</var>.
We are interested in the sum of those <var>N</var> integers. How many different possible sums ... |
p01368 |
<H1><font color="#000">Problem J:</font> Merry Christmas</H1>
<p>
International Christmas Present Company (ICPC) is a company to employ Santa and deliver
presents on Christmas. Many parents request ICPC to deliver presents to their children at
specified time of December 24. Although same Santa can deliver two or more... |
p03355 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given a string <var>s</var>.
Among the <strong>different</strong> substrings of <var>s</var>, print the <var>K</var>-th lexicographically smallest one.</p>
<p>A substring of <var>s</var> is a st... |
p00980 | <h2>Estimating the Flood Risk</h2>
<p>
Mr. Boat is the owner of a vast extent of land. As many typhoons have struck Japan this year, he became concerned of flood risk of his estate and he wants to know the average altitude of his land. The land is too vast to measure the altitude at many spots. As no steep slopes ar... |
p01692 |
<h2>F - Dangerous Delivery / å±éºãªèŒžé</h2>
<h3>Story</h3>
<p>Dã®ã²ãšã¯é倧ãªäœ¿åœãèè² ã£ãŠãããããã¯DAtaCoDer瀟é·ã®Dhokudaiæ°ãžã次ã®DAtaCoDer Regular Contest(DARC)ã®Dåé¡ãå±ããããšã ãDã®ã²ãšã®ã¢ãžããããéœåž<var>1</var>ããDAtaCoDeræ¬ç€Ÿãããéœåž<var>N</var>ãŸã§ã¯<var>N</var>åã®éœåžãäžçŽç·ã«äžŠãã§ããããã®ç§»åã®éãäžæ£ãäŒãç·ã®äžè§åœ¢ã®éå£ãDåé¡ãçã£ãŠããããã®éã®æããDåé¡ãå®ããã°ãªããªãã</p>
<p>幞ããDã®ã²ãšã¯æ¬¡å
(ãã£ã¡ã³ãžã§ã³)ã®å£ãè¶
ããŠç§»... |
p02114 |
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script language="JavaScript" type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
</script>
<h1>Problem D: Fissure Puzzle... |
p00129 |
<h1>ãããããŒã</H1>
<p>
ãããåã¯ãããããŒããèŠæã§ããé ãããšããèŠã€ãã£ã¡ããããé ããŠããåããªããªãèŠã€ããããšãã§ããŸãããèŠããããç¶ããã¯ãè¶
髿§èœäœçœ®æ¢çŽ¢ã·ã¹ãã ãäœã£ãŠãããŸãããããã䜿ããšèªåã®äœçœ®ãå«ããŠãåéã®äœçœ®ãæ£ç¢ºã«ç¥ãããšãã§ããŸãã鬌ã«ãªã£ãããé ããŠããåãæ¢ãããšãç°¡åã«ã§ããããã«ãªããŸããã
</p>
<!--
èŠã€ãããåã®äœçœ®ã«è¡ãã°ãããã§ OK ã®ã¯ãã§ããããã䜿ã£ãŠããããšãã°ãããšéãã§ããããªããªãã®ã§å
ç·ã§äœ¿ããŸãã
-->
<p>
ãããåã¯ããã«ãã®ã·ã¹ãã ãé²åããã鬌ããèªåãèŠãããåŠããå€å®ããæ©èœãä»å ããããšãæãã€ããŸããã... |
p02544 | <span class="lang-en">
<p>Score : <var>900</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given are a permutation <var>p_1, p_2, \dots, p_N</var> of <var>(1, 2, ..., N)</var> and an integer <var>K</var>. Maroon performs the following operation for <var>i = 1, 2, \dots, N - K + 1</var> in thi... |
p00579 | <h1>ã€ã«ãããŒã·ã§ã³ (Illumination)</h1>
<!--ããæéå¶é : 2sec / ã¡ã¢ãªå¶é : 256MB-->
<h2>å顿</h2>
<p>
JOI æ°ã¯ïŒèªå®
ã®æ·å°ã« <var>N</var> æ¬ã®æšãææããŠããïŒãããã®æšã¯äžåã«äžŠãã§ããïŒé ã« <var>1</var> ãã <var>N</var> ãŸã§ã®æŽæ°ã§çªå·ãä»ããããŠããïŒ
</p>
<p>
ãã®å¬ïŒJOI æ°ã¯ããã€ãã®æšãéžãã§ïŒã€ã«ãããŒã·ã§ã³ã食ãä»ããããšã«ããïŒã€ã«ãããŒã·ã§ã³ã«ã¯<strong>çŸãã</strong>ãšåŒã°ããå€ãå®ãŸã£ãŠããïŒæš <var>i</var> ã«ã€ã«ãããŒã·ã§ã³ã食ãä»ããå Žå... |
p00083 |
<H1>西æŠåæŠå€æ</H1>
<p>
西æŠã§è¡šãããå¹Žææ¥ããå
å·ãçšããåæŠã«å€æãããã®å¹Žææ¥ãåºåããããã°ã©ã ãäœæããŠãã ãããå
¥åã¯äŸã«ç€ºãããã« 3 ã€ã®æŽæ°ã§ãããé ã«è¥¿æŠå¹Žãæãæ¥ã§ããããããåºåäŸã«ç€ºãããã«å€æããŠãã ããããªããææ²»ä»¥åã®å¹Žææ¥ãå
¥åãããå Žåã¯ãpre-meijiããšè¡šç€ºããŠãã ããã
</p>
<p>
å幎å·ã®æåã®å¹Žã¯ãå
幎ãã§ã¯ãªããïŒå¹ŽããšåºåããããšãšããŸãã
</p>
<center>
<table border=1>
<tr><td align=center width=100>å
å·</td><td align=center width=240>æé</td><... |
p00216 |
<H1>æ°Žéæé</H1>
<p>
<!--ããã¥åŠåéœåžã«äœãã§ãã-->æŸå¹³ããã¯ãæ®æ®µãããšã³ã«æ°ãä»ããŠç掻ãããŠããŸããå
æã®æ°Žéæéã 4280 åãšãªãããã€ãç®æšãšããŠãã 4000 åãè¶
ããŠããŸã£ãã®ã§ã仿ã¯ç¯æ°Žã«åªããŠããŸãããå
æãšæ¯ã¹ãŠæ°Žéæéã¯ã©ã®ãããç¯çŽã§ããã®ã§ããããã
</p>
<p>
仿ã®äœ¿çšæ°Žé <var>w</var> [m<sup>3</sup>] ãå
¥åãšããå
æã®æ°Žéæéã§ãã 4280 åãšæ¯èŒããŠãã©ã®ãããæ°Žéæéãç¯çŽã§ããããåºåããããã°ã©ã ãäœæããŠãã ããã
</p>
<p>
ãªããæ°Žéæéã¯æ¬¡ã®ããã«èšç®ãããŸãã
</p>
<p>
(æ°Žé... |
p02381 |
<H1>Standard Deviation</H1><br>
<p>
You have final scores of an examination for <var>n</var> students. Calculate standard deviation of the scores <var>s<sub>1</sub></var>, <var>s<sub>2</sub></var> ... <var>s<sub>n</sub></var>.
</p>
<p>
The variance α<sup>2</sup> is defined by
</p>
<p>
α<sup>2</sup> ... |
p01954 |
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], skipTags: ["script","noscript","style","textarea","code"], processEscapes: true }});
</script>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config... |
p03969 | <span class="lang-en">
<p>Score : <var>1300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>One day, AtCoDeer the deer found a simple graph (that is, a graph without self-loops and multiple edges) with <var>N</var> vertices and <var>M</var> edges, and brought it home.
The vertices are numbere... |
p00646 |
<H1><font color="#000000">Problem J:</font> No Story</H1>
<p>
Since I got tired to write long problem statements, I decided to make this problem statement short. For given positive integer <i>L</i>, how many pairs of positive integers <i>a</i>, <i>b</i> (<i>a</i> ≤ <i>b</i>) such that LCM(<i>a</i>, <i>b</i>) = <i>... |
p01407 |
<H1>A: Attack the Moles</H1>
<p>
ICPC ã§è¯ãæçžŸãåããã«ã¯ä¿®è¡ãæ¬ ãããªãïŒããã㯠ICPC ã§åã¡ããã®ã§ïŒä»æ¥ãä¿®è¡ãããããšã«ããïŒ
</p>
<p>
仿¥ã®ä¿®è¡ã¯ïŒãããããããäœåãè¡ã£ãŠïŒåå°ç¥çµãšèšæ¶åãé«ããããšãããã®ã§ããïŒåºãŠããããããæ¬¡ã
ã«å©ãïŒåºæ¥ãã ãå€ãã®ãã€ã³ããç²åŸãããïŒ
</p>
<p>
ããããåºãŠããå¯èœæ§ã®ããå Žæã¯çŽç·ç¶ã«äžŠãã§ããŠïŒåºæºç¹ããã®è·é¢ã«ãã£ãŠåº§æšãå®ãŸã£ãŠããïŒãããã¯ãã°ããä¿®è¡ãç¶ãããã¡ã«ïŒãããã®åºçŸããå Žæãšæéãåžžã«äžç·ã§ããããšã«æ°ãä»ããïŒãããã¯ïŒãã®æ
å ±ããã¹ãŠèšé²ãïŒã³ã³ãã¥ãŒã¿ã§è§£æãè¡ãããšã«ãã... |
p03590 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p><em>Seisu-ya</em>, a store specializing in non-negative integers, sells <var>N</var> non-negative integers. The <var>i</var>-th integer is <var>A_i</var> and has a <em>utility</em> of <var>B_i</var>.
Th... |
p01057 |
<h1>String Crossing</h1>
<h2>Problem</h2>
<p>
<var>N</var>åã®æåå{ <var>S<sub>1</sub></var>, <var>S<sub>2</sub></var>, ..., <var>S<sub>N</sub></var> } ãäžããããã
ç¶ããŠ<var>Q</var>åã®ã¯ãšãªãäžããããã
ã¯ãšãªã®çš®é¡ã¯ä»¥äžã®2ã€ã§ããã
</p>
<ol>
<li>
<var>a</var>,<var>b</var>,<var>c</var>,<var>d</var>ãå
¥åãã<var>S<sub>a</sub></var> ã® <var>b</var>æåç®ã... |
p01542 |
<h1>倱ãããæ°</h1>
<p>
æã¯3xxx幎ãé«åºŠã«çºéããææã¯åæ»æãè¿ããŠãããæŽå²å®¶ãã¡ã¯ãã®ç¶æ³ãæéããããšéå»ã®å¡æºãåŠã¶ããšã«ãããæ³šç®ããã®ã¯ã³ã³ãã¥ãŒã¿åµäžæã®å€©æãæ®ããè³æã§ããããã®è³æã«ã¯èšç®åŒãæžãããŠãããã®èšç®çµæãç¥ãããã®ã ããæ®å¿µãªãããã®äžéšã®æåãèããŠèªããªããªã£ãŠããã仿¹ããªãã®ã§èšç®çµæãšããŠããããæã倧ããæ°ãæ±ããããšã«ããã
èšç®åŒã¯2鲿°ã§æžãããŠãããæŒç®ã¯è¶³ãç®ã»åŒãç®ã»æãç®ã®3çš®é¡ã§ãããæ¬åŒ§ãçšããããŠãããæ¬åŒ§å
ãæ°åã®ã¿ã§ããããšã¯ãªããæ£ç¢ºã«ã¯ä»¥äžã®BNFã§å®çŸ©ãããææ³ãæºãããŠããå¿
èŠãããã
</p>
<pre><expres... |
p03085 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>On the Planet AtCoder, there are four types of bases: <code>A</code>, <code>C</code>, <code>G</code> and <code>T</code>. <code>A</code> bonds with <code>T</code>, and <code>C</code> bonds with <code>G</... |
p01112 | <h3>Playoff by all the teams</h3>
<!-- end en only -->
<!-- begin en only -->
<p>
The Minato Mirai Football Association hosts its annual championship
as a single round-robin tournament,
in which each team plays a single match against all the others.
Unlike many other round-robin tournaments of football,
matches ne... |
p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,â just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... |
p03986 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have a string <var>X</var>, which has an even number of characters. Half the characters are <code>S</code>, and the other half are <code>T</code>.</p>
<p>Takahashi, who hates the string <code>ST</cod... |
p02694 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3>
<p>Takahashi has a deposit of <var>100</var> yen (the currency of Japan) in AtCoder Bank.</p>
<p>The bank pays an annual interest rate of <var>1</var> % compounded annually. (A fraction of less than one y... |
p01811 |
<h2>ABC Gene</h2>
<p>æåå <code>ABC</code> ã§è¡šãããéºäŒåé
åããããããªãã¯æ¬¡ã®æäœãäœåãè¡ãããã®éºäŒåé
åãæžãæããŠããããšãã§ããã</p>
<ul>
<li>æå <code>A</code>ïŒ<code>B</code>ïŒ<code>C</code> ã®ãã¡ <var>1</var> ã€ãéžã¶ãããã <var>x</var> ãšãããéºäŒåé
åã«å«ãŸãããã¹ãŠã® <var>x</var> ããããã <code>ABC</code> ãžåæã«çœ®ãæããã</li>
</ul>
<p><code>A</code>ïŒ<code>B</code>ïŒ<code>C</co... |
p00703 |
<h1>
What is the Number in my Mind ?
</h1>
<p>Let us enjoy a number guess game. </p>
<p>A number containing L digits is in my mind (where 4 <= L <= 10). You
should guess what number it is. It is composed of any of the following ten
digits:<br></p><pre> "0","1","2","3","4","5","6","7","8", and "9".
</pre>
<p... |
p03206 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>In some other world, today is December <var>D</var>-th.</p>
<p>Write a program that prints <code>Christmas</code> if <var>D = 25</var>, <code>Christmas Eve</code> if <var>D = 24</var>, <code>Christmas E... |
p04039 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
p03656 | <span class="lang-en">
<p>Score : <var>1700</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are two rooted trees, each with <var>N</var> vertices.
The vertices of each tree are numbered <var>1</var> through <var>N</var>.
In the first tree, the parent of Vertex <var>i</var> is Vertex <va... |
p00979 | <h2>Fast Forwarding</h2>
<p>
Mr. Anderson frequently rents video tapes of his favorite classic films. Watching the films so many times, he has learned the precise start times of his favorite scenes in all such films. He now wants to find how to wind the tape to watch his favorite scene as quickly as possible on his ... |
p02944 | <span class="lang-en">
<p>Score : <var>1800</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>For a sequence <var>S</var> of positive integers and positive integers <var>k</var> and <var>l</var>, <var>S</var> is said to belong to <em>level</em> <var>(k,l)</var> when one of the following conditi... |
p01391 |
<script src="./IMAGE/varmath.js" charset="UTF-8"></script>
<h1><font color="#000">åé¡ D </font> åã®æ§æ</h1>
<h2>å顿</h2>
<p><var>1</var> ãã <var>N</var> ãŸã§ã®çžç°ãªãæŽæ°ã <var>N / 2</var> åæžãããã«ãŒããããã€ãäžããããã®ã§ïŒæ¬¡ã®æ¡ä»¶ãæºãããããªé·ã <var>N</var> ã®æ°å <var>seq</var> ã <var>1</var> ã€äœã£ãŠåºåããŠæ¬²ããïŒ</p>
<ul>
<li><var>seq</var> ã®åèŠçŽ ã¯ <var>... |
p02417 |
<H1>Counting Characters</H1><br>
<p>
Write a program which counts and reports the number of each alphabetical letter. Ignore the case of characters.
</p>
<H2>Input</H2>
<p>
A sentence in English is given in several lines.
</p>
<H2>Output</H2>
<p>
Prints the number of alphabetical letters in the following f... |
p02047 | <h3>æååã®éæ³</h3>
<!-- begin ja only -->
<p>éæ³äœ¿ãã§ããããªãã¯ïŒä»æ¥ãéæ³ã®ä¿®è¡ã«å±ãã§ããïŒããªãã¯ä»ïŒæå
ã«è±å°æåãããªãæåå <i>X</i> ãæã£ãŠããïŒããªãã®ä»æ¥ã®ä¿®è¡ã®èª²é¡ã¯ïŒãã®æååãïŒå¥ã®æåå <i>Y</i> ã«å€åãããããšã§ããïŒ</p>
<p>ããªãã¯ïŒæååãå€åãããéæ³ã 4 çš®é¡ç¿åŸããŠããŠïŒãããã奜ããªé åºã§äœåã§ãå±ããããšãã§ããïŒãã ãïŒéæ³ãå±ãããã³ã«ïŒéæ³ç³ãšåŒã°ããç¹å¥ãªç³ãæ¶è²»ããïŒããªããç¿åŸããŠããéæ³ã¯æ¬¡ã®éãã§ããïŒ</p>
<ul>
<li>éæ³ç³ã <i>A</i> åæ¶è²»ããïŒæå
ã®æååã®å¥œããªäœçœ®ã«ïŒå¥œã... |
p00580 | <h1>åº§åž (Seats)ã</h1>
<!--ããæéå¶é : 5sec / ã¡ã¢ãªå¶é : 256MB -->
<h2> å顿</h2>
<p>
2XXX 幎ïŒäžçã®åœã¯çŽç·ç¶ã«äžŠãã§ããïŒ<var>N</var> åã®åœãããïŒ<var>1, 2, ..., N</var> ã®çªå·ãä»ããããŠããïŒ<var>i = 1, 2, ..., N - 1</var> ã«å¯ŸãïŒåœ <var>i</var> ãšåœ <var>i + 1</var> ãäºãã«é£åœã§ããïŒ
</p>
<p>
ãã®å¹Žã®åœéæ
å ±ãªãªã³ããã¯ã§ã¯ïŒåœ <var>i</var> ãã㯠<var>A_i</var> 人ã®éžæãåå ããïŒåœéæ
å ±ãªãªã³ããã¯... |
p00095 |
<H1>ã¯ã«ãµã®é£ã倧äŒ</H1>
<p>
æ¡§åæ¹ã§ã¯ã«ãµã®é£ã倧äŒãè¡ãããŸãããäžçªå€ãã®ã¯ã«ãµã®ãç²åŸãã人ãåªåè
ã§ãã
</p>
<p>
åå è
çªå·ãšé£ã£ã广°ã®ãªã¹ããèªã¿èŸŒã¿ãåªåè
ã®çªå·ãšé£ã£ã广°ãåºåããããã°ã©ã ãäœæããŠãã ãããåªåè
ãè€æ°ããå Žåã¯ã<!--æåã®-->ãã®äžã§åå è
çªå·ãæãå°ããäžäººãåºåããŠãã ããã
</p>
<H2>å
¥å</H2>
<p>
å
¥åã¯ä»¥äžã®åœ¢åŒã§äžããããã
</p>
<pre>
<var>n</var>
<var>a<sub>1</sub></var> <var>v<sub>1</sub></var>
<var>a<sub>2</sub></var... |
p02552 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given is an integer <var>x</var> that is greater than or equal to <var>0</var>, and less than or equal to <var>1</var>.
Output <var>1</var> if <var>x</var> is equal to <var>0</var>, or <var>0</var> if <... |
p02102 |
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script language="JavaScript" type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
</script>
<h1>Problem E: Tangled Cables<... |
p01684 |
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script language="JavaScript" type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>
<h3>Problem Statement</h3>
<p>... |
p00996 |
<h1>Problem G: Dice</h1>
<p>
ãµã€ã³ãïŒå
åŒã¯äžã€åã§ããäžå¿åäœãïŒã€ã§ã²ãšã€ãšãèšã£ãŠããããäžã€åã§ããããèŠåããã€ããªãã»ã©äŒŒãŠããããããªãµã€ã³ãïŒå
åŒã¯Aåã®ãæ°ã«å
¥ãã®ããã¡ãã ãAåã¯ãã€ãïŒã€ïŒã»ããã§ãµã€ã³ãã転ãããŠéãã§ããããã®ããã«Aåãæ¥œããéã¶ããã¡ãã ããå®ã¯å€§ããªç§å¯ããã£ãã圌ãã¯å®ã¯çããŠããŠã話ãããèªç±ã«åãããã§ããã®ã ãåã©ãéšå±ã¯ <i>r</i > à <i> c </i> ã®å€§ããã®ã°ãªããã§è¡šãããšãã§ãããšãŠã倧ãããã®ãæ£ä¹±ããŠããã
</p>
<p>
ãµã€ã³ãïŒå
åŒã¯å®€å
ãæ±è¥¿ååã®ïŒæ¹åãžé²è¡æ¹åã«åãã£ãŠè»¢ãããªããç§»åãããã... |
p03343 | <span class="lang-en">
<p>Score : <var>600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given an integer sequence <var>A</var> of length <var>N</var> and an integer <var>K</var>.
You will perform the following operation on this sequence <var>Q</var> times:</p>
<ul>
<li>Choose a con... |
p03713 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a bar of chocolate with a height of <var>H</var> blocks and a width of <var>W</var> blocks.
Snuke is dividing this bar into exactly three pieces.
He can only cut the bar along borders of blocks... |
p02801 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given is a lowercase English letter <var>C</var> that is not <code>z</code>. Print the letter that follows <var>C</var> in alphabetical order.</p>
</section>
</div>
<div class="part">
<section>
<h3>Cons... |
p01000 |
<h1>Problem B: Independent Research</h1>
<h2>Problem</h2>
<!--
<p>
é·æäŒæã®èª²é¡ãšã¯ãé·æäŒæã䜿ã£ãŠãããŸã§ã®å匷ã®åŸ©ç¿ãããã<del>ããšã建ãŠåã«ãèšç»åããããã«ããŠçºçããããçåŸã«äœéšããã</del>ãããé·æäŒæã«èª²ããã詊緎ã®ããšã§ããã
ãã®äžã§ããèªç±ç ç©¶ãšã¯ãé·æäŒæã®èª²é¡ã®äžã§ãæãéé
·ãªèª²é¡ã§ããã
ãèªç±ç ç©¶ããšèšãåã«åããŠåŒ·å¶ã§ããå Žåãå€ããç ç©¶ããªããšããéžæè¢ã¯ååšããªãã
çµµãå·¥äœãçãç©èгå¯ãªã©ãæ§ã
ãªåéã®èª²é¡ãããããšããããåã¯ãçãç©èгå¯ãèªç±ç ç©¶ã®ããŒããšããã
</p>
-->
<p>
åã¯å€äŒã¿ã®... |
p01450 |
<H1>Problem D: åã®åéã¯å°ãã</H1>
<p>
åã«ã¯ãããããã®åéããããã©ã®åéãããšãŠãå°ããã<br>
åã¯ãããåéãšäžç·ã«åºããããäœäººãã®åéããªã¥ãã¯ã«å
¥ããŠãäžç·ã«åºãããã<br>
åã¯æ¯æããã®æ¥äžç·ã«åºãããåéãæ±ºããã空ã®ãªã¥ãã¯ã«ãïŒäººãã€åéãå
¥ããŠããã<br>
åã¯ãããŸãåã匷ããªããã ãããåæã«éã¹ãåéã®éãã«ã¯éçãããã<br>
åã¯ãéãã®éçãè¶
ããªãããã«åéãå
¥ããŠãããã©ã®é çªã§å
¥ããŠãããã¯æ°å次第ã<br>
åã¯ãå
¥ããããåéããŸã æ®ã£ãŠããéããå
¥ããã®ãæ¢ããªããæ±ºããŠæ¢ããªãã<br>
</p>
<p>
âŠâŠãšããã§ããªã¥ãã¯ã«å
¥ã£ã... |
p03197 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is an apple tree that bears apples of <var>N</var> colors. The <var>N</var> colors of these apples are numbered <var>1</var> to <var>N</var>, and there are <var>a_i</var> apples of Color <var>i</v... |
p01903 |
<link rel="stylesheet" href="css/description.css" type="text/css" />
<script language="JavaScript" type="text/javascript" src="js/varmath.js" charset="UTF-8"></script>
<h2>F: 颚åããªãŒããŒãã㌠- Overflow of Furo -</h2>
<h3>ç©èª</h3>
<p>
æž©æ³å®¿ã»ããã¯èªæ
¢ã®æž©æ³ã«å
šãŠã®æ
ç±ã泚ãã§ããã颚åã®ãããã§ãã·ã§ãã«ãéããŠããã
颚åã®ãããã¡ã¯äž»ã«æž©æ³ã®é
管ã管çããŠãããè€æ°ã®æºæ³ãã1ã€ã®å€§æµŽå Žãžãšç¹ãã... |
p00611 |
<H1><font color="#000000">Problem G:</font> Building Water Ways</H1>
<p>
In ancient times, Romans constructed numerous water ways to supply water to cities and industrial sites. These water ways were amongst the greatest engineering feats of the ancient world.
</p>
<p>
These water ways contributed to social infrastru... |
p00241 |
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>åå
æ°ã®ããç®</H1>
<p>
è€çŽ æ°ãæ¡åŒµãããã®ã«åå
æ°ãšåŒã°ãããã®ããããŸããç©äœã®å転ãªã©ã衚çŸããã®ã«äŸ¿... |
p03894 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You have <var>N</var> cups and <var>1</var> ball.</p>
<p>The cups are arranged in a row, from left to right.</p>
<p>You turned down all the cups, then inserted the ball into the leftmost cup.</p>
<p>The... |
p02786 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Caracal is fighting with a monster.</p>
<p>The <em>health</em> of the monster is <var>H</var>.</p>
<p>Caracal can attack by choosing one monster. When a monster is attacked, depending on that monster's ... |
p02293 |
<H1>Parallel/Orthogonal</H1>
<br/>
<p>
For given two lines <var>s1</var> and <var>s2</var>, print "2" if they are parallel, "1" if they are orthogonal, or "0" otherwise.
</p>
<p>
<var>s1</var> crosses points <var>p0</var> and <var>p1</var>, and
<var>s2</var> crosses points <var>p2</var> and <var>p3</var>.
</p>
<H2>... |
p01846 |
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
</script>
<h3>jfen</h3>
<p><i>H × W</i> ã®ç€é¢ã§éã¶äžäººçšã²ãŒã ã... |
p02769 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a building with <var>n</var> rooms, numbered <var>1</var> to <var>n</var>.</p>
<p>We can move from any room to any other room in the building.</p>
<p>Let us call the following event a <strong>m... |
p00754 |
<h3><U>The Balance of the World</U></h3>
<!-- end en only -->
<div> <!-- please enclose each h3 level section with div -->
<!-- begin en only -->
<p>
The world should be finely balanced. Positive vs. negative,
light vs. shadow, and left vs. right brackets.
Your mission is to write a program that judges whether a ... |
p02339 | <!--<h1>åå12çž ãã®9:ããŒã«ã«åºå¥ããã»ç®±ã«åºå¥ãªãã»ç®±ã®äžèº«ã¯1ã€ä»¥äž</h1>-->
<h1>Balls and Boxes 9</h1>
<table border="">
<tr><th>Balls</th><th>Boxes</th><th>Any way</th><th>At most one ball</th><th>At least one ball</th></tr>
<tr><th>Distinguishable</th><th>Distinguishable</th><td>1</td><td>2</td><td>3</td></tr>
<tr><th>Indistinguishab... |
p00304 |
<h1>æ°è¬éçº</h1>
<p>
è±äžåå£«ã¯æ¥ã
ç ç©¶ãè¡ããæ°ããè¬ãéçºããããšããŠããŸããæ°è¬ãéçºããããã«ã¯ãè²ã
ãªç©è³ªãçµã¿åãããŠè¬ãäœã詊éšãè¡ããè¯ãè¬ãèŠã€ããªããã°ãªããŸãããæ§ã
ãªçµã¿åããã詊ããŠãããã¡ã«ãè±äžå士ã¯ç©è³ªã®çµã¿åãããæš¹åœ¢å³ã§è¡šããããšãçªãæ¢ããŸããã
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE2_PCK2014_drugDevelopment">
</center>
<br>
<p>
å³ã®å³ã¯ãè¬ã®èª¿åãè¡šãæš¹åœ¢å³ã®äŸã§ããå³ã®äžã§äžžãå²ãŸãããã®ãç©è³ªããŒããäž... |
p03482 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given a string <var>S</var> consisting of <code>0</code> and <code>1</code>.
Find the maximum integer <var>K</var> not greater than <var>|S|</var> such that we can turn all the characters of <va... |
p01145 |
<!-- begin en only -->
<h3><U> Princess' Japanese </U></h3>
<!-- end en only -->
<!-- begin ja only -->
<h3><U> ãå§«æ§ã®æ¥æ¬èª </U></h3>
<!-- end ja only -->
<!-- begin en only -->
<p>
English text is not available in this practice contest.
</p>
<!-- end en only -->
<!-- begin ja only -->
<p>
ããè²§ä¹ãªåœã®ããŠãã°ã§åæ¢ãªãå§«æ§ã¯ïŒæ¥æ¬èªã®å匷ã... |
p03178 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Find the number of integers between <var>1</var> and <var>K</var> (inclusive) satisfying the following condition, modulo <var>10^9 + 7</var>:</p>
<ul>
<li>The sum of the digits in base ten is a multiple... |
p01515 |
<!-- begin en only -->
<h3><u>Equation
</u></h3>
<!-- end en only -->
<!-- begin ja only -->
<h3><u>æçåŒ
</u></h3>
<!-- end ja only -->
<div>
<!-- begin en only -->
<p>
English text is not available in this practice contest.
</p>
<!-- end en only -->
<!-- begin ja only -->
<p>
è«çæŒç®ã§ã¯ïŒå€ã¯ T ãš F ã®2çš®é¡ã ããæ±ãïŒ
</p>
<p>
&quo... |
p03528 | <span class="lang-en">
<p>Score : <var>1000</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Select any integer <var>N</var> between <var>1000</var> and <var>2000</var> (inclusive), and any integer <var>K</var> not less than <var>1</var>, then solve the problem below.</p>
<h4>Problem</h4>
<p>W... |
p02010 | <h1>Problem G. Additions</h1>
<!--
Time Limit: 2 sec
Memory Limit: 512 MB
-->
<p>
You are given an integer $N$ and a string consisting of '<span>+</span>' and digits. You are asked to transform the string into a valid formula whose calculation result is smaller than or equal to $N$ by modifying some characters. Her... |
p00187 |
<H1>æç³ãã¿ãã</H1>
<p>
ãèªåã®éã¯èªåã§åãéãããã¢ãããŒã«ãããç¥ç€Ÿãèªåèªèº«ã®æã§éå¢ã決ãããã¿ãããäœããŸããããã®ãã¿ãããåŒã人ã«ã¯ãŸã6ã€ã®ç³ãæããŠãããããã®æããç³ã®äžã€ç®ãšäºã€ç®ãçµã¶ ç·åãäžã€ç®ãšåã€ç®ãçµã¶ ç·åãäºã€ç®ãšå
ã€ç®ãçµã¶ ç·åã®3æ¬ã®ç·åã®äº€ç¹ãé ç¹ãšãã äžè§åœ¢ã®é¢ç©ããéå¢ã決ãããšãããã®ã§ããåéå¢ãšäžè§åœ¢ã®é¢ç©ãšã®é¢ä¿ã¯ä»¥äžã®ãšããã§ãã
</p>
<center>
<table>
<tr><th width="300">ç·åã®äº€ç¹ãé ç¹ãšããäžè§åœ¢ã®é¢ç©</th><th> éå¢</th></tr>
<tr><td> ... |
p02440 | <h1>Min-Max Element</h1>
<p>
Write a program which manipulates a sequence $A = \{a_0, a_1, ..., a_{n-1}\}$ by the following operations:
</p>
<ul>
<li>min($b, e$): report the minimum element in $a_b, a_{b+1}, ..., a_{e-1}$</li>
<li>max($b, e$): report the maximum element in $a_b, a_{b+1}, ..., a_{e-1}$</li>
</u... |
p03601 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is making sugar water in a beaker.
Initially, the beaker is empty. Snuke can perform the following four types of operations any number of times. He may choose not to perform some types of operatio... |
p02913 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given is a string <var>S</var> of length <var>N</var>.</p>
<p>Find the maximum length of a non-empty string that occurs twice or more in <var>S</var> as contiguous substrings without overlapping.</p>
<p... |
p01796 |
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
</script>
<h2>Problem G
JAG-channel II</h2>
... |
p00884 |
<H1><font color="#000">Problem A:</font> Membership Management</H1>
<p>
Peter is a senior manager of Agile Change Management (ACM) Inc., where each employee is a member of one or more task groups. Since ACM is agile, task groups are often reorganized and their members frequently change, so membership management is hi... |
p03251 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Our world is one-dimensional, and ruled by two empires called Empire A and Empire B.</p>
<p>The capital of Empire A is located at coordinate <var>X</var>, and that of Empire B is located at coordinate <... |
p03744 | <span class="lang-en">
<p>Score : <var>900</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are in charge of controlling a dam. The dam can store at most <var>L</var> liters of water. Initially, the dam is empty. Some amount of water flows into the dam every morning, and any amount of wate... |
p01779 |
<h2>H : Typing Game / ã¿ã€ãã³ã°ã²ãŒã </h2>
<h3>ç©èª</h3>
<p>
ããããã¯ïŒã¿ã€ãã³ã°åãéããæéã§ãïŒçããã¯æ©ãæ£ç¢ºãªã¿ã€ãã³ã°ãããããšãã§ããŸããïŒ
Letâs enjoy Typing Game!
</p>
<h3>åé¡</h3>
<p>ã¿ã€ãã³ã°ã²ãŒã ã®ã²ãŒã ã·ã¹ãã ãšããŠïŒãžã£ããžåŽãçšæããAIã®åºåã«å¯ŸããŠå¯Ÿè©±çã«åäœããããã°ã©ã ãäœæããïŒ</p>
<p>AI㯠<var>N</var> åã®æååãã¿ã€ãããã²ãŒã ããã¬ã€ããïŒAIã¯äœåãæã£ãŠããïŒãã®åæå€ã¯ <var>H</var> ã§ããïŒAIã¯äœåãããéãæåã®ã¿ã€ããè¡ãïŒã·ã¹ãã ã¯AIãã¿... |
p02856 | <span class="lang-en">
<p>Score: <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3>
<p><var>N</var> programmers are going to participate in the preliminary stage of DDCC 20XX. Due to the size of the venue, however, at most <var>9</var> contestants can participate in the finals.</p>
<p>The... |
p01283 |
<H1><font color="#000">Problem A:</font> Strange String Manipulation</H1>
<p>
A linear congruential generator produces a series R(⋅) of pseudo-random numbers by the following for-
mulas:
</p>
<!--
<p>
R(0) = S , R(i) = (A · R(i â 1) + C) mod M (for i = 1, 2, . . .),
</p>
-->
<center>
... |
p03314 | <span class="lang-en">
<p>Score : <var>1100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given integers <var>N, K</var>, and an integer sequence <var>A</var> of length <var>M</var>.</p>
<p>An integer sequence where each element is between <var>1</var> and <var>K</var> (inclusive) i... |
p01329 |
<h1><font color="#000">Problem I:</font> çãŸããå®ç³</h1>
<p>ãã«çåœã®åœå®ã§ããå®ç³ãçè³ãã¡ã«çãŸããã åéºè
ã®ããªãã¯ãã®åãèãã€ããŠçè³ã®ã¢ãžãã«åããããªããšãå®ç³ãåãæ»ãããšãåºæ¥ãã</p>
<p>ãšããããå®ç³ããã«çåœã®åãžè¿ãã«åºåãããšãããåã®å®è¡å
µããã ãæãçã¯ãŸã ããªããå®å
šã«ä¿¡çšããŠããªãããã®å®ç³ãæ¬ç©ãã©ããæªããããããããå®ç³ãåãæ»ãããšããã®ããŠãœã§ãçã®åœãçãçè³ã®ä»²éãªã®ã§ã¯ãªããïŒãšçã£ãŠãããããã ãšããããã</p>
<p>ããªãã¯ãå®è¡å
µããæ¬åœã«ä¿¡é Œã§ãã人ç©ãã©ãã詊ãããã®è©Šç·Žãäžããããã詊緎ã®å
容ã¯ã... |
p00168 |
<H1>芳é³å </H1>
<p>
äžéåã®å®¶ã®è£å±±ã«ã¯èгé³å ããããŸãããã®èгé³å ãŸã§ã¯ãµããšãã 30 段ã®é段ããããäžéåã¯ãæ¯æ¥ã®ããã«èгé³å ãŸã§éã³ã«è¡ããŸããäžéåã¯é段ãïŒè¶³ã§ïŒæ®µãŸã§äžããããšãã§ããŸããéãã§ãããã¡ã«é段ã®äžãæ¹ã®çš®é¡ïŒæ®µã®é£ã°ãæ¹ã®åæ°ïŒãéåžžã«ããããããããšã«æ°ãã€ããŸããã
</p>
<p>
ããã§ãäžæ¥ã« 10 çš®é¡ã®äžãæ¹ããããã¹ãŠã®äžãæ¹ã詊ãããšèããŸããããããæ°åŠãçç¥ããŠããããªãã¯ãããªããšã§ã¯äžéåã®å¯¿åœãå°œããŠããŸãããšãç¥ã£ãŠããã¯ãã§ãã
</p>
<p>
äžéåã®èšç»ãå®çŸäžå¯èœã§ããããšãäžéåã«çŽåŸãããããã«ãéæ®µã®æ®µæ° <var>n</va... |
p02155 | <h1>Problem G: First Kiss</h1>
<h2>Problem</h2>
<p>
ãããåã®éãç·åæ ¡ã§ã¯æŒäŒã¿ã«ããããŒã²ãŒã ãè¡ãããŠããã<br>
ãã®åŠæ ¡ã®ããããŒã²ãŒã ã¯å°ãå€ãã£ãŠããããšã§æåã ã<br>
ãŸãã$N$æ¬ã®ããããŒãçšæããã$i$æ¬ç®ã®ããããŒã®é·ãã¯$a_i$ã§ããã<br>
å
æãšåŸæã亀äºã«ããããŒãé£ã¹ãã<br>
ãããé·ãã®ããããŒãäžæ°ã«é£ã¹ããšåã«åºãã£ãŠããŸãã®ã§ã$1$以äž$D$以äžã®å¥œããªé·ãã ãé£ã¹ãã<br>
圌ãã¯äžåšçšãªã®ã§ãæŽæ°é·ã§ã®ã¿ããããŒãé£ã¹ãããšãã§ããã<br>
æåã«ããããã®ããããŒãé£ã¹ã€... |
p00492 |
<H1>ã€ã«ãããŒã·ã§ã³ (Illumination) </H1>
<h2> åé¡</h2>
<p>
JOI 瀟ã®å»ºç©ã¯å³ã®ãã㪠1 蟺 1 ã¡ãŒãã«ã®æ£å
è§åœ¢ãã€ãªãåããã圢ã§ããïŒã¯ãªã¹ãã¹ãè¿ã¥ããŠããã®ã§ïŒJOI 瀟ã§ã¯å»ºç©ã®å£é¢ãã€ã«ãããŒã·ã§ã³ã§é£Ÿãä»ããããšã«ããïŒãã ãïŒå€ããèŠããªãéšåã«ã€ã«ãããŒã·ã§ã³ãæœãã®ã¯ç¡é§ãªã®ã§ïŒã€ã«ãããŒã·ã§ã³ã¯å€ãã建ç©ã®äžãéããã«è¡ãããšã®ã§ããå£é¢ã«ã®ã¿é£Ÿãä»ããããšã«ããïŒ
</p>
<center>
<p><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE2_2012-yo-... |
p00538 |
<h2>ã±ãŒãã®åãåãïŒ (Cake 2)</h2>
<p>
JOI ãããš IOI ã¡ããã¯ååã®å
効ã§ããïŒJOI ããã¯æè¿ãèåäœãã«åã£ãŠããŠïŒä»æ¥ã JOI ããã¯ã±ãŒããçŒããŠé£ã¹ãããšããã®ã ãïŒçŒãããã£ããšããã§åããããã€ãã IOI ã¡ãããæ¥ãã®ã§ 2人ã§ã±ãŒããåããããšã«ãªã£ãïŒ
</p>
<p>
ã±ãŒãã¯å圢ã§ããïŒããç¹ããæŸå°ç¶ã«åãç®ãå
¥ãïŒã±ãŒãã <var>N</var> åã®ããŒã¹ã«åãåãïŒããŒã¹ã« 1 ãã <var>N</var> ãŸã§åæèšåãã«çªå·ãã€ããïŒã€ãŸãïŒ1 ≤ <var>i</var> ≤ <var>N</var> ã«å¯ŸãïŒ<var>i</var... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.