question_id stringlengths 6 6 | content stringlengths 1 27.2k |
|---|---|
p03740 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Alice and Brown loves games. Today, they will play the following game.</p>
<p>In this game, there are two piles initially consisting of <var>X</var> and <var>Y</var> stones, respectively.
Alice and Bob ... |
p03310 | <span class="lang-en">
<p>Score : <var>600</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 make three cuts in <var>A</var> and divide it into four (non-empty) contiguous subsequences <var>B, C, D</var> and <var>... |
p00496 |
<H1>å€åº(Night Market) </H1>
<p>
倪éããã¯ïŒJOI ç¥ç€Ÿã§éãããå€ç¥ãã«è¡ãããšã«ããïŒ
</p>
<p>
JOI ç¥ç€Ÿã«åããéã«æ²¿ã£ãŠïŒ<i>N</i> åã®å€åºãéãããŠããïŒããããã®å€åºã«ã¯ïŒ1 ãã<i>N</i> ãŸã§ã®çªå·ãé çªã«ã€ããŠããïŒéãã æã®æ¥œãããšéã¶ã®ã«ãããæéãããããæŽæ°ã§æ±ºãŸã£ãŠããïŒå€åº<i>i</i> ã§éãã æã®æ¥œããã¯<i>A<sub>i</sub></i> ã§ïŒå€åº<i>i</i> ã§éã¶ã®ã«ãããæéã¯<i>B<sub>i</sub></i> ã§ããïŒ
</p>
<p>
ãŸãïŒå€ç¥ãã®ã€ãã³ããšããŠè±ç«å€§äŒãããïŒæå»<i>S</i... |
p02151 | <h1>Problem C: Phone Number</h1>
<h2>Problem</h2>
<p>
æ ªåŒäŒç€ŸãŠã¯ããã¢ã®é»è©±çªããã³ããã¯æ¯æ¥ãšãŠãé·ãé»è©±çªå·ãé»è©±ã«å
¥åããŠããŸãã<br>
ããæ¥äœãã«ãç²ãããã³ããã¯ãç²ããããé©ãã¹ãèãã«è³ããŸããã<br>
ãé»è©±ã®ãã¿ã³ã®é
眮ãäžŠã¹æ¿ãããå°ãã§ã楜ã§ããã®ã§ã¯ïŒïŒã<br>
<br>
é»è©±ã«ã¯$3 \times 3$ã§çééã«åºåãããæ£æ¹åœ¢ãããã9åã®ãã¹ã«ã¯äžŠã¹æ¿ããããšã®ã§ãã1ãã9ãŸã§ã®ãã¿ã³ããããã1ã€ãã€ã€ããŠããŸãã<br>
é»è©±çªå·ãæã€éããã³ããã¯çæã ãã䜿ã£ãŠã次ã®äºã€ã®æäœãè¡ãããšãã§ããŸãã<br>
</p>
<ul>
... |
p00029 |
<H1>English Sentence</H1>
<p>
Your task is to write a program which reads a text and prints two words. The first one is the word which is arise most frequently in the text. The second one is the word which has the maximum number of letters.
</p>
<p>
The text includes only alphabetical characters and spaces. A word i... |
p02014 | <h1>Problem K. Rough Sorting</h1>
<!--
Time Limit: 2 sec
Memory Limit: 512 MB
-->
<p>
For skilled programmers, it is very easy to implement a sorting function. Moreover, they often avoid full sorting to reduce computation time if it is not necessary. Here, we consider "rough sorting" which sorts an array except for... |
p00479 |
<H1>ã¿ã€ã« (Tile)</H1>
<h2>åé¡</h2>
<p>
JOI 髿 ¡ã§ã¯ïŒ 1 × 1 ã®æ£æ¹åœ¢ã®ã¿ã€ã«ã䜿ã£ãŠ N × N ã®æ£æ¹åœ¢ã®å£ç»ãäœãïŒæåç¥ã§å±ç€ºããããšã«ãªã£ãïŒã¿ã€ã«ã®è²ã¯ïŒèµ€ïŒéïŒé»ã® 3 çš®é¡ã§ããïŒå£ç»ã®ãã¶ã€ã³ã¯æ¬¡ã®éãã§ããïŒãŸãïŒæãå€åŽã®åšã«èµ€ã®ã¿ã€ã«ã貌ãïŒãã®å
åŽã®åšã«éã®ã¿ã€ã«ã貌ãïŒããã«ãã®å
åŽã®åšã«é»è²ã®ã¿ã€ã«ã貌ãïŒããã N × N ã®æ£æ¹åœ¢ãåãå°œãããããŸã§ç¹°ãè¿ãïŒçšããã¿ã€ã«ã®è²ã¯ïŒäžçªå€åŽã®åšããé çªã«èµ€ïŒéïŒé»ïŒèµ€ïŒéïŒé»ïŒâŠã§ããïŒ
</p>
<p>
æåç¥ãè¿ã¥ããŠããããæ¥ïŒå£ç»ã®ãã¡ K æã®ã¿ã€ã«ãã¯... |
p02444 | <h1>Rotate</h1>
<p>
Write a program which reads a sequence of integers $A = \{a_0, a_1, ..., a_{n-1}\}$ and rotate specified elements by a list of the following operation:
</p>
<ul>
<li>rotate($b, m, e$): For each integer $k$ ($0 \leq k < (e - b)$), move element $b + k$ to the place of element $b + ((k + (e - m)... |
p00183 |
<H1>äžç®äžŠã¹</H1>
<p>
3 × 3 ã®ç€é¢ã®äžç®äžŠã¹ãèããŸããããäžç®äžŠã¹ã¯ 2 人ã§è¡ã察æŠã²ãŒã ã§ããå
æ»åŸæ»ã決ããäžäººã¯é»ç³ãäžäººã¯çœç³ãæã¡ãŸããç€é¢ã«ç³ã亀äºã«äžã€ãã€çœ®ããŠããã瞊暪æãã®ããããã®æ¹åã«å
ã« 3 ã€èªåã®ç³ã䞊ã¹ã人ãåã¡ãšãªããŸãã
</p>
<p>
ç€é¢ã®æ
å ±ãå
¥åãšããåæã®å€å®ãè¡ããé»ãåã¡ã®å Žåã¯ãbããçœãåã¡ã®å Žåã¯ãwããã©ã¡ããããã£ãŠããªãå Žåã¯ãNAããšåºåããããã°ã©ã ãäœæããŠãã ããã ç€é¢ã®æ
å ±ã¯ã3è¡3åã®æååã§æ§æãããŸãããbãã¯é»ç³ããwãã¯çœç³ãã+ã(åè§ãã©
ã¹)ã¯äœã眮ãããŠããªãç¶æ³ã衚ããŸãããã ããåæ... |
p02917 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is an integer sequence <var>A</var> of length <var>N</var> whose values are unknown.</p>
<p>Given is an integer sequence <var>B</var> of length <var>N-1</var> which is known to satisfy the followi... |
p03605 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>It is September <var>9</var> in Japan now.</p>
<p>You are given a two-digit integer <var>N</var>. Answer the question: Is <var>9</var> contained in the decimal notation of <var>N</var>?</p>
</section>
<... |
p01638 |
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: { inlineMath: [['\\(','\\)']] }
});
</script>
<script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<h1 class="ndoc-heading1">Problem E: Pie Chart is as easy as
pie.</h... |
p03255 | <span class="lang-en">
<p>Score : <var>700</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke has decided to use a robot to clean his room.</p>
<p>There are <var>N</var> pieces of trash on a number line.
The <var>i</var>-th piece from the left is at position <var>x_i</var>.
We would like t... |
p01268 |
<h1><font color="#000">Problem B:</font> Matsuzaki Number</h1>
<p>
Matsuzaki ææã¯ïŒå®å®ã®ççãç ç©¶ããŠããç§åŠè
ã§ããïŒäººçïŒå®å®ïŒãã¹ãŠã®çã㯠42 ã§ãããšèšãããŠãããïŒMatsuzaki ææã¯ããã ãã§ã¯å®å®ã®ççãè§£æããã«ã¯äžååã§ãããšèããŠããïŒMatsuzaki ææã¯ïŒå®å®ã®çç㯠2 ã€ã®ãã©ã¡ãŒã¿ãããªã颿°ã§è¡šããããšèããŠããïŒ42 ã¯ãã® 1 ã€ã«éããªããšããã®ã§ããïŒ
</p>
<p>
Matsuzaki ææã®å®çŸ©ãã颿° M(<i>N</i>, <i>P</i>) ã¯ïŒ<i>N</i> ãã倧ããçŽ æ°ã... |
p00880 |
<H1><font color="#000">Problem G:</font> Malfatti Circles</H1>
<p>
The configuration of three circles packed inside a triangle such that each circle is tangent to the
other two circles and to two of the edges of the triangle has been studied by many mathematicians
for more than two centuries. Existence and uniqueness... |
p01792 |
<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
Casino</h2>
<p>
Tar... |
p00750 |
<h1><font color="#000000">Problem E:</font> The Most Powerful Spell</h1>
<!-- end en only -->
<!-- begin en only -->
<p>
Long long ago, there lived a wizard who invented a lot of "magical patterns."
In a room where one of his magical patterns is drawn on the floor,
anyone can use magic by casting magic spells!
Th... |
p01842 |
<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>
<h2>D - ã€ã³ããžãã«</h2>
<h3>Problem Statement</h3>
<... |
p02297 |
<H1>Area</H1>
<br/>
<p>
For a given polygon <var>g</var>, computes the area of the polygon.
</p>
<p>
<var>g</var> is represented by a sequence of points <var>p<sub>1</sub></var>, <var>p<sub>2</sub></var>,..., <var>p<sub>n</sub></var> where line segments connecting <var>p<sub>i</sub></var> and <var>p<sub>i+1</sub></v... |
p00300 |
<h1>æçæ°ã®ãªãŒãã£ãªã«ãŒã </h1>
<p>
æ°åŠè
ã§ããæçæ°ã®è¶£å³ã¯é³æ¥œéè³ã§ãå®¶ã«å¿µé¡ã®ãªãŒãã£ãªã«ãŒã ãäœããŸããã宿ãããªãŒãã£ãªã«ãŒã ã§ãå人ãæããŠãæ«é²ç®äŒãéããããšèããŠããŸããå
šå¡ã«ã§ããã ãè¯ãé³ã§èŽããŠãããããã®ã§ãéšå±ã®äžã®äœãæãã§é³ãèšæž¬ããå人ãã¡ã®äœçœ®ã§ã®é³ã®è³ªãèšç®ããã€ããã§ãã
</p>
<p>
èšæž¬ç¹ã¯ãäžã®å³ã®å匧ãšç·åã®äº€ç¹ã§ãã 1 çªãã 35 çªãŸã§ã®ç¹ããéžæããŸããïŒã€ã®ç·åäžã«ããç¹ã¯ããªãŒãã£ãªã·ã¹ãã ããã®è·é¢ã 100ïœïœãã 500ïœïœãŸã§ 100ïœïœãã€é¢ããŠäžŠãã§ããŸããïŒã€ã®å匧ç¶ã«ããç¹ã¯ããã£ãšãå³ã®ãã®ïŒ1 çªãã 5 çªãŸã§ã®ç¹ïŒã... |
p01141 |
<!-- begin en only -->
<h3><U>Lifeguard in the Pool</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>
Horton Moore ã¯ããŒã«ã®ç£èŠå¡ãšããŠåããŠã... |
p03486 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given strings <var>s</var> and <var>t</var>, consisting of lowercase English letters.
You will create a string <var>s'</var> by freely rearranging the characters in <var>s</var>.
You will also c... |
p01511 |
<script src="./IMAGE/varmath.js" charset="UTF-8"></script>
<H1>Three-way Branch</H1>
<p>
There is a grid that consists of <var>W \times H</var> cells. The upper-left-most cell is <var>(1, 1)</var>.
You are standing on the cell of <var>(1,1)</var> and you are going to move to cell of <var>(W, H)</var>.
You can only... |
p01004 |
<h1>Problem F: Ballon Contest</h1>
<h2>Problem</h2>
<p>ç©ºã®æ§åããã€ããšéããè²ãšãã©ãã®å€åœ©ãªç±æ°çã空ãèŠã£ãŠããã仿¥ã¯ç±æ°çã®å€§äŒã ã<!--倧äŒã®äŒå Žã«è¡ã£ãŠã¿ããšãç±æ°çã䜿ã£ãã¬ã¯ãªãšãŒã·ã§ã³ãéå¬ãããŠããã-->ç±æ°çããèœãšãããåŸç¹ä»ãããŒã«ãåå è
å
šå¡ã§åãåããããã<!--æ®å¿µãªããç³ãèŸŒã¿æéãåããŠããŸã£ãŠãããã-->ãã£ãããªã®ã§åªåè
ãäºæ³ããŠã¿ãããšã«ããã</p>
<ul>
<li>ã¬ã¯ãªãšãŒã·ã§ã³ã«ã¯N人åå ããã</li>
<li><var> N </var>人ã®åå è
ã¯ããããèªåã®äœçœ®ãäžãããããè€æ°ã®åå è
ã«åãäœ... |
p03039 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have a grid of squares with <var>N</var> rows and <var>M</var> columns. Let <var>(i, j)</var> denote the square at the <var>i</var>-th row from the top and <var>j</var>-th column from the left. We wi... |
p03193 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>N</var> rectangular plate materials made of special metal called AtCoder Alloy.
The dimensions of the <var>i</var>-th material are <var>A_i \times B_i</var> (<var>A_i</var> vertically and... |
p01454 |
<H1>Problem H: ããéæ¹é èšç»ïŒä»®ïŒ</H1>
<p>
ããªãã¯ãèªå®
ã«ããããã®ããã飌ã£ãŠããããããªããªãã®æ¥èª²ã¯ã飌ã£ãŠãããããåéã®äž
ã«å
¥ã£ãŠæŒå¯ããŠããæ§åïŒéç§°ïŒããéïŒãæ®åœ±ããããšã ãäœå¹ãã®ããããéã®äžã§ãã£ãã
ã«äžžããªã£ãŠç ãå§¿ã¯ãå®ã«æããããã
</p>
<p>
ããããã®ããã«ã¯ããéãã<i>m<sub>i</sub></i> ãšãCuteã<i>c<sub>i</sub></i> ãå®çŸ©ãããŠãããCute ãšã¯ããã®ãã1 å¹ã ããèŠããšãã®ãæãããã»ãã©ããªãã»ããªãããã»ãããããã»ããããããããªã©ãç·åçã«è©äŸ¡ããæ°å€ã§ããã倧ãããã°å€§ããã»ã©ãã®ããã¯é
... |
p03469 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>On some day in January <var>2018</var>, Takaki is writing a document. The document has a column where the current date is written in <code>yyyy/mm/dd</code> format. For example, January <var>23</var>, <... |
p02628 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>A shop sells <var>N</var> kinds of fruits, Fruit <var>1, \ldots, N</var>, at prices of <var>p_1, \ldots, p_N</var> yen per item, respectively. (Yen is the currency of Japan.)</p>
<p>Here, we will choose... |
p00615 |
<h1><font color="#000000">Problem A:</font> Traffic Analysis</h1>
<p>
There are two cameras which observe the up line and the down line respectively on the double lane (please see the following figure). These cameras are located on a line perpendicular to the lane, and we call the line 'monitoring line.' (the red lin... |
p01907 |
<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>C: Fractal Tree</h1>
<h2>åé¡</h2>
<p>
AORã€ã«ã¡ããã¯ããã©ã¯ã¿ã«ãª(èªå·±çžäŒŒçãª... |
p02782 | <span class="lang-en">
<p>Score : <var>600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is standing on a two-dimensional plane. In one operation, he can move by <var>1</var> in the positive <var>x</var>-direction, or move by <var>1</var> in the positive <var>y</var>-direction.</p>
<p... |
p03890 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p><em>Kode Festival</em> is an anual contest where the hardest stone in the world is determined. (Kode is a Japanese word for "hardness".)</p>
<p>This year, <var>2^N</var> stones participated. The hardnes... |
p02278 |
<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>Minimum Cost Sort</H1>
<p>... |
p00245 |
<H1>ã¿ã€ã ã»ãŒã«</H1>
<p>
ããè¯ãç©ããããå®ãã仿¥ãã©ããã®ã¹ãŒããŒããŒã±ããã§è¡ãããã¿ã€ã ã»ãŒã«ã§ã¯ãæ¿ããéããç¹°ãåºããããŠããŸããããäŒæŽ¥ã«ãããLLå ãããããªã¹ãŒããŒããŒã±ããã®ã²ãšã€ã§ãä»ã®ãã§ãŒã³åºãšå¯Ÿæãã¹ããå°ãå€ãã£ãã¿ã€ã ã»ãŒã«ã宿œããŠããŸããäžè¬çãªã¿ã€ã ã»ãŒã«ã§ã¯è€æ°ã®ååãåãæéã«å®ããªããã®ã§ãããLLå ã§ã¯å¯Ÿè±¡ãšãªãååã«ãã£ãŠãã¿ã€ã ã»ãŒã«ãéå§ããæéãå¥ã
ã«èšå®ãããŠããŸãã
</p>
<p>
åäºå®¶ã¯LLå ãããå©çšããå®¶åºã®äžã€ã§ãããããªåäºå®¶ã§ã¯ã奥æ§äž»å°ã®ããšãæ¬¡ã®æ¥æã«è¡ãããã¿ã€ã ã»ãŒã«ã«åããŠäœæŠäŒè°ãéããã©ã®ãããªé çªã§è²·ãç©ãããã°å€åŒãã... |
p02556 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>N</var> points on the 2D plane, <var>i</var>-th of which is located on <var>(x_i, y_i)</var>.
There can be multiple points that share the same coordinate.
What is the maximum possible Man... |
p00091 |
<H1>Blur</H1>
<p>
å³ 1 ã®ãã㪠10Ã10 ã®ãã¹ç®ã®ãåžãããããïŒ1ïŒ2ïŒã®ããã«X座æšã»Y座æšã®å€ã®å¯Ÿã§ãã¹ç®ã瀺ãããšã«ããŸãã座æšå€ã¯ 0 ããå§ãŸãæŽæ°ãšããŸããäŸãã°ãå³ 1 ã®âã®åº§æšã¯ (1, 2) ã§ãã
ãã®ãåžãã«ææãå°ããã€ããããŠæç©ãäœããŸãããããææã®æ»Žã«ã¯ã倧ããäžããå°ãã® 3 ãµã€ãºããããææã®æ»Žã®èœã¡ããã¹ç®ãäžå¿ã«å³ 1 ã®ããã«åšå²ãè²ãã€ããŸããå³ 1 ã§âãäžå¿ãâãè²ã®ã«ããç¯å²ã§ãã
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_19... |
p02106 |
<script language="JavaScript" type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
</script>
<h1>Problem I: Tree-Light</h1>
<h2>Problem</h2>
<p>ããªãã¯ããªãŒã©ã€ããšããããªãŒç¶ã®ç
§æåšå
·ãè²·ã£ãŠããã</p>
<p>ãã®ç
§æåšå
·ã«ã¯<var>n</var>åã®æ¥ç¹ãããããããã<var>0</var>ãã<var>n−1</var>ãŸã§ã®çªå·ãã€ããŠããã忥ç¹ã¯10段é... |
p03347 | <span class="lang-en">
<p>Score : <var>700</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a sequence <var>X</var> of length <var>N</var>, where every element is initially <var>0</var>. Let <var>X_i</var> denote the <var>i</var>-th element of <var>X</var>.</p>
<p>You are given a sequ... |
p00992 |
<h1>Problem C : War</h1>
<p>
AåœãšBåœãšããïŒã€ã®åœãæŠäºãããŠãããAåœã®è»äººã§ããããªãã¯<i>n</i>人ã®å
µå£«ãçããŠãBåœã®é åãå é ããäºã«ãªã£ãã
</p>
<p>
Båœã®é åã¯ïŒæ¬¡å
ã°ãªããã§è¡šãããŠãããããªããæåã«å é ããå Žæã¯äºæ¬¡å
ã°ãªããäžã®ããïŒãã¹ã§ããã
ããªããçããŠããå
µå£«ãã¡ã¯ãããããh_iã®äœåãæã£ãŠããã
ããããã®å
µå£«ã¯äœåã1ãæ¶è²»ããŠç§»åããããšãã§ããã
çŸåšãããã¹ã(a,b)ãšãããšã(a+1,b),(a-1,b),(a,b+1),(a,b-1)ã®4æ¹åãç§»åå
ãšããŠéžã¶ããšãå¯èœã§ããã
å
µå£«ã¯äœåã0ã«ãªã£ããããããåãããšãã§ã... |
p01680 |
<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>&... |
p00838 |
<H1><font color="#000">Problem C:</font> Colored Cubes</H1>
<p>
There are several colored cubes. All of them are of the same size but they may be colored
differently. Each face of these cubes has a single color. Colors of distinct faces of a cube may or
may not be the same.
</p>
<p>
Two cubes are said to be <i>identi... |
p02805 | <span class="lang-en">
<p>Score : <var>600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given are <var>N</var> points <var>(x_i, y_i)</var> in a two-dimensional plane.</p>
<p>Find the minimum radius of a circle such that all the points are inside or on it.</p>
</section>
</div>
<div class=... |
p03717 | <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> squares arranged in a row.
The squares are numbered <var>1</var>, <var>2</var>, <var>...</var>, <var>N</var>, from left to right.</p>
<p>Snuke is painting each square in red, gree... |
p03202 | <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> strings arranged in a row.
It is known that, for any two adjacent strings, the string to the left is lexicographically smaller than the string to the right.
That is, <var>S_1<S... |
p01395 |
<script src="./IMAGE/varmath.js" charset="UTF-8"></script>
<h1><font color="#000">åé¡ H </font>ãã°ãããªã</h1>
<h2>å顿</h2>
<p>ãã€ãã®ãããã¯ããªããé£ã¹ãã®ã奜ãã§ããïŒ</p>
<p><var>2T+1</var> æã®éæ¿ãé£ç¶ããŠäžŠãã§ããïŒé çªã« <var>-T, -T+1, ..., T</var> ã®çªå·ãä»ããŠããïŒãããã¯ãããã®éæ¿ã«ç±ãå ãïŒçããããªããçŒãããšããŠããïŒããªããçŒãæé ã¯ä»¥äžã®ãããªãã®ã§ããïŒ</p>
<ul>
<li>ãŸãïŒæå» <var>t=-1</... |
p02940 | <span class="lang-en">
<p>Score : <var>800</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have <var>3N</var> colored balls with IDs from <var>1</var> to <var>3N</var>.
A string <var>S</var> of length <var>3N</var> represents the colors of the balls. The color of Ball <var>i</var> is red i... |
p03652 | <span class="lang-en">
<p>Score : <var>700</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Takahashi is hosting an sports meet.
There are <var>N</var> people who will participate. These people are conveniently numbered <var>1</var> through <var>N</var>.
Also, there are <var>M</var> options of... |
p02413 |
<H1>Spreadsheet</H1><br>
<p>
Your task is to perform a simple table calculation.
</p>
<p>
Write a program which reads the number of rows <var>r</var>, columns <var>c</var> and a table of <var>r</var> × <var>c</var> elements, and prints a new table, which includes the total sum for each row and column.
</p... |
p00584 | <h1>ã³ã€ã³éã(Coin Collecting)</h1>
<p>
JOI æ°ã®ã³ã¬ã¯ã·ã§ã³ã«ãŒã ã«ã¯éåžžã«å€§ããªæºãããïŒãã®äžã«ã¯äœæãã®è²Žéãªã³ã€ã³ãããïŒæºã®æé€ãããããã«ïŒJOI æ°ã¯ã³ã€ã³ãæŽçããŠäžŠã¹ãããšã«ããïŒ
</p>
<p>
æºã¯2 000 000 001 $\times$ 2 000 000 001 ã®ãã¹ç®ã«ãªã£ãŠããïŒåã«ã¯å·Šããé ã«-1 000 000 000 ãã1 000 000 000ãŸã§ã®çªå·ãã€ããããŠããïŒè¡ã«ã¯äžããé ã«-1 000 000 000 ãã1 000 000 000 ãŸã§ã®çªå·ãã€ããããŠããïŒåã®çªå·ã$x$ïŒè¡ã®çªå·ã$y$ ã§ãããã¹ã($x, y$)... |
p02043 | <h1>G: ã€ã«ãããŒã·ã§ã³</h1>
<h2>åé¡</h2>
<p>
$1 \leq x \leq h , 1 \leq y \leq w$ ãã¿ããæ Œåç¹ $(x,y)$ ã«é»çããã.
</p>
<p>
黿ºè£
眮ã¯åº§æš $(i+0.5,j+0.5) (1 \leq i < h,1 \leq j < w, i+j$ ã¯å¶æ°ïŒã«èšçœ®ãããŠãã(14:21ä¿®æ£).
åº§æš $(i+0.5,j+0.5)$ ã«èšçœ®ãããŠãã黿ºè£
眮ããªã³ã«ãããš, åº§æš $(i,j),(i+1,j),(i,j+1),(i+1,j+1)$ ã«ååšãã $4$ ã€ã®é»çãå
ã.
</p>
<p>
$(i,j... |
p03081 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3>
<p>There are <var>N</var> squares numbered <var>1</var> to <var>N</var> from left to right.
Each square has a character written on it, and Square <var>i</var> has a letter <var>s_i</var>. Besides, there i... |
p01546 |
<h1>Sports Days 2.0</h1>
<p>
äŒæŽ¥å€§åŠéå±å°åŠæ ¡ïŒäŒæŽ¥å€§å°ïŒã¯æ¥æ¬ææ°ã®ç«¶æããã°ã©ããŒé€ææ ¡ãšããŠæåã§ããã
ãã¡ãããéåäŒã«åå ããŠãããšãã§ããã¢ã«ãŽãªãºã ã®ä¿®è¡ãæ¬ ãããªãã
ç«¶æããã°ã©ãã³ã°éšéšé·ã®ããªãã¯ãã¡ãããã®å€§äŒã§ãåå©ãããã
ä»åã¯ããç«¶æã«æ³šç®ããã
</p>
<p>
ããç«¶æãšã¯äŒæŽ¥å€§å°ã§è¡ãããŠããäŒçµ±çãªç«¶æã ã
æ ¡åºã«ã³ãŒã³ã<var>V</var>å眮ããŠããã
ã³ãŒã³ã®ããã€ãã®ãã¢ã¯çœç·ã§æãããç¢å°ã§çµã°ããŠããã
ç¢å°ã®å
ã¯çåŽã ãã«ã€ããŠãããæŽæ°ã䜵èšãããŠããã
åãã³ãŒã³ã®ãã¢ãã®è€æ°ã®ç¢å°ã«çµã°ããŠããå Žåãããã
</p>
<p>
ç«¶æè
ã¯... |
p01116 | <h3>For Programming Excellence</h3>
<!-- end en only -->
<!-- begin en only -->
<p>
A countless number of skills are required to be an excellent programmer.
Different skills have different importance degrees,
and the total programming competence is measured by
the sum of products of levels and importance deg... |
p02690 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Give a pair of integers <var>(A, B)</var> such that <var>A^5-B^5 = X</var>.
It is guaranteed that there exists such a pair for the given integer <var>X</var>.</p>
</section>
</div>
<div class="part">
<s... |
p03982 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part"><section>
<h3>Problem Statement</h3>
<p>
Kyoto University decided to build a straight wall on the west side of the university to protect against gorillas that attack the university from the west every night.
Since it i... |
p00357 | <H1>Trampoline</H1>
<p>
A plurality of trampolines are arranged in a line at 10 m intervals. Each trampoline has its own maximum horizontal distance within which the jumper can jump safely. Starting from the left-most trampoline, the jumper jumps to another trampoline within the allowed jumping range. The jumper wan... |
p00707 |
<H1>The Secret Number</H1>
<P>
Your job is to find out the secret number hidden in a matrix,
each of whose element is a digit ('0'-'9') or a letter
('A'-'Z'). You can see an example matrix in Figure 1.
</P>
<CENTER>
<DIV style="margin-bottom: 5mm"><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_sec... |
p01815 |
<h2>Escape</h2>
<p>
é ç¹ã«æ£ã®å€ãæã€ç¡åã°ã©ããäžããããã
é ç¹ã«ã¯ 1 ãã <var>N</var> ã®çªå·ãã€ããŠããã<var>i</var> çªç®ã®é ç¹ã¯ <var>w_i</var> ã®å€ãæã£ãŠããã
1 çªç®ã®é ç¹ããã¹ã¿ãŒãããçŽåã«éã£ã蟺ãéãããšãã§ããªããšããå¶çŽã®ããšã§ã°ã©ãäžãç§»åããããšãã§ããã
åé ç¹ã§ã¯ïŒåããŠèšªããæã«éããã®é ç¹ãæã€å€ã®ç¹æ°ãåŸãããã
</p>
<p>
ååŸã§ããç¹æ°ã®ç·åã®æå€§å€ãæ±ããã
</p>
<h3>Constraints</h3>
<ul>
<li><var>1 ≤ N ≤ 100000</var></li... |
p03828 | <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>.
Find the number of the positive divisors of <var>N!</var>, modulo <var>10^9+7</var>.</p>
</section>
</div>
<div class="part">
<section>
<h3>Constraints</h3><ul>
<l... |
p00212 |
<H1> é«éãã¹</H1>
<p>
A åã¯é«æ ¡ã®äŒã¿ãå©çšããŠãé«éãã¹(以äžãããã¹ã )ã§äžäººæ
ãããèšç»ãç«ãŠãŠããŸãããŸããA åã¯äžçªè¡ã£ãŠã¿ããçºãéžãã§ãããç®çå°ã«ããŸãããæ¬¡ã«åºçºå°ããç®çå°ãŸã§ãã¹ãä¹ãç¶ãã§ããã«ãŒããæ±ºããªããã°ãªããŸãããä¹ãç¶ãããããšãã¯ããã¹ãéããŠããå¥ã®ãã¹ã«ä¹ãæããã®ã§ãããããã®ãã¹ã®ä¹è»åžãå¿
èŠã«ãªããŸãã
</p>
<p>
A åã¯èŠªæã®ãããããããã¹ã®å²åŒåžãäœæãããããŸããã ãã®åžã 1 æäœ¿ããšä¹è»åž 1 æãåé¡ã§è³Œå
¥ã§ããŸããäŸãã°ãå³ 1 ã®åºçºå°5ããç®çå°1ãžè¡ãå Žåã«ã¯ã5â4â6â2â1ãš5â3â1ã®äºã€ã®çµè·¯ãèããããŸã... |
p00642 |
<H1><font color="#000000">Problem F:</font> Ben Toh</H1>
<p>
As usual, those who called wolves get together on 8 p.m. at the supermarket. The thing they want is only one, a box lunch that is labeled half price. Scrambling for a few discounted box lunch, they fiercely fight every day. And those who are blessed by hung... |
p01950 |
<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... |
p02385 |
<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>Dice III</h1><br>
<p>
Wr... |
p01403 |
<h2>
Problem F: Farey Sequence
</h2>
<p>
slipã¯æ°åãçºããã®ã奜ãã§ããã
ãã¡ã€ã«ãããŠã³ããŒãããŠãããšãã®ãæ®ãæéãçºããŠããã ãã§ãæéãæœ°ããã»ã©ã§ããã
ãããªslipãå人ããé¢çœãæ°åãæããããã
ãã®æ°åã®å®çŸ©ã¯ä»¥äžã®ãšããã§ããã
</p>
<p>
äžè¬é
ã<i>F<sub>n</sub></i>ãšè¡šããã
<i>F<sub>n</sub></i>ãšã¯ã<i>n</i>以äžã®åæ¯ãæã€0以äž1以äžã®ãã¹ãŠã®çŽåãããåæ°(æ¢çŽåæ°)ãå°ããªé ãã䞊ã¹ããã®ã§ããã
ãã ããæŽæ°0ã1ã¯ããããåæ°0/1ã1/1ãšããŠæ±ãããã
</p>
<p>
ã€ãŸ... |
p01053 |
<h1>Lucky Number</h1>
<h2>Problem</h2>
<p>
0 ãã <var>N</var>-1 ãŸã§ã®æ°åããããŸãã <var>M</var>+1æ¥éã®ã©ãããŒãã³ããŒã以äžã®æ¹æ³ã§éžã³ãããšæããŸãã æåã®æ¥ã«ã©ãããŒãã³ããŒãã©ã³ãã ã«æ±ºããŸãã <var>i</var>æ¥åŸã®ã©ãããŒãã³ããŒã <var>A</var> ãïŒ<var>i</var>+1ïŒæ¥åŸã®ã©ãããŒãã³ããŒã <var>B</var> ãšãããšã
</p>
<pre>
<var>B</var> = ( <var>A</var> + <var>j</var> ) % <var>N</var>
ïŒãã ã <var>j<... |
p03594 | <span class="lang-en">
<p>Score : <var>700</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.
We will represent the square at the <var>i</var>-th row from the top and <var>j</var>-th column from the left as <var>(i,\ j)</... |
p03701 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are taking a computer-based examination. The examination consists of <var>N</var> questions, and the score allocated to the <var>i</var>-th question is <var>s_i</var>. Your answer to each question w... |
p02813 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have two permutations <var>P</var> and <var>Q</var> of size <var>N</var> (that is, <var>P</var> and <var>Q</var> are both rearrangements of <var>(1,~2,~...,~N)</var>).</p>
<p>There are <var>N!</var> ... |
p01696 |
<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>
<!-- begin en only -->
<!--<h3... |
p00984 | <h2>Halting Problem</h2>
<p>
A unique law is enforced in the Republic of Finite Loop. Under the law, programs that never halt are regarded as viruses. Releasing such a program is a cybercrime. So, you want to make sure that your software products always halt under their normal use.
</p>
<p>
It is widely known tha... |
p03351 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Three people, A, B and C, are trying to communicate using transceivers.
They are standing along a number line, and the coordinates of A, B and C are <var>a</var>, <var>b</var> and <var>c</var> (in meter... |
p02110 |
<script language="JavaScript" type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
</script>
<h1>Problem M: Settler</h1>
<h2>Problem</h2>
<p>
äºæ¬¡å
å¹³é¢äžã«<var>N</var>åã®ç©ºãå°ãããã空ãå°ã«ã¯ãããã1ãã<var>N</var>ãŸã§ã®çªå·ãå²ãæ¯ãããŠãããã©ã®ç©ºãå°ããšãŠãå°ããã®ã§ãç¹ãšã¿ãªãããšãã§ããã<var>i</var>çªç®ã®ç©ºãå°ã¯(<var>x<sub>... |
p00087 |
<H1>æªçè
ã®æ°åŒ</H1>
<p>å士 : ããŒã¿ãŒåãã€ãã«ãã£ããã</p>
<p>ããŒã¿ãŒ : ãŸãã§ãããä»åºŠã¯ã©ããªãã ããªãçºæã§ããã</p>
<p>å士 : ã€ãã«æ°åŒãèšç®æ©ã§åŠçããç»æçãªæ¹æ³ãæãã€ãããã ããã®è¡šãã¿ãŠãããã
</p>
<center>
<table border=1>
<tr><td width=200 align=center>éåžžã®èšæ³</td><td width=200 align=center>å士ã®ãç»æçãªãèšæ³</td></tr>
<tr><td>1 + 2</td><td>1 2 +</td></tr>
<tr><td>3 * 4 + 7</td><td>... |
p02540 | <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> cities on a 2D plane. The coordinate of the <var>i</var>-th city is <var>(x_i, y_i)</var>. Here <var>(x_1, x_2, \dots, x_N)</var> and <var>(y_1, y_2, \dots, y_N)</var> are both permua... |
p02055 | <h2>D: Two Colors Sort</h2>
<h3>åé¡</h3>
<p>umg åã¯æ£æ©äžã« <var> 1,2, ... ,N </var> ã䞊ã³å€ããŠã§ããé·ã <var>N</var> ã®æ°å <var> P_1, P_2, ..., P_N </var> ãèŠã€ããŸããã</p>
<p>umg åã¯äžæè°ãªåã䜿ãããšã§ãåãè²ã«å¡ãããç°ãªãæ°ãäºã€éžãã§å Žæã亀æããããšãã§ããŸãã</p>
<p>umg åã¯ãæ°åã«å«ãŸããæ°ã®ãã¡ <var>R</var> åãèµ€ã«ãæ®ãã® <var>N-R</var> åãéã«å¡ãããšã§æ°åãæé ã«äžŠã³æ¿ããããããã«ããããšèããŸããã</p>
<p>um... |
p00068 |
<H1>茪ãŽã </H1>
<p>
<var>n</var> æ¬ã®éãå¹³æ¿äžã®åº§æš <var>P<sub>1</sub></var> (<var>x<sub>1</sub></var>, <var>y</sub>1</sub></var>), <var>P<sub>2</sub></var> (<var>x<sub>2</sub></var>, <var>y<sub>2</sub></var>), <var>P<sub>3</sub></var> (<var>x<sub>3</sub></var>, <var>y<sub>3</sub></var>),..., <var>P<sub>n</sub></var> (<var>x<... |
p00592 |
<H1>Boring Commercial</H1>
<p>
Now it is spring holidays. A lazy student has finally passed all final examination, and he decided to just kick back and just watch TV all day. Oh, his
only source of entertainment is watching TV. And TV commercial, as usual, are
a big nuisance for him. He can watch any thing on ... |
p02405 | <H1>Print a Chessboard</H1>
<p>
Draw a chessboard which has a height of <var>H</var> cm and a width of <var>W</var> cm. For example, the following figure shows a chessboard which has a height of 6 cm and a width of 10 cm.
</p>
<pre>
#.#.#.#.#.
.#.#.#.#.#
#.#.#.#.#.
.#.#.#.#.#
#.#.#.#.#.
.#.#.#.#.#
</pre>
<p>
Note ... |
p00438 |
<H1>éåŠçµè·¯</H1>
<h2>åé¡</h2>
<p>
倪éåã®äœãã§ããJOIåžã¯ïŒååæ¹åã«ãŸã£ããã«äŒžã³ã a æ¬ã®éè·¯ãšïŒæ±è¥¿æ¹åã«ãŸã£ããã«äŒžã³ã b æ¬ã®éè·¯ã«ããïŒç¢ç€ã®ç®ã®åœ¢ã«åºåããããŠããïŒ
</p>
<p>
ååæ¹åã® a æ¬ã®éè·¯ã«ã¯ïŒè¥¿ããé ã« 1, 2, ... , a ã®çªå·ãä»ããããŠããïŒãŸãïŒæ±è¥¿æ¹åã® b æ¬ã®éè·¯ã«ã¯ïŒåããé ã« 1, 2, ... , b ã®çªå·ãä»ããããŠããïŒè¥¿ãã i çªç®ã®ååæ¹åã®éè·¯ãšïŒåãã j çªç®ã®æ±è¥¿æ¹åã®éè·¯ã亀ãã亀差ç¹ã (i, j) ã§è¡šãïŒ
</p>
<p>
倪éåã¯ïŒäº€å·®ç¹ (1, 1) ã®è¿ãã«äœãã§ããïŒäº€å·®ç¹ (a, b) ... |
p01679 |
<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>Y... |
p03644 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Takahashi loves numbers divisible by <var>2</var>.</p>
<p>You are given a positive integer <var>N</var>. Among the integers between <var>1</var> and <var>N</var> (inclusive), find the one that can be di... |
p02956 | <span class="lang-en">
<p>Score : <var>600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have a set <var>S</var> of <var>N</var> points in a two-dimensional plane. The coordinates of the <var>i</var>-th point are <var>(x_i, y_i)</var>. The <var>N</var> points have distinct <var>x</var>-c... |
p01383 |
<div>
<h1 class="title">åé¡ H : ãã£ãã·ã¥æŠç¥</h1>
<p>ä»ïŒGââgle Code Jam ã®å°åºå€§äŒãå§ãŸãããšããŠããïŒ
æãå³åã®åžã«åº§ã£ãŠããç·ã® ID 㯠lyrically ãšèšããããïŒ
æ±äº¬å€§åп代ã®èšæ¶ã«ïŒäŒŒããã㪠ID ã®ä»²éãå±
ãèŠãããããïŒåã®ä»²éã¯äžäººæ®ããçŸå°å¥³ã ã£ãã¯ãã ïŒ</p>
<p>åã®èšæ¶ã®äžã® lyrically ã¯ïŒã¢ã«ãŽãªãºã ã®åãå®è£
ã®åãããªããïŒ
æ°åã§åé¡ã«æ£è§£ããããšã«ãå®è©ããã£ãïŒ
äŸãã°ïŒèšç®éãå€å°æªãããã°ã©ã ã§ãïŒäžæãªå®è£
ãããããšã§é«éã«ãïŒ
æ£è§£ãšãããããªããšãåŸæãšããŠããïŒ</p>
<p>ããã°ã©ã ãé«éã«... |
p01229 |
<h1><font color="#000">Problem G:</font>ãšããžãŒã»ãã©ã³ã¹ããŒã¿ãŒ</h1>
<p>
ãšããç ç©¶æã§ïŒ
ãšãã«ã®ãŒäŒéçšã®åªäœã®éçºãããŠããïŒ
ãã®åªäœã¯å³3ã«ç€ºããããªç¹æ®ãªç©è³ªãããªã
ããªããŒæ§é ããªããŠããïŒ
</p>
<center>
<table>
<tr>
<td>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE2_energy"
alt="ãšãã«ã®ãŒäŒéçšåªäœã®æ§é ïŒ">
</td>
</tr>
<tr>
... |
p03214 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3>
<p>Niwango-kun is an employee of Dwango Co., Ltd.<br/>
One day, he is asked to generate a thumbnail from a video a user submitted.<br/>
To generate a thumbnail, he needs to select a frame of the video acc... |
p01803 |
<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>Airport Codes</u></h3>
... |
p00711 |
<H1><font color="#000">Problem B:</font> Red and Black</H1>
<P>
There is a rectangular room, covered with square tiles. Each tile is
colored either red or black. A man is standing on a black tile.
From a tile, he can move to one of four adjacent tiles. But he can't
move on red tiles, he can move only on black tiles... |
p00341 |
<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>
ã¢ã€ã
æŸéåäŒã®æè²çªçµ(æè²)ã§ã¯... |
p03994 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Mr. Takahashi has a string <var>s</var> consisting of lowercase English letters.
He repeats the following operation on <var>s</var> exactly <var>K</var> times.</p>
<ul>
<li>Choose an arbitrary letter on... |
p02686 | <span class="lang-en">
<p>Score : <var>600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>A <strong>bracket sequence</strong> is a string that is one of the following:</p>
<ol>
<li>An empty string;</li>
<li>The concatenation of <code>(</code>, <var>A</var>, and <code>)</code> in this order, ... |
p01100 |
<h3>Gift Exchange Party</h3>
<p>
A gift exchange party will be held at a school in TKB City.
</p>
<p>
For every pair of students who are close friends, one gift must be given from one to the other at this party, but not the other way around.
It is decided in advance the gift directions, that is, which student of ea... |
p01550 |
<h1>åé¡å</h1>
<p>ä» <var>n</var> æã®æ°åãæžãããã«ãŒãããããŸãããããã®äžéšãŸãã¯å
šéšãé©åœã«äžŠã¹ãŠæ°åãäœãããšãèããŸãããã®æäœãããæ°åãå
šãŠè¶³ããæ°ãæ±ããŠäžããã
</p>
<p>äŸãã°ã 1 ãš 2 ããã£ãããäœãããæ°å㯠1, 2, 12, 21 ã® 4 ã€ãªã®ã§ãå
šãŠè¶³ããæ°ã¯ 36 ã«ãªããŸãã䞊ã¹ãçµæåãæ°åãåºæ¥ãŠãéãäžŠã¹æ¹ã ãšãããå¥ã
ã«è¶³ããŸããããšãã°ã 1 ãšããã«ãŒããš 11 ãšããã«ãŒãããã£ãã䞊ã¹ãŠ 111 ã«ãªãäžŠã¹æ¹ã2éããããŸããããããå¥ã®ãã®ãšããŠè¶³ãåãããŸããã«ãŒãã®äžã«ãªãŒãã£ã³ã°ãŒãã®ã«ãŒãã¯ãããŸãããããªãŒãã£ã³ã°ãŒãã«ãªã... |
p03097 | <span class="lang-en">
<p>Score : <var>800</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given integers <var>N,\ A</var> and <var>B</var>.
Determine if there exists a permutation <var>(P_0,\ P_1,\ ...\ P_{2^N-1})</var> of <var>(0,\ 1,\ ...\ 2^N-1)</var> that satisfies all of the fol... |
p03582 | <span class="lang-en">
<p>Score : <var>1600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>For a string <var>S</var>, let <var>f(S)</var> be the lexicographically smallest cyclic shift of <var>S</var>.
For example, if <var>S = </var><code>babca</code>, <var>f(S) = </var><code>ababc</code> be... |
p03078 | <span class="lang-en">
<p>Score: <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3>
<p>The Patisserie AtCoder sells cakes with number-shaped candles.
There are <var>X</var>, <var>Y</var> and <var>Z</var> kinds of cakes with <var>1</var>-shaped, <var>2</var>-shaped and <var>3</var>-shaped ... |
p01045 |
<h1>Problem I: Hopping Mind</h1>
<h2>Problem</h2>
<p>
ããšããšã«ã«ãªã¯åãå«è¶åºã§åãå§åйã§ããã2人ã¯ãšãŠã仲ãè¯ããããæ¥ããšããããŒãã«ã²ãŒã ã§éã¶ããšã«ãªã£ãã
</p>
<p>
ã²ãŒã ã¯<var>R</var>ãã¹×<var>C</var>ãã¹ã®ç€é¢ãšãé§ãšããŠãããã®TPãçšãããç€é¢ã®åãã¹ã¯çœãé»ã®è²ãå¡ãããŠãããæåã«TPãç€é¢ã®å³äž(<var>R</var>,<var>C</var>)ã«ããã2äººã§æ¬¡ã®è¡åã亀äºã«è¡ããTPã®çŸåšã®äœçœ®ã(<var>a</var>,<var>b</var>)ãšãããšããããããžã£ã³ãå¯èœãªäœçœ®(<var>... |
p03428 | <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> holes in a two-dimensional plane. The coordinates of the <var>i</var>-th hole are <var>(x_i,y_i)</var>.</p>
<p>Let <var>R=10^{10^{10^{10}}}</var>. Ringo performs the following ope... |
p01415 |
<H1>I: Starting Line</H1>
<p>
ICPC ã§è¯ãæçžŸãåããã«ã¯ä¿®è¡ãæ¬ ãããªãïŒããã㯠ICPC ã§åã¡ããã®ã§ïŒä»æ¥ãä¿®è¡ãããããšã«ããïŒ
</p>
<p>
仿¥ã®ä¿®è¡ã¯ïŒäžçŽç·äžã®éãèµ°ã£ãŠïŒäœåãšå€æåãé€ãããšãããã®ã§ããïŒãããã¯ä»ïŒã¹ã¿ãŒãã©ã€ã³ã«ç«ã£ãŠé·ãé·ãéãèŠæž¡ããŠããïŒ
</p>
<p>
éã®éäžã«ã¯ããã€ããã³ãžã³ã眮ãããŠããïŒãããã¯ãã³ãžã³ãé£ã¹ããšå éããããšãã§ããïŒå éããŠããªããšãã®ãããã®èµ°ãéãã¯æ¯ç§ <i>U</i> ã¡ãŒãã«ã§ãããïŒãã³ãžã³ãé£ã¹ãããšã§ïŒæåŸã®ãã³ãžã³ãé£ã¹ãŠãã <i>T</i> ç§åŸãŸã§ã¯éããæ¯ç§ <i>V</i> ã¡ãŒ... |
p02393 |
<H1>Sorting Three Numbers</H1>
<p>
Write a program which reads three integers, and prints them in ascending order.
</p>
<H2>Input</H2>
<p>
Three integers separated by a single space are given in a line.
</p>
<H2>Output</H2>
<p>
Print the given integers in ascending order in a line. Put a single space betwe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.