question_id stringlengths 6 6 | content stringlengths 1 27.2k |
|---|---|
p00899 |
<H1><font color="#000">Problem F: </font>City Merger</H1>
<p>
Recent improvements in information and communication technology have made it possible to provide municipal service to a wider area more quickly and with less costs. Stimulated by this, and probably for saving their not sufficient funds, mayors of many citi... |
p00030 |
<H1>æŽæ°ã®å</H1>
<p>
0 ãã 9 ã®æ°åããç°ãªã <var>n</var> åã®æ°ãåãåºããŠåèšã <var>s</var> ãšãªãçµã¿åããã®æ°ãåºåããããã°ã©ã ãäœæããŠãã ããã<var>n</var> åã®æ°ã¯ãã®ãã® 0 ãã 9 ãŸã§ãšããïŒã€ã®çµã¿åããã«åãæ°åã¯äœ¿ããŸãããããšãã°ã<var>n</var> ã 3 ã§ <var>s</var> ã 6 ã®ãšãã3 åã®æ°åã®åèšã 6 ã«ãªãçµã¿åããã¯ã<br/>
<br/>
1 + 2 + 3 = 6<br/>
0 + 1 + 5 = 6<br/>
0 + 2 + 4 = 6<br/>
<br/>
ã® 3 éããšãªããŸãã
</p... |
p00460 |
<H1> ãã³ãŽ</H1>
<h2>åé¡</h2>
<p>
ããããã°ã©ãã³ã°ã³ã³ãã¹ãã§ã¯,ç«¶æåŸã®æèŠªäŒã§ãã³ãŽã²ãŒã ãããç¿ãããããïŒããã,ãã®ãã³ãŽã²ãŒã ã§äœ¿ããã³ãŽã«ãŒãã¯å°ã
ç¹æ®ã§,以äžã®æ¡ä»¶ã«åŸã£ãŠäœæãããïŒ
</p>
<ul>
<li> ãã³ãŽã«ãŒã㯠N è¡ N åã®ãã¹ç®ã«åºåãããŠããïŒåãã¹ç®ã«ã¯æ£æŽæ°ãïŒã€ãã€æžãããŠããïŒãããã®æŽæ°ã¯å
šãŠç°ãªãïŒ</li>
<li> ãã¹ç®ã«æžãããŠããæŽæ°ã¯ 1 ä»¥äž M 以äžã§ããïŒ</li>
<li> ãã³ãŽã«ãŒãã«æžãããŠããNÃNåã®æŽæ°ã®åèšã¯ S ã§ããïŒ</li>
<li> ã©ã®åãèŠããšããïŒäžããäžã«... |
p00175 |
<H1>ïŒé²æ°</H1>
<p>
10 鲿°ã¯çŸåšäœ¿ãããŠããäžè¬çãªèšæ°æ³ã§ã0ã1ã2ã3ã4ã5ã6ã7ã8ã9 ã®10 åã®èšå·ãçšããŠå
šãŠã®æ°åã衚ããŸãã
</p>
<p>
2 鲿°ã¯ã³ã³ãã¥ãŒã¿ã®äžçã§ãã䜿ãããèšæ°æ³ã§ã0 ãš1 ã®äºã€ã®èšå·ãçšããŠå
šãŠã®æ°åã衚ããŸãã
</p>
<p>
4 鲿°ã§çšããããã®ã¯ 0ã1ã2ã3 ã® 4 ã€ã®æ°åã ãã§ãã4 鲿°ã§ã¯ 0 ããé ã«æ°ãå¢ãããŠãã£ããšãã« 4 ãŸã§æ¥ããæ¬¡ã®äœã«æ¡äžããããŸãããã®ããã10 鲿°ã® 4 ã¯æ¡äžããããŠã10ããšãã衚çŸã«ãªããŸãã
</p>
<center>
<table>
<tr>
<td width="80... |
p02148 | <h1>Problem L: Tousa Tree</h1>
<h2>Problem</h2>
<p>åã¯äžæšæ¥ãå人ã®ããŠãµããäžã€ãé Œã¿äºããããããªãã§ããæšã«çå·®æ°åã食ã£ãŠèªçæ¥ããŒãã£ãŒã«äœ¿ãããã®ã ããæšã倧ããããŠäžäººã§ã¯ãšãŠãã§ããªãã®ã ãšãããããã§ãåªç§ãªããã°ã©ãã§ããåã«ãå¹ççã«æšã«çå·®æ°åã食ãããã°ã©ã ãæžããŠãããããããã ãåãšããŠãµã¯æ§ç¥ã®èŠªåã§ãããåã¯ããŠãµã®é Œã¿äºãåããããšã«ããã</p>
<p>食ãä»ãããã$N$ããŒãã®æšãäžãããããæšã®ããŒãã«ã¯$0$ãã$N-1$ãŸã§ã®çªå·ãæ¯ãããŠãããæåãæšã®ããŒãã®ç¹æ°ã¯å
šãŠ$0$ã§ãããããã°ã©ã ã¯ã以äžã®äºã€ã®ã¯ãšãªã«å¯Ÿå¿ããªãã... |
p00525 |
<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> åãåãç·(Cutting)
</H1>
<br... |
p00876 |
<H1><font color="#000">Problem C:</font> Swimming Jam</H1>
<p>
Despite urging requests of the townspeople, the municipal office cannot afford to improve many
of the apparently deficient city amenities under this recession. The city swimming pool is one
of the typical examples. It has only two swimming lanes. The Muni... |
p03759 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Three poles stand evenly spaced along a line. Their heights are <var>a</var>, <var>b</var> and <var>c</var> meters, from left to right.
We will call the arrangement of the poles <em>beautiful</em> if th... |
p01764 |
<h1>E : Sigma / Σ</h1>
<h1>Problem</h1>
<p>å°åŠçã®ã¥ããåã¯åãè¶³ãç®ã«ãåŸæäžåŸæãããã 0 以äžã®æŽæ° <em>X</em>, <em>Y</em> ã«å¯ŸããŠã<em>X</em> + <em>Y</em> ãèšç®ããã®ã«ãããæé(ç§)ãæ¬¡ã®ããã«æ±ºãŸãã</p>
<ul>
<li>1 ã®äœããé çªã«èšç®ããŠããã</li>
<li>10 鲿°è¡šèšã§ 10<sup><em>i</em></sup> äœã®èšç®ã«ã¯ <em>x<sub>i</sub></em> à <em>y<sub>i</sub></em> + <em>c<sub>i</sub></em> ç§ãããã
<ul... |
p03309 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke has an integer sequence <var>A</var> of length <var>N</var>.</p>
<p>He will freely choose an integer <var>b</var>.
Here, he will get sad if <var>A_i</var> and <var>b+i</var> are far from each othe... |
p01334 |
<h1><font color="#000">Problem B:</font> Let's JUMPSTYLE</h1>
<h2>Description</h2>
<p>èžãã®å¥œããªFã¯ïŒãšãããã³ã¹ããŒã«ã§JUMPSTYLEãšåŒã°ããããŒãã³ã¢ãªèžãã®ç·Žç¿ãããããšã«ããïŒ</p>
<p>ããã¢ã¯NÃNã®æ Œåç¶ã«ã¿ã€ã«ãæ·ãè©°ããããŠããïŒ
èžãã®ç·Žç¿ããµããŒãããããïŒåã¿ã€ã«ã«ã¯æ¬¡ã®ã¹ãããã«é£ã³ç§»ãã¹ãã¿ã€ã«ã®åº§æšãæžãããŠããïŒFã¯æ¥ã
ã®ç·Žç¿ã«ãã£ãŠåŒ·éãªéåç¥çµãæã£ãŠããïŒããã¢å
ã®ä»»æã®ã¿ã€ã«ãžé£ã³ç§»ãããšãã§ããïŒ</p>
<p>Fã¯ïŒååã«é·ãæéãã®èžããç¶ããŠããã°ïŒãã€ãå®åžžç¶æ
ã«å
¥ãïŒåãã«... |
p01123 | <!--<h2>Problem G</h2>-->
<!-- begin en only -->
<h3>Let's Move Tiles!</h3>
<!-- end en only -->
<!-- begin en only -->
<p>
You have a framed square board forming a grid of square cells.
Each of the cells is either empty or with a square tile fitting in the cell engraved with a Roman character.
You can tilt the boar... |
p01573 |
<H1><font color="#000">Problem C:</font> Complex Integer Solutions</H1>
<p>
Let <i>f</i>(<i>x</i>) = <i>a</i><sub>0</sub> + <i>a</i><sub>1</sub><i>x</i> + <i>a</i><sub>2</sub><i>x</i><sup>2</sup> + ... + <i>a<sub>d</sub>x<sup>d</sup></i> be the function where each <i>a<sub>i</sub></i> (0 ≤ <i>i</i> ≤ <i>d</i>) ... |
p01089 |
<h2>Deadlock Detection</h2>
<p>
In concurrent processing environments, a deadlock is an undesirable
situation where two or more threads are mutually waiting for others to
finish using some resources and cannot proceed further.
Your task is to detect whether there is any possibility of deadlocks
when multiple threads... |
p00732 |
<h1><font color="#000000">Problem E:</font> Twirl Around</h1>
<!-- begin en only -->
<p>
Let's think about a bar rotating clockwise as if it were a
twirling baton moving on a planar surface surrounded by a
polygonal wall (see Figure 1).
</p>
<!-- end en only -->
<!-- <img src="https://judgeapi.u-aizu.ac.jp/resources... |
p01820 |
<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>
<h3>Problem B:
Vector Field</h3>
... |
p00362 | <!--<H1>Network Charging System</H1>-->
<h1>Charging System for Network</h1>
<p>
There is a network consisting of <var>N</var> machines (sequentially numbered from 0 to <var>N</var>-1) interconnected through <var>N</var>-1 bidirectional communication cables. Any two machines can perform bidirectional communication t... |
p00698 |
<H1>
Missing Numbers
</H1>
<P>
Toshizo is the manager of a convenience store chain in Hakodate.
Every day, each of the stores in his chain sends him a table of the
products that they have sold. Toshizo's job is to compile these
figures and calculate how much the stores have sold in total.
</P>
<P>
The type of a t... |
p00677 |
<script src="./IMAGE/varmath.js" charset="UTF-8"></script>
<h1>Make KND So Fat</h1>
<h2>Problem</h2>
<p>KNDåã¯äŒæŽ¥å€§åŠã«åšç±ããåŠçããã°ã©ãã§ããã圌ã®é£äººã¯ãšãŠãè¿·æãªããšã§ç¥ãããŠãããé£äººã¯åœŒãçå
ã§ããããšãç¥ããå¿
èŠä»¥äžã«çå³ãå·®ãå
¥ããŠåœŒã倪ãããããšç»çããŠããããã®ããã«ãåœã®é£äººã§ããããªãã¯å人ãããšããçå³åŠã玹ä»ããŠããã£ãã</p>
<p>ãããããã®çå³åŠã§ã®ååã®è²©å£²ã®ä»æ¹ã¯å°ãå€ãã£ãŠããããã®è²©å£²æ¹æ³ãšã¯ãçå³ã»ãããšåŒã°ããçå³ã®çµãæ¥æ¿ããã§è²©å£²ãããšãããã®ã ãäºç®å
ã§ããã°ãã®æ¥... |
p01965 |
<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... |
p03958 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>K</var> pieces of cakes.
Mr. Takahashi would like to eat one cake per day, taking <var>K</var> days to eat them all.</p>
<p>There are <var>T</var> types of cake, and the number of the cak... |
p00227 |
<H1>ã客æ§å€§æè¬ç¥</H1>
<p>
æªå€©åãç¶ãéèã®äŸ¡æ Œãé«éš°ããäžãã»ãã³ããŒãã§ã¯ã客æ§ã«éèã®ãŸãšãè²·ãã»ãŒã«ã宿œããŠããŸãã æ¥ãããªããªãåºé ã«äžŠã°ãªãéèããæé äŸ¡æ Œã§æã«å
¥ããšãã£ãŠã åºå
ã¯ãšãŠãè³ãã£ãŠããŸãã
</p>
<p>
ããæ¥ãæŸé·å£å°ã«äœã仲è¯ã 3 人çµãã»ãã³ããŒãã®åºåãæã«è©±ã«è±ãå²ãããŠããŸãããä»åã®ã»ãŒã«ã¯ãã客æ§å€§æè¬ç¥ããšéæã£ãã ãã«ãè¢è©°ãããéèã®äžã§æãå®ããã®ãç¡æã«ãªãã®ãç®çãšãªã£ãŠããŸããåºåãèªãã§ã¿ããšãã©ããã以äžã®ãããªã»ãŒã«ã®ããã§ãã
</p>
<ul>
<li> 1 ã€ã®è¢ã«ã¯ <var>m</var> åãŸã§éè... |
p01066 |
<h1>Reflection Warp Machine</h1>
<h2>Problem</h2>
<p>
ãšããå®å®ã§ã¯ã2次å
ã®æ Œåç¹äžã«<var>n</var>åã®æãååšããå®å®äººéã¯Reflection Warp Machineã䜿ããæéãç§»åããŠããã<br>
ãã®è£
眮ã¯ãä»»æã®äœçœ®ãè§åºŠã§çŽç·ãåŒãããšãã§ããã<br>
ãã®çŽç·ã察称軞ãšããŠãçŸåšãã座æšããç·å¯Ÿç§°ã®åº§æšã«ç§»åããããšãã§ããã<br>
ãã ããæãååšããªã座æšã«ç§»åããããšã¯ã§ããªãã<br>
äžåºŠåŒããçŽç·ã¯äœåºŠã§ãå©çšã§ããã<br>
çŸåšã(<var>x<sub>0</sub></var>,<var>y<sub>0</sub></... |
p01436 |
<script type="text/javascript" src="./varmath.js" charset="UTF-8"></script>
<h2>å顿</h2>
<p>
<i>ãã¥ã¥ã¹ã</i>ã¯ãªããªãå¥çŽãçµãã§ãããªã<i>鹿ç®ãŸã©ã</i>ã«ãã³ããåãããŠïŒãœãŠã«ãžã§ã ã²ãŒã ãšç§°ããŠ<i>äœåæå</i>ãš<i>çŸæš¹ããã</i>ã®ãœãŠã«ãžã§ã ã®äžèº« (é) ã <var>W</var> å <var>H</var> 段ã®ããã«ãŒã®äžã«é ããŠããŸã£ãïŒããã§ïŒ<i>ãŸã©ã</i>ã¯<i>æå</i>ãš<i>ããã</i>ãå©ãåºãããïŒãããïŒå¥çŽãçµã°ãã«å©ããã«ã¯ããã«ãŒããã¯ã¹ã®å£ãæäœã㊠<v... |
p02133 | <h1>Problem J: Matrix</h1>
<h2>Problem</h2>
<p>
é·ã$H$ã®æ°å$A$ãšé·ã$W$ã®æ°å$B$ãäžããããã<br><br>
$H$è¡$W$åãããªãè¡å$C$ã以äžã®ããã«å®çŸ©ããã<br>
$ C_{i,j} = A_i \times B_j (1 \leq i \leq H, 1 \leq j \leq W) $ <br><br>
以äžã®åçš®é¡ã®ã¯ãšãªãåèš$Q$ååŠçããã<br>
<br>ã¯ãšãª1<br>
$1$ $a$ $b$ $v$<br>
$ A_i ( a \leq i \leq b) $ã«$v$ãå ãã <br>
<b... |
p02099 |
<h1>Problem B: GPA JANKEN</h1>
<h2>Problem</h2>
<p>
GPAãšã¯ãGalaxy Point of Aizuãã®ç¥ã§ã0ãã4ãŸã§ã®å®æ°å€ãåãã<br>
GPAãããããã¯äºäººã§è¡ãã²ãŒã ã§ãããåã
ãããããããããœãïŒã»ãïŒãã®åå³ã§äºãã«ã°ãŒããã§ããããŒã®ã©ãã奜ããªæãåºããåŸãGPAãé«ã人ãåè
ãšãªããäœã人ãæè
ãšãªããåãå Žåã¯åŒãåããšãªãã
</p>
<p>
<var>N</var> 人ã®GPAã®ããŒã¿ãäžããããã®ã§ãç·åœããæŠãããæã®ããããã®åã¡ç¹ãåºåããã<br>
ãã ããåã¡ç¹ã¯åã¡ã®æ3ãåŒãåãã®æ1ãè² ãã®æ0ãšããã
</p>
<p... |
p02563 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integer arrays <var>a_0, a_1, ..., a_{N - 1}</var> and <var>b_0, b_1, ..., b_{M - 1}</var>. Calculate the array <var>c_0, c_1, ..., c_{(N - 1) + (M - 1)}</var>, defined by <var>c_i = \... |
p02830 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given are strings <var>s</var> and <var>t</var> of length <var>N</var> each, both consisting of lowercase English letters.</p>
<p>Let us form a new string by alternating the characters of <var>S</var> a... |
p03722 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a directed graph with <var>N</var> vertices and <var>M</var> edges.
The <var>i</var>-th edge <var>(1â€iâ€M)</var> points from vertex <var>a_i</var> to vertex <var>b_i</var>, and has a weight <var... |
p03688 | <span class="lang-en">
<p>Score : <var>700</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>N</var> cats.
We number them from <var>1</var> through <var>N</var>.</p>
<p>Each of the cats wears a hat.
Cat <var>i</var> says: "there are exactly <var>a_i</var> different colors among t... |
p03372 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>"Teishi-zushi", a Japanese restaurant, is a plain restaurant with only one round counter. The outer circumference of the counter is <var>C</var> meters. Customers cannot go inside the counter.</p>
<p>Na... |
p00948 |
<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 C
Distribution Center
... |
p02975 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke has <var>N</var> hats. The <var>i</var>-th hat has an integer <var>a_i</var> written on it.</p>
<p>There are <var>N</var> camels standing in a circle.
Snuke will put one of his hats on each of the... |
p03667 | <span class="lang-en">
<p>Score : <var>1000</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>N</var> balls in a row.
Initially, the <var>i</var>-th ball from the left has the integer <var>A_i</var> written on it.</p>
<p>When Snuke cast a spell, the following happens:</p>
<ul>
<l... |
p03237 | <span class="lang-en">
<p>Score : <var>1500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p><strong>Problem F and F2 are the same problem, but with different constraints and time limits.</strong></p>
<p>We have a board divided into <var>N</var> horizontal rows and <var>N</var> vertical column... |
p04008 | <span class="lang-en">
<p>Score : <var>800</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>N</var> towns in Snuke Kingdom, conveniently numbered <var>1</var> through <var>N</var>.
Town <var>1</var> is the capital.</p>
<p>Each town in the kingdom has a <em>Teleporter</em>, a fac... |
p02076 | <style type="text/css">
blockquote {
font-family: Menlo, Monaco, "Courier New", monospace;
display: block;
margin: 10px 0 10px 30px;
font-size: 16px;
line-height: 18px;
white-space: pre;
white-space: pre-wrap;
word-break: break-all;
word-wrap: ... |
p02426 | <h1>Bit Mask</h1>
<p>
A state with $n$ flags of ON or OFF can be represented by a sequence of bits where $0, 1, ..., n-1$ th flag corresponds to 1 (ON) or 0 (OFF).
The state can be managed by the corresponding decimal integer, because the sequence of bits is a binary representation where each bit is 0 or 1.
</p>... |
p02308 |
<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>Cross Points of a Circe and a Line</H1>
<p>... |
p00335 |
<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>
ããªããå€ããŠãããã³ã±ãŒãå±ã§ã¯ã现é·ãéæ¿ã«ã... |
p02758 | <span class="lang-en">
<p>Score : <var>600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>N</var> robots numbered <var>1</var> to <var>N</var> placed on a number line. Robot <var>i</var> is placed at coordinate <var>X_i</var>. When activated, it will travel the distance of <va... |
p00765 |
<h1>Generic Poker</h1>
<!-- end en only -->
<!-- begin en only -->
<p>
You have a deck of <i>N</i> × <i>M</i> cards. Each card in the deck has a rank. The range of ranks is 1 through <i>M</i>, and the deck includes <i>N</i> cards of each rank.
</p>
<!-- end en only -->
<!-- begin en only -->
<p>
We denote a ca... |
p01877 |
<h2>F: ãã£ã¡ã - Kitsuchiri -</h2>
<h3>åé¡</h3>
<p>è¥ã¶æŸé«æ ¡äºå¹Žãžçµã®å接åéïŒãã€ã¡ãïŒããã¯æ°åãããã£ã¡ããããŠããªããã°æ°ãããŸãªãã</p>
<p>
åæŽ¥ããã«ãããšãããã£ã¡ããããæ°åãšã¯ãé·ããå¶æ°ã§å·Šå³å¯Ÿç§°ã§ããæ°åã®ããšã§ããã
ããªãã¡ãé·ã<var>N</var>(<var>N</var>ã¯å¶æ°)ã®æ°å<var>S</var>ã«ã€ããŠãæ¬¡ã®æ¡ä»¶ãæºããã°æ°å<var>S</var>ã¯ããã£ã¡ããããŠããã
</p>
<pre><var>S_1 = S_N, S_2 = S_{N − 1},</var> ... <var>, S_{N/2} =... |
p01524 |
<h1>E - ããããã</h1>
<h2>å顿</h2>
<p>
E åã¯ãããããã倧奜ãã§ãã (ã¡ãªã¿ã«ãããããã®ã«ãŒã«ã«ã€ããŠã¯<a href="http://ja.wikipedia.org/wiki/%E3%81%98%E3%82%83%E3%82%93%E3%81%91%E3%82%93">Wikipediaã®ãããããã®ããŒãž</a>ãåç
§ãã)ïŒ
ããæ¥ïŒçºå
ã§ããããã倧äŒããããšããããšãç¥ã£ã E åã¯ïŒãããããã®è
ã«èªä¿¡ããã£ãããšãããæ©éåºå Žããããšã«ããïŒ
ãšããã倧äŒåœæ¥ïŒE åãåŸ
ã¡åããŠããã®ã¯ïŒæ®éã®ãã°ãŒã»ãã§ãã»ããŒãã®ã¿ãããªãæ®éã®ãããããã§ã¯ãªãïŒ
ããå€ãã®æ... |
p03519 | <span class="lang-en">
<p>Score : <var>700</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two sequences <var>a</var> and <var>b</var>, both of length <var>2N</var>. The <var>i</var>-th elements in <var>a</var> and <var>b</var> are <var>a_i</var> and <var>b_i</var>, respectively... |
p01174 |
<H1><font color="#000">Problem D:</font> Rotation Estimation</H1>
<p>
Mr. Nod is an astrologist and has defined a new constellation. He took two photos of the
constellation to foretell a future of his friend. The constellation consists of <i>n</i> stars. The shape
of the constellation in these photos are the same, bu... |
p03149 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given four digits <var>N_1, N_2, N_3</var> and <var>N_4</var>. Determine if these can be arranged into the sequence of digits "<var>1974</var>".</p>
</section>
</div>
<div class="part">
<section... |
p01461 |
<script src="./IMAGE/varmath.js" charset="UTF-8"></script>
<H1>Multi-ending Story</H1>
<p>
You are a programmer who loves bishojo games (a sub-genre of dating simulation games).
A game, which is titled "I * C * P * C!" and was released yesterday, has arrived to you just now.
This game has multiple endings.... |
p01031 |
<h1>Problem D: Smell Searcher</h1>
<h2>Problem</h2>
<p>
廿ޥ倧åŠã§ã¯åŒ·çãªéŠããæŸã€<var>N</var>åã®å»æãäžåã«äžŠãã§ããŸãã
廿ã«ã¯1ãã<var>N</var>ã®çªå·ãé çªã«ãµãããŠããŠã<var>i</var>çªç®ã®å»æã¯åŒ·ã<var>a<sub>i</sub></var>ã®éŠããæŸã£ãŠããŸãã
</p>
<p>
ãªããåã¯ä»äºã§ããã¹ãŠã®å»æã®æŸã€éŠãã®ç·åãæ±ããããäŸé ŒãããŸããã
éŠãã®ç·åã<var>M</var>以äžã«ãªããšã倧å€ãã€ãä»äºããšã¿ãªããç¹å¥æ¯çµŠéãããããŸãã
</p>
<p>
ãã®ä»äºãè¡ãããã«ããªããåã¯ç²ŸåºŠ<... |
p00270 |
<H1>ééè·¯ç·</H1>
<p>
ããåœã®ééç¶²ã«ãèªåæ¹æãå°å
¥ããããšã«ãªããŸãããå°å
¥ã«ããã£ãŠé£ããåé¡ã®äžã€ã¯ãäžããããå笊ã§ãæå®ãããé§
ã®éãç§»åã§ãããã©ãããå€å®ããããšã§ããããããã®å笊ã«ã¯ä¹è»é§
ãšéè»é§
ãèšèŒãããŠããŸãããã®å笊ã§ã§ããã®ã¯ããä¹è»é§
ã§ä¹ã£ãŠãéè»é§
ã§éãããããšã ãã§ã¯ãªããéäžä¹è»ãéäžäžè»ãèš±ãããŠããŸãã
</p>
<p>
ãã®ééç¶²ã«ã¯S åã®é§
ãããããã®ãã¡R çµã®é§
ã¯é£ãåã£ãŠããŠãä»ã®é§
ãçµç±ããã«åæ¹åã«ééã§ç§»åããããšãã§ããŸããé£ãåã£ãé§
ãçµã¶ç·è·¯ã¯ã²ãšã€ãããããŸãããé£ãåã£ãé§
ã®éã®è·é¢ã¯ããã®ç·è·¯ã«æ²¿ã£ãŠæž¬ã£ãè·é¢ã§ããããé§
ããããé§
ãŸã§ã®... |
p01898 |
<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>A: åžåã - Taking a Seat -</h2>
<h3>ç©èª</h3>
<p>
Aåã¯ãã詊éšãåããããã«è©ŠéšäŒå Žã®æå®€ã«å
¥ã£ãã
ãã ãAåã¯ãšãŠãç¥çµè³ªãªã¿ã€ãã ã
ãã®ãããç¶æ³ã«ãã£ãŠAåã座ããããªãåžããããããããããããããªãã
ããã§ãAåã¯ããæ¡ä»¶ã... |
p00620 |
<H1><font color="#000000">Problem F:</font> Line Puzzle</H1>
<p>
ããã°ã©ãã³ã°ã§ããºã«ãè§£ããŠã¿ããã
</p>
<p>
<i>n</i> × <i>n</i> ã®æ°åãæ Œåç¶ã«äžŠãã§ãããæ°åã®ããã€ãã¯äžžã§å²ãŸããŠãããããããèµ·ç¹ãšåŒã¶ããšã«ãããããºã«ã®ã«ãŒã«ã¯ä»¥äžã®ãšããã§ããïŒ
</p>
<ul>
<li>åèµ·ç¹ããçžŠã»æšªã«é²ãïŒæ¬ã®ç·ãåŒãïŒæãã«ã¯åŒããªãïŒã</li>
<li>éã£ãæ°åã®åãèµ·ç¹ã®æ°åãšåãã«ãªãããã«ç·ã䌞ã°ãã</li>
<li>ç·ã¯æåããããŠã¯ãããªãã</li>
<li>ç·ã¯ãã§ã«åŒãããæ°åãéã... |
p01932 |
<!-- - - - - - begin nicebody - - - - - -->
<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... |
p03325 | <span class="lang-en">
<p>Score: <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3>
<p>As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length <var>N</var>, <var>a = </var>{<var>a_1, a_2, a_3, ..., a_N</var>}.<br/>
Snuke, an empl... |
p01318 |
<h1><font color="#000">Problem E:</font> Immortal Jewels</h1>
<!--
<h3><U>äžæ»ã®å®ç³</U></h3>
-->
<p>English text is not available in this practice contest.</p>
<p>ããæãã貎æãïŒããè²§ä¹ãªåœã®ããŠãã°ã§åæ¢ãªãå§«æ§ã«æã蟌ã¿çµå©ãç³ã蟌ãã ïŒãå§«æ§ã¯è²Žæã«ããæ¡ä»¶ãåºããïŒãã®æ¡ä»¶ãšã¯ãäžæ»ã®å®ç³ããšåŒã°ããŠããå®ç³ã倧éã«æã£ãŠããããšã§ãã£ãïŒäžæ»ã®å®ç³ã¯ïŒããå±±ã®ç¹å®ã®å Žæã§ããåãããšãã§ããªãéåžžã«åžå°ãªå®ç³ã§ããïŒããã倧å€å£ããããããïŒæ¡åããã«ã¯ç¹å¥... |
p02867 | <span class="lang-en">
<p>Score : <var>600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given are two integer sequences of <var>N</var> elements each: <var>A_1,...,A_N</var> and <var>B_1,...,B_N</var>.
Determine if it is possible to do the following operation at most <var>N-2</var> times (... |
p03775 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given an integer <var>N</var>.<br/>
For two positive integers <var>A</var> and <var>B</var>, we will define <var>F(A,B)</var> as the larger of the following: the number of digits in the decimal ... |
p01748 |
<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>
<p>
<var>n</var> åã®éœåžãš <var>n ... |
p00509 | <H1>åé¡ïŒ</H1>
<br/>
<p>
ãäžåŠæ ¡ã®éåäŒã§æ¬¡ã®ãããªã¯ã©ã¹å¯Ÿæã®ç«¶æãè¡ãªãããšã«ãªã£ãïŒ
åã¯ã©ã¹ããçåŸä»£è¡šã®ç·å¥³ n ãã¢<br/>
<br/>
ãã (ç·åçåŸ b<SUB>1</SUB>ïŒ å¥³åçåŸ g<SUB>1</SUB>)ïŒ (ç·åçåŸ b<SUB>2</SUB>ïŒ å¥³åçåŸ g<SUB>2</SUB>)ïŒ âŠ ïŒ (ç·åçåŸ b<SUB>n</SUB>ïŒ å¥³åçåŸ g<SUB>n</SUB>)
<br/>
<br/>
ãéžã³ïŒ
0 ãã 9 ãŸã§ã®æ°åãæžãããæãèªç±ã«éžãã§ããã
ïŒããããã®æã¯ååãªåæ°ããïŒïŒ
暪... |
p02534 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given an integer <var>K</var>.
Print the string obtained by repeating the string <code>ACL</code> <var>K</var> times and concatenating them.</p>
<p>For example, if <var>K = 3</var>, print <code>... |
p00159 |
<H1>çæ³ã®äœå</H1>
<p>
è¥æºåºŠãè¡šãææ°ãšããŠBMIïŒBody Mass IndexïŒããããŸããBMIã®å€ã¯ä»¥äžã®åŒã§èšç®ããŸãã
</p>
<center>
<p>
BMI = äœé(kg) / (身é·(m))<sup>2</sup>
</p>
</center>
<p>
BMIã®å€ãæšæºå€ã«è¿ãã»ã©ãçæ³ã®äœåããšèããããŸããããã§ãBMIã®æšæºå€ã 22 ãšããå Žåã察象è
ã®æ
å ±ãå
¥åãšããæããçæ³ã®äœåãã«è¿ãäººã®æ
å ±ãåºåããããã°ã©ã ãäœæããŠãã ããã
</p>
<p>
察象è
ã®æ°ã <var>n</var> ãšãããšãå察象è
ã«ã¯éè€ã®ãªãããã«1 ä»¥äž <var>n</var> 以... |
p02164 | <h1>Problem C: Satake likes straight</h1>
<h2>Problem</h2>
<p>
Satakeåã¯æ²ãã£ãããšãå«ãã§ãã<br/>
äŸãã°ãéçã箞ãå®¶ãæ²ãã£ã圢ãããŠããã®ã¯å«ãã§ããã峿ãå·Šæãªã©ã®è¡åããšãããšãå«ãã§ãã
</p>
<p>
ããŠãXY å¹³é¢äžã§æ®ããSatakeå㯠$N$ åã®ãåº $(X_{1},Y_{1}),(X_{2},Y_{2}), \ldots , (X_{N},Y_{N})$ ã§è²·ãç©ãããããã䜿ããé ŒãŸããŸãããåº§æš $(0, 0)$ ã«ããå®¶ãã $(1, 0)$ ã®æ¹åãåããç¶æ
ã§åºçºãããã¹ãŠã®ãåºã§è²·ãç©ãããããšãå®¶ã«åž°ããŸã... |
p02471 |
<H1>Extended Euclid Algorithm</H2>
<br/>
<p>
Given positive integers <var>a</var> and <var>b</var>, find the integer solution (<var>x</var>, <var>y</var>) to <var>ax + by = gcd(a, b)</var>, where <var>gcd(a, b)</var> is the greatest common divisor of <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<pre>
<var>a</... |
p02021 | <h2>G: åŽå (Working)</h2>
<p>ã³ãŠããã¯ãããã $N$ æ¥éãæ¯æ¥<b>åãä»¶æ°ã®</b>ä»äºãããããšã«ããã</p>
<p>$N$ æ¥éã®ãã¡ $i$ æ¥ç®ã«ã¯ä»äºã $A_i$ 件远å ãããã</p>
<p>ã³ãŠããã«ã¯ä»æºãŸã£ãŠããä»äºã¯ãªãã$N$ æ¥ç®ãŸã§ã«ãã¹ãŠã®ä»äºãçµãã£ãŠããå¿
èŠã¯ãªãã</p>
<p>äžæ¥ã§æå€§äœä»¶ã®ä»äºãã§ãããã</p>
<p>ãã ãã³ãŠããã¯åªç§ãªã®ã§ãä»äºãååšããéãäœä»¶ã§ãä»äºãããããšãã§ããã</p>
<h3>å
¥å</h3>
<p>1 è¡ç®ã«ã¯ $N$ãäžããããã</p>
<p>2 è¡ç®ã«ã¯ $N$ åã®æŽæ° $A_1, A_2, A_3, \d... |
p02888 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Takahashi has <var>N</var> sticks that are distinguishable from each other. The length of the <var>i</var>-th stick is <var>L_i</var>.</p>
<p>He is going to form a triangle using three of these sticks. ... |
p03260 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given integers <var>A</var> and <var>B</var>, each between <var>1</var> and <var>3</var> (inclusive).</p>
<p>Determine if there is an integer <var>C</var> between <var>1</var> and <var>3</var> (... |
p02922 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Takahashi's house has only one socket.</p>
<p>Takahashi wants to extend it with some number of power strips, each with <var>A</var> sockets, into <var>B</var> or more empty sockets.</p>
<p>One power str... |
p03630 | <span class="lang-en">
<p>Score : <var>700</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have a board with an <var>H \times W</var> grid.
Each square in the grid is painted in black or white. The square at the <var>i</var>-th row from the top and <var>j</var>-th column from the left is b... |
p01162 |
<H1><font color="#000">Problem I:</font> The Extreme Slalom</H1>
<p>
Automobile Company Moving has developed a new ride for switchbacks. The most impressive feature of
this machine is its mobility that we can move and turn to any direction at the same speed.
</p>
<p>
As the promotion of the ride, the company started ... |
p01498 |
<H1><font color="#000">Problem D: </font>King Slime</H1>
<p>
There is a grid of size <i>W</i> × <i>H</i> surrounded by walls. Some cells in the grid are occupied by slimes. The slimes want to unite with each other and become a "King Slime".
</p>
<p>
In each move, a slime can move to east, west, south and north... |
p01532 |
<h1> Problem B War II</h1>
<h2> ç¬¬äºæ¬¡ProblemB倧æŠ</h2>
<p>
R倧åŠã®2D奜ãã®äººãã¡ (2DRespecters)ã¯ïŒA接倧åŠã§éå¬ãããããã°ã©ãã³ã°ã®ç·Žç¿å宿ã«åå ããïŒ
ãã®ç·Žç¿å宿ã§ã¯ïŒåå è
ãã¡ãèªäœã®ããã°ã©ãã³ã°åé¡ãæã¡å¯ãïŒç·Žç¿ã«çšããïŒ
ä»å¹Žã¯ïŒ2DRespectersã®é¢ã
ã¯æè»œã«äœåã§ããBåé¡ã®äœåæ
åœè
ã«ç«åè£ããããïŒBå顿
åœè
ã®åº§ãäºãããšã«ãªã£ãïŒ
</p>
<p>
æŠãã®èå°ã¯ïŒãšããèªè²©æ©ã§ããïŒ
ãã®èªè²©æ©ã¯ïŒ90åã®ãžã¥ãŒã¹ã1çš®é¡ã ã販売ããŠããïŒãæé äŸ¡æ Œã§è³Œå
¥ã§ããããšã§æåã§ããïŒ
ãã ãïŒèªè²©æ©ã«ã¯ïŒ10åçãš100åçã®2ã€... |
p01861 |
<!--<script language="JavaScript" type="text/javascript" src="js/varmath.js" charset="UTF-8"></script>-->
<h2>D: ã¿ããã±ããŒã〠- Myampus Sequence -</h2>
<h3>ç©èª</h3>
<p>
ã¿ããã±ããŒïŒ
ãŠãïŒç°èã®åæ ¡ã«éãå°åŠäžå¹ŽçãªãïŒ
</p>
<p>
ãããªãŒïŒä»æ¥ã®ææ¥ã¯ããã°ã©ãã³ã°ã ã£ããïŒ
ã¿ããªèŠæŠããŠããã©ïŒãŸã£ã€ãã®ã«ãã«ãïŒåãå¢ãã§ã¿ã€ãã³ã°ããŠããïŒ
ãããäžäžãªããªãŒïŒ
</p>
<p>
ã«ãã«ãïŒããã°ã©ã ã宿ããŠã©ããè¡ã£ãŠããŸã£ããïŒ
ããã§... |
p00773 |
<h3>Tax Rate Changed</h3>
<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... |
p00289 |
<h1>ã¢ã«ã»ãã³æç²äœæŠ</h1>
<p>
æªçã¢ã«ã»ãã³ã¯å€§èã«ãããã«ã¬ãžã§ãŒããéã®ã·ã£ããã³ãçã¿å»ã£ããèŠéšã§ããããªãã¯ãã¢ã«ã»ãã³ã仲éã®ã³ããŠæ°ã«ã·ã£ããã³ãæž¡ãããããšããæ
å ±ãæã«å
¥ããããã ãã³ããŠæ°ã¯ã¢ã«ã»ãã³ã®ã¢ãžããŸã§åºåããªãã®ã§ãã¢ãžãã®å€ã§æž¡ãããããããªãã¯ã¢ã«ã»ãã³ãåŸ
ã¡äŒãããŠæãŸããããšã«ããããã®çºã¯å€ãåäžçºãªã®ã§ãéãè€éã«å
¥ãçµãã§ããŠãã©ã®éãäžæ¹éè¡ã«ãªã£ãŠãããã¢ã«ã»ãã³ãã¢ãžãããåãæž¡ãå ŽæãŸã§ã©ã®çµè·¯ãéãã®ãã¯ããããªããã人å¡äžè¶³ã®ãããåŸ
ã¡äŒãå Žæã¯ïŒã€ã«èšå®ããªããã°ãªããªãã
</p>
<p>
ããªãã¯ãã¢ãžããå«ãããã€ãã®å°ç¹ãéžã³ãããããã€ãª... |
p00323 |
<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>
äŒæŽ¥ç¹ç£ã®è²Žéå±ã§ããã¢ã€ã
ããŠã ããªãµã€ã¯... |
p03919 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a grid with <var>H</var> rows and <var>W</var> columns.</p>
<p>The square at the <var>i</var>-th row and <var>j</var>-th column contains a string <var>S_{i,j}</var> of length <var>5</var>.</p>
... |
p01924 |
<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>海岞ç·</h3>
<p>海岞ã«ã¯æ¯ç§æ³¢ãæŒãå¯ãã... |
p00636 |
<H1><font color="#000000">Problem 10:</font> The Last Dungeon</H1>
<p>
åè
ãã³å€ªã¯ããããæçµãã³ãžã§ã³ã®ç®åãŸã§ãã£ãŠãããããã¯ãæªã®åžçããã¢ã¹ã®ç Šã®åã«åºããéã®èéã§ãããããªã匷è
ã®ã¢ã³ã¹ã¿ãŒããããããã®çžåŒµããå®ã£ãŠããã
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_lastDangion1"><br>
<p>å³ïŒïŒèé</p>
</center>
<p>
èéã¯å³ïŒã«ç€ºãããã«ãå西ãåç¹(0, 0)ãšãã 4 ×... |
p00266 |
<H1>ã€ã
ã¢åœèªèŸå
ž</H1>
<p>
ããªãã¯ã€ã
ã¢åœã®å
¬çšèªã§ããã€ã
ã¢èªã®åœèªèŸå
žãšãã€ã
ã¢èªã®ã¢ã«ãã¡ãããïŒæåã®äžèŠ§è¡šïŒ
ãæã«å
¥ããŸãããã€ã
ã¢èªã®ã¢ã«ãã¡ãããã«ã¯N çš®é¡ã®æåããããŸããã€ã
ã¢èªã®åœèªèŸå
žã«çŸããåèªã®é çªã¯ãã€ã
ã¢èªã®ã¢ã«ãã¡ãããé ã«äžŠãã§ããŸãã
</p>
<p>
èŸå
žãèŠããšãèŒã£ãŠããã©ã®åèªãN æåã§ãããããN çš®é¡ã®æåãã²ãšã€ãã€å«ãã§ããããšãããããŸãããããã«èª¿ã¹ãŠã¿ããšãèŸå
žã«ã¯N çš®é¡ã®æåã®å¯èœãªäžŠã³æ¹ããã¹ãŠæžãããŠããããšãçºèŠããŸããã
</p>
<p>
ãã®çºèŠãããããªãã¯ããåèªãèŸå
žã®äœçªç®ã«åºãŠããããããããã«ãªããŸããããã®ç¥èãå©... |
p01027 | <h1>Problem L: WW</h1>
<h2>Problem</h2>
<p>
19XX幎ãnã€ã®åœã§é£ååœè»ãçµæããããé£ååœè»ã«å±ããååœã§ã¯ãæµè»ã®äŸµç¥ããèªåœãå®ãããã«åœå
ã«ïŒã€ä»¥äžã®æ ç¹ãäœããåšå²ãèŠæããŠãããå³ïŒã¯é£ååœã®äŸã瀺ããé·æ¹åœ¢ãååœãããã®äžã«ããåããã®åœã®æ ç¹ã衚ãã
</p>
<br>
<center>
<img width="680" src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE3_RitsCamp14Day2_WW1.png" alt="å³ïŒ"><br>
å³1
</center>
<br>
<p>
æµè»ã䟵ç¥... |
p01477 |
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], skipTags: ["script","noscript","style","textarea","code"], processEscapes: true }});
</script>
<script language="JavaScript" type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?con... |
p02172 | <h1>Problem K: Gold Rush</h1>
<h2>Problem</h2>
<p>
moritaoyåãšã¯ãã³ã³ãã¥ãŒã¿ã®ãªãã§æ®ãããŠããè¬ã®å€§åŠçã§ãã<br>
moritaoyåãæ®ãããŠããåºç»ã¯ã瞊㫠$2^H$ ãæšªã« $2^W$ ãã®å€§ããã®ããäºæ¬¡å
空é $S= \{ (p,q) \in \mathbb{Z}^2 | 0 \leq p \lt 2^H, 0 \leq q \lt 2^W \} $ ãšããŠè¡šãããŸãã<br>
moritaoyåã¯ããã€ãã®éè² æŽæ°ãèŠçŽ ãšããäºæ¬¡å
ãã¯ãã«ãæã£ãŠããŠããã®ç©ºéäžãè¶³ãç®ãçšããŠç§»åããŸãã<br>
moritaoyåã $(a,b... |
p03299 | <span class="lang-en">
<p>Score : <var>1100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let us consider a grid of squares with <var>10^9</var> rows and <var>N</var> columns. Let <var>(i, j)</var> be the square at the <var>i</var>-th column <var>(1 \leq i \leq N)</var> from the left and <v... |
p03763 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke loves "paper cutting": he cuts out characters from a newspaper headline and rearranges them to form another string.</p>
<p>He will receive a headline which contains one of the strings <var>S_1,...... |
p02871 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Setting</h3></section>
</div>
<div class="part">
<section>
<h3>Overview</h3>
<ul>
<li><strong>Concept:</strong> In this programming contest, you will run a delivery service. Customers will place orders with your shop. Each order has a unique <var>\text{ID}... |
p03333 | <span class="lang-en">
<p>Score : <var>700</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Takahashi and Aoki will play a game with a number line and some segments.
Takahashi is standing on the number line and he is initially at coordinate <var>0</var>.
Aoki has <var>N</var> segments. The <va... |
p03626 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have a board with a <var>2 \times N</var> grid.
Snuke covered the board with <var>N</var> dominoes without overlaps.
Here, a domino can cover a <var>1 \times 2</var> or <var>2 \times 1</var> square.<... |
p02934 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given is a sequence of <var>N</var> integers <var>A_1, \ldots, A_N</var>.</p>
<p>Find the (multiplicative) inverse of the sum of the inverses of these numbers, <var>\frac{1}{\frac{1}{A_1} + \ldots + \fr... |
p00909 |
<H1><font color="#000">Problem F: </font>Never Wait for Weights</H1>
<p>
In a laboratory, an assistant, Nathan Wada, is measuring weight differences between sample pieces pair by pair. He is using a balance because it can more precisely measure the weight difference between two samples than a spring scale when the sa... |
p03276 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>N</var> candles placed on a number line.
The <var>i</var>-th candle from the left is placed on coordinate <var>x_i</var>.
Here, <var>x_1 < x_2 < ... < x_N</var> holds.</p>
<p>Ini... |
p04049 | <span class="lang-en">
<p>Score : <var>600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given an undirected tree, let the distance between vertices <var>u</var> and <var>v</var> be the
number of edges on the simple path from <var>u</var> to <var>v</var>.
The diameter of a tree is the maxim... |
p02037 | <h1>A: ã¿ã€ã«è²Œã</h1>
<h2>åé¡</h2>
<p>
瞊 $h$ , 暪 $w$ ã®å€§ããã®é·æ¹åœ¢ã®å£ã«, 瞊 $a$ , 暪 $b$ ã®å€§ããã®é·æ¹åœ¢ã®ã¿ã€ã«ãåºæ¥ãã ããããã貌ããã.
</p>
<p>
ã¿ã€ã«ã貌ãéã¯ä»¥äžã®æ¡ä»¶ãæºããå¿
èŠããã.<br>
<ul>
<li>ã¿ã€ã«ãéããŠã¯ãããªã.</li>
<li>ã¿ã€ã«ãæãã«è²Œã£ãŠã¯ãããªã. ããªãã¡, ã¿ã€ã«ã®ã©ã®çžã, å£ã®ã©ã®çžã«å¯ŸããŠãå¹³è¡, ãŸãã¯åçŽã§ãã.</li>
<li>ã¿ã€ã«ã®åããå€ããªã. ããªãã¡, 瞊暪ãå
¥ãæ¿ããªã.</li>
</ul>
</p... |
p02467 |
<H1>Prime Factorization</H1>
<br/>
<p>
Factorize a given integer <var>n</var>.
</p>
<H2>Input</H2>
<pre>
<var>n</var>
</pre>
<p>
An integer <var>n</var> is given in a line.
</p>
<H2>Output</H2>
<p>
Print the given integer <var>n</var> and <span>:</span>. Then, print prime factors in ascending order. If <var>n</v... |
p00374 | <H1>Iron Bars</H1>
<p>
A boy PCK had <var>N</var> straight iron bars, which were serially indexed. Unfortunately, the first <var>M</var> bars (0 ≤ <var>M</var> ≤ <var>N</var>) among them were bent during transportation. They all suffered a perpendicular bend at one point.
</p>
<p>
He is planning to make a cub... |
p02349 |
<H1>Range Add Query (RAQ)</H1>
<p>
Write a program which manipulates a sequence <var>A</var> = {<var>a<sub>1</sub>, a<sub>2</sub>, . . . , a<sub>n</sub></var>} with the following operations:
</p>
<ul>
<li><var>add(s, t, x)</var>: add <var>x</var> to <var>a<sub>s</sub></var>, <var>a<sub>s+1</sub></var>, ..., <var>... |
p01836 |
<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>Shortest Bridge</h2>
<p>
Ther... |
p00724 |
<h1><font color="#000">Problem C:</font> Hexerpents of Hexwamp</h1>
<!-- end en only -->
<p>
Hexwamp is a strange swamp, paved with regular hexagonal dimples.
Hexerpents crawling in this area are serpents adapted to the
environment, consisting of a chain of regular hexagonal sections. Each
section fits in one dimpl... |
p02719 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given any integer <var>x</var>, Aoki can do the operation below.</p>
<p>Operation: Replace <var>x</var> with the absolute difference of <var>x</var> and <var>K</var>.</p>
<p>You are given the initial va... |
p03558 | <span class="lang-en">
<p>Score : <var>700</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Find the smallest possible sum of the digits in the decimal notation of a positive multiple of <var>K</var>.</p>
</section>
</div>
<div class="part">
<section>
<h3>Constraints</h3><ul>
<li><var>2 \leq K... |
p01565 |
<h1>Move On Dice</h1>
<p>There is a cube on a rectangle map with <var>H</var>-rows and <var>W</var>-columns grid.
Two special squares a start and a goal are marked on the map.
Initially, the cube is on the start square. Let's repeat to roll it and take it to the goal square.
Rolling the cube means to select one of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.