question_id stringlengths 6 6 | content stringlengths 1 27.2k |
|---|---|
p00923 |
<H1><font color="#000">Problem J: </font><span>C(O|W|A*RD*|S)* CROSSWORD</span> Puzzle</H1>
<p>
The first crossword puzzle was published on December 21, 1913 by Arthur Wynne. To celebrate the centennial of his great-great-grandfather's invention, John "Coward" Wynne<sup>1</sup> was struggling to make crossword puzzl... |
p00470 |
<H1>éå€çµè·¯ </H1>
<h2>åé¡</h2>
<p>
JOIãããäœãã«ããã®ããéœåžã¯ïŒååæ¹åã«ãŸã£ããã«äŒžã³ã w æ¬ã®éè·¯ãšïŒæ±è¥¿æ¹åã«ãŸã£ããã«äŒžã³ã h æ¬ã®éè·¯ã«ããïŒç¢ç€ã®ç®ã®åœ¢ã«åºåããããŠããïŒ
</p>
<p>
ååæ¹åã® w æ¬ã®éè·¯ã«ã¯ïŒè¥¿ããé ã« 1, 2, ... , w ã®çªå·ãä»ããããŠããïŒãŸãïŒæ±è¥¿æ¹åã® h æ¬ã®éè·¯ã«ã¯ïŒåããé ã« 1, 2, ... , h ã®çªå·ãä»ããããŠããïŒè¥¿ãã i çªç®ã®ååæ¹åã®éè·¯ãšïŒåãã j çªç®ã®æ±è¥¿æ¹åã®éè·¯ã亀ãã亀差ç¹ã (i, j) ã§è¡šãïŒ
</p>
<p>
JOIããã¯ïŒäº€å·®ç¹ (1, 1) ã®è¿ãã«äœãã§ããïŒäº€å·®ç¹ ... |
p00020 |
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>... |
p00535 |
<h2>ç ã®å (Sandcastle)</h2>
<h2> åé¡</h2>
<p>
JOI åã¯å®¶æãšãšãã«æµ·æ°ŽæµŽã«æ¥ãïŒããããæ³³ãã§æ³³ãç²ãã JOI åã¯ïŒæ¬¡ã¯ç æµã§ç ã®åãäœã£ãŠéãã ïŒãã°ããããŠç éã³ã«ã飜ãããšïŒJOI åã¯åãæŸçœ®ããŠãŸãæµ·ã«æ³³ãã«åãã£ãïŒ
</p>
<p>
JOI åãäœã£ãåã¯ïŒç æµã®ãã¡ã®ããé·æ¹åœ¢ã®é åã«å«ãŸããŠããïŒãã®é·æ¹åœ¢ã®é åã¯ïŒæ±è¥¿ååã«ãã¹ç®ç¶ã«åºåãããŠããïŒåãã¹ã¯ïŒJOI åãäœã£ãåã®äžéšã§ãããã¹ (以äžïŒãåãã¹ããšåŒã¶) ãããã§ãªããã¹ (以äžïŒãæŽå°ãã¹ããšåŒã¶) ã®ããããã§ããïŒããããã®åãã¹ã«ã¯ã匷床ããšåŒã°ãã 1 ä»¥äž 9 以äžã®æŽ... |
p00165 |
<H1>å®ãã</H1>
<p>
ããåœã®çæ§ã¯çŽ æ°ãšã®ã£ã³ãã«ã倧奜ãã§ãããã®åœã®é貚ã®åäœã¯ãã©ã€ã ãšãããŸãã2007 幎 11 æ 1 æ¥çŸåšã®ãã©ã€ã ã®ã¯ãã¹åã¬ãŒã㯠9973 ãšã¡ããã©çŽ æ°ã«ãªã£ãŠããã®ã§ãçæ§ã¯å€§åã³ã§ãããã®åœã§ã¯ 1/101 ãã©ã€ã ã1ãµããã©ã€ã ãšããè£å©è²šå¹£ã䜿ãããŠããŸãã
</p>
<p>
ãã®åœã®æ¿åºã¯ãåœå®¶è²¡æ¿ã®å®å®ãåœæ°ã®å𝿥œãçæ§ã®è¶£å³ãåæã«æºè¶³ãããããšãç®çã«å®ããæ¯èå
¬ç€Ÿãèšç«ããå®ããäºæ¥ãå§ããããšã«ããŸãããçŽ æ°ã倧奜ããªçæ§ã¯ãçŽ æ°ã話é¡ã«ãªãã°ããã ãã§æºè¶³ããŠãè³éããããããªããŸããããã§æ¯èå
¬ç€Ÿã¯æ¬¡ã®ãããªå®ãããèããŸããã
</p>
<u... |
p02158 | <h1>Problem J: Rings</h1>
<h2>Problem</h2>
<p>ãšããæ°Žæé€šã«äœãã€ã«ã«åã¯ããžã£ã³ããããŠ$N$åã®ãªã³ã°ããããæãããšãè€çŸãããããŸãã</p>
<ul>
<li>ã€ã«ã«åã¯åº§æš$(0,0)$ããé£ã³ã$(T,0)$ã§çæ°Žããã</li>
<li>ãžã£ã³ãã®è»éã¯æŸç©ç·ã§ããã</li>
<li>$i$çªç®ã®ãªã³ã°ã¯ããžã£ã³ãã®è»éã$(X_i,L_i)$ãš$(X_i,H_i)$ãçµã¶ç·åãšäº€ãããšããããæãããšå€å®ãããã</li>
<li>$1$åã®ãžã£ã³ãã«ã¯åéãšåãã ãã®äœåãå¿
èŠã§ããã</li>
</ul>
<p>ã€ã«ã«åã¯ãå¿
èŠã§ããã°äœåºŠã§ããžã£... |
p03319 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a sequence of length <var>N</var>: <var>A_1, A_2, ..., A_N</var>. Initially, this sequence is a permutation of <var>1, 2, ..., N</var>.</p>
<p>On this sequence, Snuke can perform the following ... |
p01324 |
<h1><font color="#000">Problem D:</font> ç¡ççŸãªåäœç³»</h1>
<pre>
京ãåã{犟äº}ãç©£ãæºãæŸãæ£ãèŒãæ¥µãææ²³æ²ãé¿å§ç¥ãé£ç±ä»ãäžå¯æè°ãç¡é倧æ°
åãåãæ¯ã糞ã応ã埮ãç¹ãæ²ã塵ãåãæžºãæŒ ãæš¡ç³ãé¡å·¡ãé èŸãç¬æ¯ã匟æãå¹é£ãå
埳ãèç©ºãæž
æµãé¿é Œè¶ãé¿æ©çŸ
ãæ¶
æ§å¯é
</pre>
<p>ããããäœãåããã ãããããããã¯å
šãŠ10ã®çޝä¹ã«ã€ããããæ°è©ã§ããã</p>
<pre>
京 = 10<sup>16</sup>, å = 10<sup>20</sup>, {犟äº} = 10<sup>24</sup>, ç©£ = 10<sup>28</sup>, æº = ... |
p03749 | <span class="lang-en">
<p>Score : <var>1600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Joisino has a bar of length <var>N</var>, which has <var>M</var> marks on it.
The distance from the left end of the bar to the <var>i</var>-th mark is <var>X_i</var>.</p>
<p>She will place several squa... |
p01774 |
<h2>C: Digital Clock / ããžã¿ã«æèš</h2>
<h3>ç©èª</h3>
<p>ãããã«ããã¯æè¿ïŒé¢šéªãåŒããŠããŸã£ãïŒããŸãã®ã ããã«ãããããåºãããªãïŒèŸããã«ããŠããå§¿ããŸãããããïŒ</p>
<p>ãããæã§æã§ä»æ¹ããªããããã«ããã¯ïŒæäžã«ããããžã¿ã«æèšã§éã¶æ¹æ³ãèãã€ããïŒäžã®å³ã®ãããªããžã¿ã«æèšã®å
ã£ãŠããæ£ã®æ¬æ°ãæ¯ç§æ¯ç§ïŒãã ã²ãããã«æ°ããã®ã§ããïŒ</p>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE2_HUPC2015_Digital"></img>
<p>äœæéããã®éã³ãç¶ããé ... |
p00866 |
<H1><font color="#000">Problem C:</font> Stopped Watches</H1>
<p>
In the middle of Tyrrhenian Sea, there is a small volcanic island called Chronus. The island
is now uninhabited but it used to be a civilized island. Some historical records imply that the
island was annihilated by an eruption of a volcano about 800 ye... |
p03067 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are three houses on a number line: House <var>1</var>, <var>2</var> and <var>3</var>, with coordinates <var>A</var>, <var>B</var> and <var>C</var>, respectively.
Print <code>Yes</code> if we pass ... |
p03437 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given positive integers <var>X</var> and <var>Y</var>.
If there exists a positive integer not greater than <var>10^{18}</var> that is a multiple of <var>X</var> but not a multiple of <var>Y</var... |
p01959 |
<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... |
p03964 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>AtCoDeer the deer is seeing a quick report of election results on TV.
Two candidates are standing for the election: Takahashi and Aoki.
The report shows the ratio of the current numbers of votes the two... |
p02676 | <span class="lang-en">
<p>Score: <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3>
<p>We have a string <var>S</var> consisting of lowercase English letters.</p>
<p>If the length of <var>S</var> is at most <var>K</var>, print <var>S</var> without change.</p>
<p>If the length of <var>S</va... |
p02226 | <h2> test </h2>
UnionFindïŒãã€ããªå
¥åïŒ |
p03821 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are an integer sequence <var>A_1,...,A_N</var> consisting of <var>N</var> terms, and <var>N</var> buttons.
When the <var>i</var>-th <var>(1 ⊠i ⊠N)</var> button is pressed, the values of the <var... |
p02733 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have a chocolate bar partitioned into <var>H</var> horizontal rows and <var>W</var> vertical columns of squares.</p>
<p>The square <var>(i, j)</var> at the <var>i</var>-th row from the top and the <v... |
p02699 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>S</var> sheep and <var>W</var> wolves.</p>
<p>If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep.</p>
<p>If the wolves will attack the she... |
p02363 |
<script src="./IMAGE/varmath.js" charset="UTF-8"></script>
<H1>All Pairs Shortest Path</H1>
<br/>
<H2>Input</H2>
<p>
An edge-weighted graph <var>G</var> (<var>V</var>, <var>E</var>).
</p>
<pre>
|<var>V</var>| |<var>E</var>|
<var>s<sub>0</sub></var> <var>t<sub>0</sub></var> <var>d<sub>0</sub></var>
<var>s<sub>1</sub>... |
p03122 | <span class="lang-en">
<p>Score : <var>1000</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p><font color="red"><strong>Red bold fonts show the difference from C1.</strong></font></p>
<p>There is an infinitely large triangular grid, as shown below.
Each point with integer coordinates contains a... |
p03088 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given an integer <var>N</var>. Find the number of strings of length <var>N</var> that satisfy the following conditions, modulo <var>10^9+7</var>:</p>
<ul>
<li>The string does not contain charact... |
p03572 | <span class="lang-en">
<p>Score : <var>1800</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Three men, A, B and C, are eating sushi together.
Initially, there are <var>N</var> pieces of sushi, numbered <var>1</var> through <var>N</var>.
Here, <var>N</var> is a multiple of <var>3</var>.</p>
<p... |
p00077 |
<H1>ã©ã³ã¬ã³ã°ã¹</H1>
<p>
æååãé£ç¶ããå ŽåãããèŠåã§æåã眮ãæãæååãçãããããšãã§ããŸããããšãã°ãAAAA ãšããæååã®å Žåã@4A ãšè¡šçŸããã° 1 æååå§çž®ãããŸãããã®èŠåã§å§çž®ãããæååãå
¥åããŠããšã®æååã«åŸ©å
ããããã°ã©ã ãäœæããŠãã ããããã ãã埩å
ããæååã«ïŒ æåã¯åºçŸããªããã®ãšããŸãã
</p>
<p>
ãŸããåæã®æååã¯è±å€§æåãè±å°æåãæ°åãèšå·ã§ãã 100 æå以å
ãé£ç¶ããæå㯠9 æå以å
ã§ãã
</p>
<H2>å
¥å</H2>
<p>è€æ°ã®æååãäžããããŸããïŒè¡ã«ïŒã€ã®æååãäžããããŸããæååã®æ°ã¯ 50 ãè¶
ããŸããã</p>... |
p00427 |
<H1></H1>
<p>
次ã®ãããªã²ãŒã ãèããïŒ 1 ãã n ãŸã§ã®æ°ã 1 ã€ãã€æžããã n æã®ã«ãŒãã k çµããïŒããã kn æã®ã«ãŒããããã·ã£ããã«ïŒããåãããšïŒããŠïŒ k æãã€ã®å±±ãäœã暪äžåã«äžŠã¹ãïŒãã®ããã«ããŠã§ãã n åã®å±±ã®å·Šãã i çªç®ã®ïŒk æã®ã«ãŒãã®ïŒå±±ããå±± i ããšåŒã¶ããšã«ããïŒ
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_2006-yo-t5-fig_base">
</center>
<br>
<p>
ã²ãŒã ã¯å±± 1 ããå§ããïŒå±±ã®äžçªäžã®ã«ãŒã 1... |
p01666 |
<h2>K - encode/decode</h2>
<p>
以äžã®ïŒæ¡ä»¶ãå
šãŠæºããæååTã®äºããè¯ããæååãšåŒã¶ããšã«ãã
<ul>
<li>Tã¯ABCDEFGHIã®9çš®é¡ã®æååãããªã</li>
<li>Täžã®é£ç¶ããïŒæåã¯æ¬¡ã®ã°ã©ãäžã§ã飿¥ããŠãã
</ul>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE2_KUPC2013_graph">
<p>ãè¯ããæååã®äŸ</p>
<ul>
<li>BEB</li>
<li>ABCDCBEFGHI</li>
</ul>
<p>ãè¯ããæååã§ã¯ãªãäŸ</p>
<ul>
<li>AC(... |
p00974 | <h3>What Goes Up Must Come Down</h3>
<p>
Several cards with numbers printed on them are lined up on the table.
</p>
<p>
We'd like to change their order so that first some are in non-decreasing order of the numbers on them, and the rest are in non-increasing order. For example, (1, 2, 3, 2, 1), (1, 1, 3, 4, 5, 9, ... |
p02949 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a directed graph with <var>N</var> vertices numbered <var>1</var> to <var>N</var> and <var>M</var> edges.
The <var>i</var>-th edge is directed from Vertex <var>A_i</var> to Vertex <var>B_i</var... |
p04034 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have <var>N</var> boxes, numbered <var>1</var> through <var>N</var>. At first, box <var>1</var> contains one red ball, and each of the other boxes contains one white ball.</p>
<p>Snuke will perform the following <var>M</var> operations,... |
p01236 |
<H1><font color="#000">Problem C:</font> Median Filter</H1>
<p>
The median filter is a nonlinear digital filter used to reduce noise in images, sounds, and other kinds of signals.
It examines each sample of the input through a <i>window</i> and then emits the <i>median</i> of the samples in the win-
dow. Roughly spea... |
p01723 |
<p>ã€ã¯ã¿åã®äœãçºã«ã¯<var>N</var>åã®å¡ãããã
ããããã®å¡ã«ã¯0ãã<var>N−1</var>ãŸã§ã®ç°ãªãçªå·ãäžããããŠãããçªå·<var>i</var>ã®å¡ãå¡<var>i</var>ãšåŒã¶ã
奜å¥å¿æºçãªã€ã¯ã¿åã¯<var>N</var>åã®å¡ã®é«ãã«èå³ãæã¡ããããã®å€§å°é¢ä¿ã衚ã衚<var>T</var>ãäœãããšã«ããã
<var>T</var>ã¯<var>N × N</var>åã®èŠçŽ ãæã¡ãåèŠçŽ <var>T<sub>i, j</sub> (0 ≤ i, j ≤ N − 1)</var>ã¯æ¬¡ã®ããã«å®çŸ©ãããã
</p>
<ul>
<li... |
p00831 |
<H1><font color="#000">Problem E:</font> Confusing Login Names</H1>
<p>
Meikyokan University is very famous for its research and education in the area of computer
science. This university has a computer center that has advanced and secure computing facilities
including supercomputers and many personal computers conne... |
p01373 |
<!-- begin en only -->
<!--<h3><U>Divide the Cake</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>
ã€ã³ãšãã³ã¯ACMå士ã«ãã£ãŠéçºããã人工ç¥... |
p01689 |
<h2>C - Dowsing Machine / ããŠãžã³ã°ãã·ãŒã³</h2>
<h3>Story</h3>
<p>äžéã§ã¯Xã ãšãYã ãšãã§éšãããããã©ãããããã®æä»£ã¯"D"ã§ããã"ãã¯ãªã³ã¢ã³ã¹ã¿ãŒD"ã¯ãç§å¯çµç€Ÿ"Rå£"ã«ãã£ãŠéçºããã"Dãã·ã³"ã䜿ã£ãŠ"Dã®ã²ãš"ãè²¡å®æ¢çŽ¢ãè¡ã倧人æ°ã²ãŒã ã§ããã</p>
<p>ãã®ã²ãŒã ã§ã¯ãæ Œåç¶ãããã®ãããã¹ã«ããDã®ã²ãšãã飿¥ããäžäžå·Šå³ã®ãã¹ãžã®ç§»åãç¹°ãè¿ãã財å®ãååšãããã¹ãžã®å°éãç®æãã ãããäžã«ã¯è²¡å®ãååšãããã¹ã1ã€ã ãããã 財å®ãååšã... |
p00132 |
<h1>ãžã°ãœãŒããºã«</h1>
<p>
åäŸãã倧人ãŸã§è³ãã¬ç³»ããºã«ã²ãŒã ãæµè¡ããŠããŸããæã
ãé
ããåãã¬ãããããºã«ã²ãŒã ãäœã£ãŠã¿ããªã§éã¶ããšã«ããŸããã
</p>
<p>
æã
ãèããã®ã¯ãžã°ãœãŒããºã«ã®ã²ãŒã ã§ãæªå®æã®éšåãåããã®ã«å¿
èŠãªããŒã¹ãéžã¶ãšãããã®ã§ããå³ 1 (a) ã¯ããºã«ã®æ ã®äŸã§ããé»ãåãŸã£ãŠããéšåãçœãæªå®æã®éšåã§ãããã®ããºã«ã宿ããã®ã«äœ¿ããããŒã¹ãå³ 1 (b) ã®ããã«äžããããŸãããã®äžãããæ ã®çœãéšåãåããããšãã§ããé»ãããŒã¹ã 1 ã€ä»¥äžéžæããŸããäŸãã°ãå³ 2 ã®éžæäŸ 1 ã®ãããªçµã¿åãããªãæ£è§£ãšãªããŸããäžæ¹ãéžæäŸ 2 ã®ãããªçµã¿åã... |
p00562 |
<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>Soccer</h1>
<p>
You are a manager of a pr... |
p00098 |
<H1>Maximum Sum Sequence II</H1>
<p>
äžããããæŽæ°ã®è¡å
</p>
<pre>
<var>a<sub>1,1</sub></var> <var>a<sub>1,2</sub></var> ... <var>a<sub>1,n</sub></var>
<var>a<sub>2,1</sub></var> <var>a<sub>2,2</sub></var> ... <var>a<sub>2,n</sub></var>
:
<var>a<sub>n,1</sub></var> <var>a<sub>n,2</sub></var> ... <var>a<sub>n, n</sub></var... |
p02230 | UF with binary input (K = 100) |
p02660 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3>
<p>Given is a positive integer <var>N</var>. Consider repeatedly applying the operation below on <var>N</var>:</p>
<ul>
<li>First, choose a positive integer <var>z</var> satisfying all of the conditions b... |
p03972 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>On an <var>xy</var> plane, in an area satisfying <var>0 †x †W, 0 †y †H</var>, there is one house at each and every point where both <var>x</var> and <var>y</var> are integers.</p>
<p>There are unpav... |
p03421 | <span class="lang-en">
<p>Score : <var>700</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Determine if there exists a sequence obtained by permuting <var>1,2,...,N</var> that satisfies the following conditions:</p>
<ul>
<li>The length of its longest increasing subsequence is <var>A</var>.</l... |
p03071 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are two buttons, one of size <var>A</var> and one of size <var>B</var>.</p>
<p>When you press a button of size <var>X</var>, you get <var>X</var> coins and the size of that button decreases by <va... |
p03564 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Square1001 has seen an electric bulletin board displaying the integer <var>1</var>.
He can perform the following operations A and B to change this value:</p>
<ul>
<li>Operation A: The displayed value is... |
p01559 |
<h1>MinimumCostPath</h1>
<p>NxNã®æ¹çŒãããã
</p>
<p><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE_mcp_grid" height="140px"><br>
(N=3ã®å Žåã®å³)
</p>
<p>飿¥ãããã¹ç®ã«ç§»åããã«ã¯ã³ã¹ãã1ãããããã ããæãã«ç§»åããããšã¯åºæ¥ãªãã
ãŸãé害ç©ããããã¹ç®ãMåããããã®ãã¹ã«å
¥ãããšã¯èš±ãããªãã
ãã¹(1, 1)ãããã¹(N, N)ã«æå°ã®ã³ã¹ãã§ç§»åããæ¹æ³ã¯äœéããããã
çãã¯å€§ãããªãããšãããããã®ã§ã1000000009(=10<sup>9</s... |
p03134 | <span class="lang-en">
<p>Score : <var>900</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>N</var> Snukes lining up in a row.
You are given a string <var>S</var> of length <var>N</var>. The <var>i</var>-th Snuke from the front has two red balls if the <var>i</var>-th character ... |
p01109 | <h3>Income Inequality</h3>
<!-- end en only -->
<!-- begin en only -->
<p>
We often compute the average as the first step
in processing statistical data.
Yes, the average is a good tendency measure of data,
but it is not always the best.
In some cases, the average may hinder the understanding
of the data.
</p>
<p>
... |
p00348 |
<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>
髿 ¡å
¥åŠåŸãããã°ã©ãã³ã°éšã«å
¥éšããã¿ã±åããã¯... |
p02375 | <H1>Range Query on a Tree II</H1>
<p>
Write a program which manipulates a weighted rooted tree $T$ with the following operations:
</p>
<ul>
<li>$add(v,w)$: add $w$ to all edges from the root to node $u$<br>
<li>$getSum(u)$: report the sum of weights of all edges from the root to node $u$<br>
</ul>
<p>
The give... |
p00718 |
<h1><font color="#000">Problem C:</font> Numeral System</h1>
<p>
Prof. Hachioji has devised a new numeral system of
integral numbers with four lowercase letters "m", "c", "x", "i"
and with eight digits "2", "3", "4", "5", "6", "7", "8", "9".
He doesn't use digit "0" nor digit "1" in this system.
</p>
<p>
The let... |
p02725 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a circular pond with a perimeter of <var>K</var> meters, and <var>N</var> houses around them.</p>
<p>The <var>i</var>-th house is built at a distance of <var>A_i</var> meters from the northmost... |
p03837 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given an undirected connected weighted graph with <var>N</var> vertices and <var>M</var> edges that contains neither self-loops nor double edges.<br/>
The <var>i</var>-th <var>(1â€iâ€M)</var> edge... |
p01220 |
<H1><font color="#000">Problem E:</font> Triangles</H1>
<p>
There is a group that paints an emblem on the ground to invite aliens every year. You are a member of
this group and you have to paint the emblem this year.
</p>
<p>
The shape of the emblem is described as follows. It is made of <i>n</i> regular triangles wh... |
p04022 | <span class="lang-en">
<p>Score : <var>1100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke got positive integers <var>s_1,...,s_N</var> from his mother, as a birthday present. There may be duplicate elements.</p>
<p>He will circle some of these <var>N</var> integers. Since he dislikes ... |
p00962 |
<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... |
p01670 |
<h2>D - Medical Inspection</h2>
<h3>Problem Statement</h3>
<p>
The government has declared a state of emergency due to the MOFU syndrome epidemic in your country. Persons in the country suffer from MOFU syndrome and cannot get out of bed in the morning. You are a programmer working for the Department of Health. You... |
p00431 |
<H1></H1>
<p>
䞡端ã«ãªã³ã°ã®ã€ããçŽãèãã.ãªã³ã°ã¯æ£æŽæ°ãä»ããŠããŠ,çŽãåºå¥ãã.çŽã®äž¡ç«¯ã®ãªã³ã°ã«ã¯ç°ãªãæ° <i>a</i>, <i>b</i> ãä»ãããã.ããã,[<i>a</i>, <i>b</i>] ãšèšè¿°ãã.è€æ°ã®çŽããã,äžæ¹ã®çŽãšä»æ¹ã®çŽã®ãªã³ã°ã«ä»ããŠããæ°ãåãå Žå,ãã®ãªã³ã°ã®ãšããã§,ãããã®çŽãã€ãªããããšãã§ããŠ,ã€ãªããŠã§ãããã®ãéãšåŒã¶ããšã«ãã.äŸãã°,[1, 3] ãš [3, 4] ãšããçŽãã㯠[1, 3, 4] ãšããéãã§ãã.çŽãšéãéåå¿ãåãæŽæ°ãä»ããŠãããªã³ã°ã®ãšããã§ã€ãªããããšãã§ãããã®ãšãã.
</p>
<p>
äŸãã°,é [1, 3... |
p00061 |
<H1>Rank Checker</H1>
<!--
<p>
æã¯2020 幎ãããœã³ã³ç²åå 2020 ã®äºéžçµæãä¿åããããŒã¿ããããŸãããã®ããŒã¿ã«ã¯ãåããŒã ã«æ¯ãããæŽççªå·ãšæ£è§£æ°ãä¿åãããŠããŸããåå è
ããŒã æ°ã¯äžæã§ãããããªãå€ãæš¡æ§ã§ãïŒäž»å¬è
ã®ãããããªèŠæã§ããããŸãïŒãæ£è§£æ°ã®å€ãã»ãããé ã« 1 äœã2 äœ ... ãšé äœãã€ããŠããããšãšããŸãã
</p>
-->
<p>
æã¯2020 幎ãããœã³ã³ç²åå 2020 ã®äºéžçµæãä¿åããããŒã¿ããããŸãããã®ããŒã¿ã«ã¯ãåããŒã ã«æ¯ãããæŽççªå·ãšæ£è§£æ°ãä¿åãããŠããŸããããã§ã¯ãæ£è§£æ°ã§é äœã決å®ãããã®ãšããæ£è§£æ°ã®å€ãã»ãããé ã« ... |
p02549 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>N</var> cells arranged in a row, numbered <var>1, 2, \ldots, N</var> from left to right.</p>
<p>Tak lives in these cells and is currently on Cell <var>1</var>. He is trying to reach Cell ... |
p00574 | <h1>æ¯èã®è±èµ°(Snake Escaping)</h1>
<p>
JOI ç ç©¶æã§ã¯<var>2^L</var> å¹ã®æ¯èã飌ã£ãŠããïŒãããã<var>0, 1, ..., 2^L - 1</var> ã®çªå·ãä»ããããŠããïŒãã¹ãŠã®æ¯èã¯é ããé ã«<var>L</var> åã®éšåã«åãããŠããïŒããããã®éšåã¯éãŸãã¯èµ€ã§ããïŒæ¯è<var>i</var> ã«å¯ŸãïŒ<var>i</var> ã2é²è¡šèšããŠ<var>i =</var> $\sum_{k=1}^{L}$<var> c_k2^{L-k} (0 \leq c_k \leq 1)</var> ãšããããšãïŒ
</p>
<ul>
<li> <var>c_k = ... |
p02119 |
<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 I: Making Pairs</... |
p00124 |
<h1>ãªãŒã°æŠã®ã¹ã³ã¢ã·ãŒã</h1>
<p>
ã¹ããŒãã®å€§äŒã«ã¯ãªãŒã°æŠãšããŒãã¡ã³ãæŠããããŸãããµãã«ãŒã®ãªãŒã°æŠã§ã¯åã»è² ã»åŒåã«ããããç¹æ°ãä»ãããã®åã¡ç¹ã§é äœãç«¶ããŸããåã¡ç¹ã¯ããããå(3ç¹)ãè² (0ç¹)ãåŒå(1ç¹)ã§ãã
</p>
<p>
ããŒã æ°ãšãªãŒã°æŠã®æçžŸãå
¥åãšããæçžŸã®è¯ãé (åã¡ç¹ã®å€ãé )ã«äžŠã¹æ¿ããããŒã åãšåã¡ç¹ãåºåããããã°ã©ã ãäœæããŠãã ãããåã¡ç¹ãåç¹ã®å Žåã¯å
¥åé ã«åºåããŠãã ããã
</p>
<H2>Input</H2>
<p>
è€æ°ã®ããŒã¿ã»ãããäžããããŸããåããŒã¿ã»ããã¯ä»¥äžã®åœ¢åŒã§äžããããŸãã
</p>
<pre>
<var>n</var... |
p01365 |
<H1><font color="#000">Problem G:</font> Camera Control</H1>
<p>
"ACM48" is one of the most popular dance vocal units in Japan. In this winter, ACM48 is
planning a world concert tour. You joined the tour as a camera engineer.
</p>
<p>
Your role is to develop software which controls the camera on a stage. For simplic... |
p03358 | <span class="lang-en">
<p>Score : <var>800</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a tree with <var>N</var> vertices numbered <var>1</var> through <var>N</var>.
The <var>i</var>-th edge connects Vertex <var>x_i</var> and <var>y_i</var>.
Each vertex is painted white or black.
... |
p00827 |
<H1><font color="#000">Problem A:</font> The Balance</H1>
<p>
Ms. Iyo Kiffa-Australis has a balance and only two kinds of weights to measure a dose of medicine.
</p>
<p>
For example, to measure 200mg of aspirin using 300mg weights and 700mg weights, she can put
one 700mg weight on the side of the medicine and three 3... |
p01735 |
<p>
Fox Ciel is developing an artificial intelligence (AI) for a game. This game is described as a game tree T with n vertices.
Each node in the game has an evaluation value which shows how good a situation is.
This value is the same as maximum value of child nodesâ values multiplied by -1. Values on leaf nodes are ev... |
p03708 | <span class="lang-en">
<p>Score : <var>900</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Nukes has an integer that can be represented as the bitwise OR of one or more integers between <var>A</var> and <var>B</var> (inclusive).
How many possible candidates of the value of Nukes's integer the... |
p03026 | <span class="lang-en">
<p>Score : <var>500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given a tree with <var>N</var> vertices <var>1,2,\ldots,N</var>, and positive integers <var>c_1,c_2,\ldots,c_N</var>.
The <var>i</var>-th edge in the tree <var>(1 \leq i \leq N-1)</var> connects... |
p03476 | <span class="lang-en">
<p>Score : <var>400</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We say that a odd number <var>N</var> is <em>similar to 2017</em> when both <var>N</var> and <var>(N+1)/2</var> are prime.</p>
<p>You are given <var>Q</var> queries.</p>
<p>In the <var>i</var>-th query,... |
p02637 | <span class="lang-en">
<p>Score : <var>1500</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Given are an integer <var>K</var> and integers <var>a_1,\dots, a_K</var>. Determine whether a sequence <var>P</var> satisfying below exists. If it exists, find the lexicographically smallest such seque... |
p03925 | <span class="lang-en">
<p>Score : <var>1300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>We have a graph with <var>N</var> vertices, numbered <var>0</var> through <var>N-1</var>. Edges are yet to be added.</p>
<p>We will process <var>Q</var> queries to add edges.
In the <var>i</var>-th <va... |
p01918 |
<link rel="stylesheet" href="css/description.css" type="text/css" />
<script language="JavaScript" type="text/javascript" src="js/varmath2017.js" charset="UTF-8"></script>
<h2>C: ä»å·çŒããã³ - Imagawayaki Man -</h2>
<h3>ç©èª</h3>
<p>ä»å·çŒããã³ã¯ãæ£çŸ©ã®ããŒããŒã§ãããé¡ã¯çŽåŸ <var>1</var> ã¡ãŒãã«ã®ä»å·çŒãïŒäž»ã«å°éºŠç²ã§ã§ããçå°ã®äžã«ãã£ã·ããšé€¡ãè©°ããŠçŒããé£ã¹ç©ã§ãããèŠãç®ã¯å圢ã§... |
p02267 |
<H1>Search I</H1>
<p>
You are given a sequence of <i>n</i> integers S and a sequence of different <i>q</i> integers T. Write a program which outputs C, the number of integers in T which are also in the set S.
</p>
<H2>Input</H2>
<p>
In the first line <i>n</i> is given. In the second line, <i>n</i> integers are give... |
p02288 |
<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>Maximum Heap</h1>
<p>
A ... |
p02772 | <span class="lang-en">
<p>Score: <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3>
<p>You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria.</p>
<p... |
p03860 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is going to open a contest named "AtCoder <var>s</var> Contest".
Here, <var>s</var> is a string of length <var>1</var> or greater, where the first character is an uppercase English letter, and the... |
p02322 | <h1>Knapsack Problem with Limitations II</h1>
<p>You have $N$ items that you want to put them into a knapsack. Item $i$ has value $v_i$, weight $w_i$ and limitation $m_i$.</p>
<p>You want to find a subset of items to put such that:</p>
<ul>
<li>The total value of the items is as large as possible.</li>
<li>The it... |
p03499 | <span class="lang-en">
<p>Score : <var>1000</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke has a rooted tree with <var>N+1</var> vertices.
The vertices are numbered <var>0</var> through <var>N</var>, and Vertex <var>0</var> is the root of the tree.
The parent of Vertex <var>i</var> <va... |
p03163 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There are <var>N</var> items, numbered <var>1, 2, \ldots, N</var>.
For each <var>i</var> (<var>1 \leq i \leq N</var>), Item <var>i</var> has a weight of <var>w_i</var> and a value of <var>v_i</var>.</p>... |
p03533 | <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>.</p>
<p>Takahashi can insert the character <code>A</code> at any position in this string any number of times.</p>
<p>Can he change <var>S</var> into <code>AKIHABARA</... |
p00036 |
<H1>å¹³é¢äžã®å³åœ¢</H1>
<p>
瞊 8ãæšª 8 ã®ãã¹ãããªãå³ 1 ã®ãããªå¹³é¢ããããŸãã
<br>
<center>
<table cellspacing=0 cellpadding=0>
<tr><td>â¡</td><td>â¡</td><td>â¡</td><td>â¡</td><td>â¡</td><td>â¡</td><td>â¡</td><td>â¡</td></tr>
<tr><td>â¡</td><td>â¡</td><td>â¡</td><td>â¡</td><td>â¡</td><td>â¡</td><td>â¡</td><td>â¡</td></tr>
<tr><td>â¡</td><td>â¡</td><td>â¡</td>... |
p00466 |
<H1>ã¬ã·ãŒã </H1>
<h2>åé¡</h2>
<p>
倪éåã¯10åã®æ¬ã賌å
¥ããïŒ
åŸæ¥ïŒ
ã¬ã·ãŒããããšã«äŸ¡æ Œã調ã¹ãããšãããïŒ
ã¬ã·ãŒãã«ã¯æ±ããããïŒ
ããæ¬ã®äŸ¡æ Œãèªã¿åããªãã£ãïŒ
ãã®æ¬ã®äŸ¡æ ŒãïŒ
10åã®ç·é¡ãšä»ã®9åã®äŸ¡æ Œããèšç®ããããšã«ããïŒ
</p>
<p>
äŸ¡æ Œãèªã¿åããªãã£ãæ¬ã®äŸ¡æ Œãåºåããããã°ã©ã ãæžãïŒ
ãªãïŒæ¬ã®äŸ¡æ Œã¯ãã¹ãŠæ£ã®æŽæ°ã§ããïŒ
ãŸãïŒæ¶è²»çšãèæ
®ããå¿
èŠã¯ãªãïŒ
</p>
<h2> å
¥å</h2>
<p>
å
¥åã¯è€æ°ã®ããŒã¿ã»ãããããªãïŒåããŒã¿ã»ããã¯ä»¥äžã®åœ¢åŒã§äžããããïŒ
</p>
<p>
åããŒã¿ã»ããã¯10è¡ãããªãïŒ1è¡ã«1ã€ãã€æ£ã®æŽæ°... |
p02908 | <span class="lang-en">
<p>Score : <var>1600</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke has permutations <var>(P_0,P_1,\cdots,P_{N-1})</var> and <var>(Q_0,Q_1,\cdots,Q_{N-1})</var> of <var>(0,1,\cdots,N-1)</var>.</p>
<p>Now, he will make new permutations <var>A</var> and <var>B</var... |
p00935 |
<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 A
Decimal Sequences</h... |
p01627 |
<h1>Problem A: 鿥18ãã£ã· 2013</h1>
<h2>Problem Statement</h2>
<p>
äŒæŽ¥å宿ã«åå äºå®ã®é«æ§»ããã¯ãå®¶ãè²§ä¹ã§ããŸããéãæã£ãŠããªãããã®ããã鿥18ãã£ã·ã䜿çšããŠããéãç¯çŽããããšããŠããã18ãã£ã·ã¯ããã1æã ãã§ãéè¡åè»ãªãã°1æ¥äžä¹ãæŸé¡ãæ¹æã®åºå
¥ããèªç±ãšããåªããã®ã§ããïŒè©³ããå©çšã«ãŒã«ã«ã€ããŠã¯çç¥ïŒã
</p>
<p>
18ãã£ã·ã®é
åã¯ãä¹ãæããè¡ãé§
ã§ã空ããŠããæéã䜿ã£ãŠããåœå°ã®ãåç£çãèŠãŠãŸãããç¹ã§ããã圌女ã¯ããã£ããã®æ©äŒãªã®ã§ãæ
ã®éäžã§ãããããªé§
ãèŠãŠåããããšèããŠããããã ããæ¬¡ã®é»è»ã«ä¹ãé
ããŠã¯å°ã... |
p01277 |
<H1><font color="#000">Problem E:</font> Symmetry</H1>
<p>
Open Binary and Object Group organizes a programming contest every year. Mr. Hex belongs to this
group and joins the judge team of the contest. This year, he created a geometric problem with its solution
for the contest. The problem required a set of points f... |
p00870 |
<H1><font color="#000">Problem G:</font> Search of Concatenated Strings</H1>
<p>
The amount of information on the World Wide Web is growing quite rapidly. In this information
explosion age, we must survive by accessing only the Web pages containing information relevant
to our own needs. One of the key technologies fo... |
p01762 |
<h1>C : Pruning / æåã</h1>
<h1>Problem</h1>
<p>ãšã«ãããã€ãããã¥ãåã®äœãã§ããå°åã¯ä»å¹Žçæã§ãã£ãã ããã«ãå®¶ã®åºã«ã¯ 1 æ¬ã®æšãçããŠãããæ¯æ¥ãããŸãã鳎ãèãæããå¢å¹
ãããŠãããããªæ°ãããã</p>
<p>åºã®æšã¯ããŸãã«ã°ã©ãçè«ã§ãããšããã®æšã®ãããªåœ¢ãããŠããããã®æšã«ã¯ããããã®èãæ¢ãŸã£ãŠããã
èã¯ãå¿
ãæã®å
端(è)ãŸãã¯æã®åããç®(é ç¹)ã«æ¢ãŸãç¿æ§ãããã ãã ããæšã®æ ¹ã«ã¯ 1 å¹ãæ¢ãŸãããšã¯ãªãã
ãã®æšã®ããæ(蟺)ãåããšããããã空åŽ(æ ¹ãšå察åŽ)ã«ããèãå
šãŠé§é€ããããšãã§ããã
ãã ããæãåãããã«ã¯ããã®æã«å¿ãã... |
p01298 |
<H1><font color="#000">Problem F:</font> Water Tank</H1>
<p>
You built an apartment. The apartment has a water tank with a capacity of <i>L</i> in order to
store water for the residents. The tank works as a buffer between the water company and the
residents.
</p>
<p>
It is required to keep the tank "not empty" at le... |
p01332 |
<h1><font color="#000">Problem L:</font> Problem L: 3ã€ã®ã·ã«ãšãã</h1>
<p>JAVA(Japan Aerospace Voyage Agency: æ¥æ¬å®å®é£è¡ç ç©¶æ©æ§)ã¯ãå®å®éçºäºæ¥ã®äžç°ãšããŠ2003å¹Žã«æ¢æ»æ©ãæã¡äžããã ãã®æ¢æ»æ©æã¡äžãã®ç®çã®äžã€ã«ãå°ææã€ã·ã«ã¯ã«æ¥è¿ãããã®è¡šé¢ç©è³ªã®ãµã³ãã«ãæ¡éããããšãããã æ§ã
ãªã¢ã¯ã·ãã³ãã«èŠèãããªããããæ¢æ»æ©ã¯ã€ã·ã«ã¯ã«å°éãããããŠã€ãã«2010幎ãå°çãžåž°éããã€ã·ã«ã¯ã®ãµã³ãã«è©Šæã®å
¥ã£ãã«ãã»ã«ãååããããšã«æåããã</p>
<p>æ±äº¬å€§åŠã忥ããJAVAã«å°±è·ãããããŸãåã¯ãã... |
p00173 |
<H1>ãåã屿·</H1>
<p>
äŒæŽ¥åŠåé«çåŠæ ¡ã§ã¯ãæ¯å¹ŽåŠåç¥ããããªã£ãŠããŸãããã®äžã§ãäžçªäººæ°ã¯ãåã屿·ã§ããäžçªäººæ°ã®çç±ã¯ããåã屿·ããããªãã¯ã©ã¹ã 1ã¯ã©ã¹ã 2ã¯ã©ã¹ã§ã¯ãªãã9ã¯ã©ã¹ããåã屿·ããããªãããšã§ããããããã工倫ããããšããããããããåæ§çãªãåã屿·ã«ãªã£ãŠããŸãããã®ãããæè¿ã§ã¯è¿é£ããå€ãã®æ¥å Žè
ã蚪ããŸãã
</p>
<p>
ããã§ãåŠåç¥å®è¡å§å¡äŒã§ã¯ããåã屿·ã®å
¥å Žæéãäžè¡šã®ããã«æ ¡å
ã§çµ±äžããããã«ããšã¥ãåã¯ã©ã¹ããšã«å
¥å Žè
ç·æ°ãšåå
¥ã®éèšããããªãããšã«ããŸããã
</p>
<p>
å
¥å Žæé衚(å
¥å Žè
1人ãããã®å
¥å Žæ)
</p>
<pre>
... |
p00489 |
<H1>ãµãã«ãŒ (Soccer) </H1>
<h2> åé¡</h2>
<p>
JOI åœã§ã¯ãµãã«ãŒã人æ°ã§ããïŒJOI ãªãŒã°ãšãããªãŒã°æŠãæ¯é±è¡ãããŠããïŒ
</p>
<p>
JOI ãªãŒã°ã«ã¯ N åã®ããŒã ãæå±ããŠããŠïŒ1 ãã N ãŸã§ã®çªå·ãã€ããããŠããïŒãã¹ãŠã®çµã¿åããã®è©Šåãã¡ããã©äžåºŠãã€è¡ãããïŒã€ãŸãïŒ <nobr>N à (N - 1) / 2</nobr> 詊åãè¡ãããïŒå詊åã®åæã¯ããããã®ããŒã ã®åŸç¹ã§æ±ºãŸãïŒåã£ãããŒã ã®åã¡ç¹ã¯ 3 ç¹ã§ããïŒè² ããããŒã ã®åã¡ç¹ã¯ 0 ç¹ã§ããïŒåŒãåãã®å ŽåïŒäž¡ããŒã ã®åã¡ç¹ã¯ 1 ç¹ã§ããïŒé äœã¯åããŒã ã®ç²åŸããåã¡... |
p00523 |
<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> ããŒã ã¯ãŒãã³(Baumkuchen)
</H1... |
p00734 |
<h1><font color="#000000">Problem A:</font> Equal Total Scores</h1>
<!-- <img src="https://judgeapi.u-aizu.ac.jp/resources/images/A-1" width=300 align=left> -->
<!-- begin en only -->
<p>
Taro and Hanako have numbers of cards in their hands.
Each of the cards has a score on it.
Taro and Hanako wish to make the tot... |
p02709 | <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> children standing in a line from left to right. The activeness of the <var>i</var>-th child from the left is <var>A_i</var>.</p>
<p>You can rearrange these children just one time ... |
p01826 |
<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 I:
Live Programming
</... |
p00364 | <H1>Bange Hills Tower</H1>
<p>
A project is underway to build a new viewing tower in Bange town called âBange Hills Towerâ whose selling point will be the gorgeous view of the entire main keep of Wakamatsu Castle from top to bottom. Therefore, the view line from the top of the tower must reach the bottom of the keep w... |
p02359 |
<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>The Maximum Number of Customers</H1>
<p>
... |
p03118 | <span class="lang-en">
<p>Score : <var>2718</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a very long bench.
The bench is divided into <var>M</var> sections, where <var>M</var> is a very large integer.</p>
<p>Initially, the bench is vacant.
Then, <var>M</var> people come to the ben... |
p01125 |
<h1>Mysterious Gems</h1>
<p>
å®å®æŠ 1603ã1867 幎ïŒäººã
ã¯ãã®æä»£ã®ããšã EDO æä»£ãšåŒã¶ïŒEDO ãšã¯åœææå
端ã®å®å®èªè¡æè¡ïŒEnhanced Driving Operation ã®ããšã§ããã1603 幎㫠Dr.Izy ã«ãã£ãŠéçºãããïŒ
</p>
<p>
ããªãã¯å®å®åéºå®¶ã§ããïŒå®å®ãé£ã³åã£ãŠæ§ã
ãªææãåéºããŠããïŒãã®åéºã®éäžã§ïŒããªãã¯ãšãŠãäžæè°ãªææãçºèŠããïŒãã®ææã«ã¯ïŒè³ããšããã«äžè²ã«èŒãäžæè°ãªå®ç³ãèœã¡ãŠããïŒããªãã¯ãã®ææãžã®éäžã詊ã¿ãããšèãããïŒé倧ãªåé¡ã®ããã«ããã¯äžå¯èœã§ããããšãããã£ãïŒãã®ææã®ç©ºæ°ã«ã¯ïŒäººéãè§Šããã ãã§... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.