task
stringlengths
0
154k
__index_level_0__
int64
0
39.2k
Score : 900 points Problem Statement You are given a sequence D_1, D_2, ..., D_N of length N . The values of D_i are all distinct. Does a tree with N vertices that satisfies the following conditions exist? The vertices are numbered 1,2,..., N . The edges are numbered 1,2,..., N-1 , and Edge i connects Vertex u_i and v_...
37,853
Problem E. Magic Triangles Fallen angel Yohane plans to draw a magic symbol composed of triangles on the earth. By casting some magic spell on the symbol, she will obtain magic power; this is the purpose for which she will draw a magic symbol. The magic power yielded from the magic symbol is determined only by the comm...
37,854
凞 平面䞊の異なる 4 点 $A (x_a, y_a)$, $B (x_b, y_b)$, $C (x_c, y_c)$, $D(x_d, y_d)$ の座暙を読み蟌んで、それら 4 点を頂点ずした四角圢 $ABCD$ に凹みがなければ YES、凹みがあれば NO ず出力するプログラムを䜜成しおください。 凹みのある四角圢ずは図 1 のような四角圢です。 Input 耇数のデヌタセットが䞎えられたす。各デヌタセットの圢匏は以䞋のずおりです。 $x_a$,$y_a$,$x_b$,$y_b$,$x_c$,$y_c$,$x_d$,$y_d$ $x_a$, $y_a$, $x_b$, $y_b$, $x_c$, $y_c$, $x_d$,...
37,855
Multi-Set For a set $S$ of integers, perform a sequence of the following operations. Note that multiple elements can have equivalent values in $S$ . insert($x$): Insert $x$ to $S$ and report the number of elements in $S$ after the operation. find($x$): Report the number of $x$ in $S$. delete($x$): Delete all $x$ from $...
37,856
認蚌レベル 問題 あなたは Just Odd Inventions 瀟を知っおいるだろうか? この䌚瀟の業務は「ただ奇劙な発明 (just odd inventions)」をするこずである.ここでは略しお JOI 瀟ず呌ぶ. JOI 瀟には 2 ぀の事務所があり,それぞれ同じ倧きさの正方圢の郚屋がマス目状に䞊んでできおいる.蟺で接しおいるすべおの郚屋の間に,身分蚌による認蚌機胜の付いた扉がある.JOI 瀟では様々なレベルの機密情報を扱っおいるため,郚屋ごずに機密レベルずいう正の敎数が蚭定されおおり,身分蚌の事務所ごずに定められた非負敎数の認蚌レベルが,機密レベル以䞊でないずその郚屋に入宀するこずができない.各事務所の出入り口は唯䞀あ...
37,857
Tree Separator You are given a tree $T$ and an integer $K$. You can choose arbitrary distinct two vertices $u$ and $v$ on $T$. Let $P$ be the simple path between $u$ and $v$. Then, remove vertices in $P$, and edges such that one or both of its end vertices is in $P$ from $T$. Your task is to choose $u$ and $v$ to maxim...
37,858
Problem D: Dimensional Analysis 量の次元ずは、盞異なる量の間の関係匏から具䜓的数倀を無芖しお量の皮類ずそのべき乗だけに着目した抂念である。具䜓的には定数係数を無芖した等匏ずしお、次元の関係匏を衚す。すなわち、量 q の次元を[ q ]ず衚せば、以䞋のようないく぀かの次元の関係匏が䟋瀺できる。 [面積] = [長さ] 2 [䜓積] = [長さ] 3 [速さ] = [長さ][時間] -1 [加速床] = [長さ][時間] -2 [力] = [質量][長さ][時間] -2 [仕事] = [質量][長さ] 2 [時間] -2 (Wikipedia 「量」より抜粋 URL http://ja.wikipedia...
37,859
Design of a Mansion Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condominium. The hei...
37,860
四぀子玠数 ( a, a+2, a+6, a+8 ) のように䞊んだ 4 ぀の玠数の組を四぀子玠数ずいいたす。四぀子玠数を構成する四぀の玠数のうち、最倧の数をその四぀子玠数の倧きさず呌びたす。䟋えば、最も小さい倧きさの四぀子玠数は、(5, 7, 11, 13) の組であり、その倧きさは 13 です。次に倧きい四぀子玠数は、(11, 13, 17, 19) の組で、その倧きさは 19 です。 敎数 n (13 ≀ n ≀ 10,000,000) を入力ずし、倧きさが n 以䞋になるような四぀子玠数のうち、最倧ずなるものの倧きさを出力するプログラムを䜜成しおください。 Input 耇数のデヌタセットの䞊びが入力ずしお䞎えられたす。入力の...
37,861
Rubik Dungeon Problem あなたは n × n × n の立方䜓のルヌビックキュヌブ型のダンゞョンにやっおきた。 あなたは珟圚( x 1 , y 1 , z 1 )の郚屋にいる。 目暙の宝は( x 2 , y 2 , z 2 )の郚屋にある。 あなたは隣接しおいる前埌巊右䞊䞋の郚屋に単䜍時間で移動するこずができる。 各郚屋には6぀のボタンがあり、それぞれのボタンを抌すこずにより、単䜍時間で、ルヌビックキュヌブのように以䞋の操䜜を行うこずができる 珟圚いる郚屋ず x 座暙の倀が同じ党おの郚屋を時蚈たたは反時蚈呚りに90床回転するこずができる 珟圚いる郚屋ず y 座暙の倀が同じ党おの郚屋を時蚈たたは反時蚈呚りに90床...
37,862
Problem I: Train King Roland has been given a mission of dangerous material transfer by Train King. The material is stored in the station A and subject to being transferred to the station B. He will bring it by direct trains between A and B, one (or zero) unit per ride. Your task is to write a program to find out the m...
37,863
問題文 人魚の魔女 KLARISSA はコンサヌトホヌルの䞭で圚りし日の感動を倢芋぀づけおいる圌女の運呜の車茪は具珟化しコンサヌトホヌルの䞭で転がり続けおいる 䜐倉杏子 はその運呜の車茪が円ではなくカラフルな正方圢であるこずに気が぀いた運呜の車茪はコンサヌトホヌルの西から東ぞ転がろうずしおいる 䜐倉杏子 は運呜の車茪がある所たで転がったずきにその䞊に飛び移るこずにしたそこで飛び移るべき面の色を知り飛び移るタむミングを芋蚈らいたい ここでは車茪を 2 次元平面における 1 蟺の長さが 1 の正方圢ず芋なし西から東ぞ向かう方向を x 軞の正向き鉛盎䞊方向を y 軞の正向きずする 今運呜の車茪の䞀面が床に察しお接地...
37,864
Amida, the City of Miracle 奇跡の郜垂アミダAmida, the City of Miracleの垂長は他の垂のように遞挙で遞ぶのではないか぀お長い政暩闘争ず倩倉地異により疲匊したこの郜垂は候補者党員を公平に遞びか぀幞運の星の䞋に生たれた者を垂長にするために候補者党員の運呜をくじにゆだねるこずにしたのである埌にあみだくじず呌ばれるくじである 遞挙は以䞋のように行われる候補者数ず同数の長い瞊線が匕かれさらにいく぀かの暪線がそこに匕かれる暪線は隣接した瞊線の途䞭同士を結ぶように匕かれるいずれかの瞊線の䞋には「圓遞」ず曞かれおいるどの瞊線が圓遞であるかは候補者からわからないように隠される...
37,865
Problem F: Exciting Bicycle You happened to get a special bicycle. You can run with it incredibly fast because it has a turbo engine. You can't wait to try it off road to enjoy the power. You planned to go straight. The ground is very rough with ups and downs, and can be seen as a series of slopes (line segments) when ...
37,866
Problem H: Laser Cutter Ciel is going to do woodworking. Ciel wants to make a cut in a wooden board using a laser cutter. To make it simple, we assume that the board is a two-dimensional plane. There are several segments on the board along which Ciel wants to cut the board. Each segment has a direction and Ciel must cu...
37,868
Problem D: Twirling Robot Let's play a game using a robot on a rectangular board covered with a square mesh (Figure D-1). The robot is initially set at the start square in the northwest corner facing the east direction. The goal of this game is to lead the robot to the goal square in the southeast corner. Figure D-1: E...
37,869
Three Meals You are running a restaurant that serves dishes only three times a day. Each of your customer has his/her own separate time zones for eating breakfast, lunch and supper. Thus, your customer enjoys your dish only when he/she visits your restaurant to meet your serving time settings. Your wish is to modify yo...
37,870
Score : 1600 points Problem Statement Let X = 10^{100} . Inaba has N checker pieces on the number line, where the i -th checker piece is at coordinate X^{i} for all 1 \leq i \leq N . Every second, Inaba chooses two checker pieces, A and B , and move A to the symmetric point of its current position with respect to B . A...
37,871
Score : 200 points Problem Statement There are N apple trees in a row. People say that one of them will bear golden apples. We want to deploy some number of inspectors so that each of these trees will be inspected. Each inspector will be deployed under one of the trees. For convenience, we will assign numbers from 1 th...
37,873
Score : 600 points Problem Statement There are N blocks arranged in a row, numbered 1 to N from left to right. Each block has a weight, and the weight of Block i is A_i . Snuke will perform the following operation on these blocks N times: Choose one block that is still not removed, and remove it. The cost of this opera...
37,874
Score : 700 points Problem Statement Limak can repeatedly remove one of the first two characters of a string, for example abcxyx \rightarrow acxyx \rightarrow cxyx \rightarrow cyx . You are given N different strings S_1, S_2, \ldots, S_N . Among N \cdot (N-1) / 2 pairs (S_i, S_j) , in how many pairs could Limak obtain ...
37,875
Problem Statement You have a grid with $H$ rows and $W$ columns. Each cell contains one of the following 11 characters: an addition operator + , a multiplication operator * , or a digit between $1$ and $9$. There are paths from the top-left cell to the bottom-right cell by moving right or down $H+W-2$ times. Let us def...
37,876
Bit Operation I Given a non-negative decimal integer $x$, convert it to binary representation $b$ of 32 bits. Then, print the result of the following operations to $b$ respecitvely. Inversion: change the state of each bit to the opposite state Logical left shift: shift left by 1 Logical right shift: shift right by 1 In...
37,877
Problem M: Manhattan Bomb Problem 2次元平面䞊に$n$個の爆匟がある。爆匟にはそれぞれ1から$n$たでの番号が割り振られおおり、$i$番目の爆匟は座暙$(x_i,y_i)$に存圚しおいる。 なお、どの爆匟も原点からのマンハッタン距離が等しいこずが分かっおいる。 $i$番目の爆匟が爆発したずき、座暙$(x_i,y_i)$からのマンハッタン距離が$r_i$以内の座暙に存圚しおいる爆匟も連鎖的に爆発する。 $n$個の爆匟それぞれに぀いお、その爆匟のみに着火した堎合に、爆発せずに残る爆匟の個数を求めよ。 Input $n$ $x_1$ $y_1$ $r_1$ $x_2$ $y_2$ $r_2$ ... $x...
37,878
Score : 100 points Problem Statement You are given a string of length N . Calculate the number of distinct substrings of S . Constraints 1 \leq N \leq 500,000 S consists of lowercase English letters. Input Input is given from Standard Input in the following format: S Output Print the answer. Sample Input 1 abcbcba Samp...
37,879
Score : 1400 points Problem Statement There is a tree with N vertices numbered 1 through N . The i -th of the N-1 edges connects vertices a_i and b_i . Initially, each edge is painted blue. Takahashi will convert this blue tree into a red tree, by performing the following operation N-1 times: Select a simple path that ...
37,880
Score : 100 points Problem Statement Given are three integers A_1 , A_2 , and A_3 . If A_1+A_2+A_3 is greater than or equal to 22 , print bust ; otherwise, print win . Constraints 1 \leq A_i \leq 13 \ \ (i=1,2,3) All values in input are integers. Input Input is given from Standard Input in the following format: A_1 A_2...
37,881
Problem F: Young, Poor and Busy Ken and Keiko are young, poor and busy. Short explanation: they are students, and ridden with part-time jobs. To make things worse, Ken lives in Hakodate and Keiko in Tokyo. They want to meet, but since they have neither time nor money, they have to go back to their respective jobs immed...
37,882
Score : 100 points Problem Statement There are a total of A + B cats and dogs. Among them, A are known to be cats, but the remaining B are not known to be either cats or dogs. Determine if it is possible that there are exactly X cats among these A + B animals. Constraints 1 \leq A \leq 100 1 \leq B \leq 100 1 \leq X \l...
37,883
Sunny Graph The Sun is a great heavenly body. The Sun is worshiped by various religions. Bob loves the Sun and loves any object that is similar to the Sun. He noticed that he can find the shape of the Sun in certain graphs. He calls such graphs "Sunny". We define the property "Sunny" mathematically. A graph G=(V,E) wit...
37,885
Score : 800 points Problem Statement There are N squares arranged in a row, numbered 1 to N from left to right. Takahashi will stack building blocks on these squares, on which there are no blocks yet. He wants to stack blocks on the squares evenly, so he will repeat the following operation until there are H blocks on e...
37,886
Problem H: Yu-kun Likes a Directed Graph Background 䌚接倧孊付属幌皚園はプログラミングが倧奜きな子䟛が集たる幌皚園である。園児の䞀人であるゆう君は、プログラミングず同じくらいお絵描きが倧奜きだ。 これたでゆう君は、䞞ず矢印で沢山絵を曞いおきた。矢印は必ず䞞ず䞞を結ぶようにしお描いおある。ある日ゆう君はこれらの絵がグラフであるこずを知る。 䞞は頂点ず呌ばれ、矢印は蟺ず呌ばれおいるらしい。曎にゆう君は、矢印を描く際に、必ずその䞊に぀正の敎数を曞いおいた。このように、蟺に重みがあり有向な蟺からなるグラフは重み付き有向グラフず呌ばれる。 今日ゆう君は、新たに閉路ずいう蚀葉を知った。閉路ず...
37,887
坊䞻めくりの結末 癟人䞀銖の札を䜿った遊戯の぀に、「坊䞻めくり」ずいうものがありたす。絵札だけを䜿う簡単な遊戯なので広く楜したれおいたす。きたりには様々な掟生型がありたすが、ここで考える坊䞻めくりはN人の参加者で、以䞋のようなルヌルで行いたす。 枚の「男」、枚の「坊䞻」、枚の「姫」、蚈枚の札を䜿う。 絵が芋えないように札を裏がえしにしおよく混ぜ、「札山」を぀くる。 参加者の䞀人目から順番に枚ず぀札山の札を匕く。N人目の次は、たた䞀人目から繰り返す。 匕いた札が男なら、匕いた人はその札を手に入れる。 匕いた札が坊䞻なら、匕いた人はその札を含め、持っおいる札をすべお「堎」に出す。 匕いた札が姫なら、匕いた人はその札...
37,888
String Search Find places where a string P is found within a text T . Print all indices of T where P found. The indices of T start with 0. Input In the first line, a text T is given. In the second line, a string P is given. Output Print an index of T where P found in a line. Print the indices in ascending order. Constr...
37,889
G: Cryptex 問題 AORむカちゃんは自分の宝箱にダむダル匏の鍵をかけおいる。 鍵には $N$ 個のシリンダヌが぀いおいる。 あらかじめ蚭定しおおいた $N$ 個の数の䞊びからなる暗蚌番号 $T$ ず、シリンダヌが瀺す数列が同じであれば開錠するこずができる。 シリンダヌには、 $0$ から $M-1$ たでの $M$ 皮類の数が同じ向きに順に刻たれおおり、最初はすべおのシリンダヌが $0$ を瀺しおいる。 鍵は特別補であり、シリンダヌを䞀぀ず぀回すこずができない。任意のシリンダヌを二぀遞び、それらを同時に動かさなければならない。 䞀回シリンダヌを回すずは、以䞋のように定矩される。 シリンダヌを二぀遞ぶ。ただし、同じシリンダヌ...
37,890
Problem E: Frisbee Dogs クレむンは, 圌女の愛犬である Jack をフリスビヌドッグ倧䌚に出堎させようずしおいる. しかし, 圌女は Jack がよい成瞟を取れるか自信が無い. 圌女のために, 倧䌚をシミュレヌトしお Jack の成瞟を芋積もるプログラムを䜜成しおほしい. この倧䌚は, 2次元平面䞊にいる N 匹の犬によっお行われる. 倧䌚の開始時点においお, i 番目の犬は ( D i x , D i y ) の䜍眮にいる. i 番目の犬は V i [m/s] で走るこずができ, 党おの犬は十分小さいので点ずみなせる. ある時刻に, 2 匹以䞊の犬が同じ䜍眮にいおも構わない. 1枚目のフリスビヌの発射をもっ...
37,891
Problem Statement AtCoder currently hosts three types of contests: ABC, ARC, and AGC. As the number of users has grown, in order to meet the needs of more users, AtCoder has decided to increase the number of contests to 26 types, from AAC to AZC. For convenience, we number these 26 types as type 1 through type 26. AtCo...
37,892
ワヌド コンピュヌタで扱われるデヌタの最小単䜍をビット(bit)ず呌び、耇数のビットをたずめお衚した情報量をワヌド(word)ず呌びたす。珟圚、倚くのコンピュヌタではワヌドをビットずしお凊理しおいたす。 ワヌドをビットで衚すコンピュヌタに぀いお、ワヌド単䜍で䞎えられたデヌタ量 W をビット単䜍で出力するプログラムを䜜成せよ。 Input 入力は以䞋の圢匏で䞎えられる。 W 入力は行からなり、デヌタ量 W (0 ≀ W ≀ 100) が䞎えられる。 Output ビット単䜍の倀を行に出力する。 Sample Input 1 4 Sample Output 1 128 Sample Input 2 3 Sample Ou...
37,893
A: マむナンバヌ - My Number - 問題 いっけなヌい遅刻遅刻 あっ私、今日から憧れのこの䌚瀟で働くこずになったんだ それなのに、初日から寝坊だなんお  今日は䌚瀟にマむナンバヌを教えなければならない倧切な日なのに  みんな知っおいるず思うけれど、䞀応マむナンバヌの説明をするね マむナンバヌは行政手続きにおける個人を識別するために甚いられる 12 桁からなる数字列 ( P_{11} P_{10} P_{9} ... P_{1} P_{0} ) である。 末尟の P_{0} はチェックディゞットず呌ばれ、 総務省什第八十五号第五章 に定められおいるように、次匏で定矩される。 11 − ( ({\rm Σ}_...
37,894
Millennium A wise king declared a new calendar. "Tomorrow shall be the first day of the calendar, that is, the day 1 of the month 1 of the year 1. Each year consists of 10 months, from month 1 through month 10, and starts from a big month . A common year shall start with a big month, followed by small months and big mo...
37,895
B - 簡易オセロ 問題文 B君はオセロが倧奜きである (オセロのルヌルに぀いおは Wikipediaのオセロのペヌゞ を参照せよ「パス」に぀いおも Wikipedia に曞かれおいるずおり駒を打぀こずができない堎合のみパスできるものずしパスの回数に制限は無いものずする) B君は駒の初期配眮によっおゲヌムの結果がどのように倉わるのかに興味がある しかしいきなり 2 次元の盀面で考えるのは難しいのでひずたずは 1 次元の盀面で考えるこずにした すなわちこの問題では盀面は瞊幅 1暪幅無限のマス目であるず芋なす たたオセロの駒はアルファベット小文字の o ず x によっお衚すこずにする B君はこの盀面䞊のオセロの初...
37,896
Problem A: Everlasting...? Everlasting Sa-Ga, a new, hot and very popular role-playing game, is out on October 19, 2008. Fans have been looking forward to a new title of Everlasting Sa-Ga. Little Jimmy is in trouble. He is a seven-year-old boy, and he obtained the Everlasting Sa-Ga and is attempting to reach the end of...
37,897
Multiplication of Big Integers Given two integers $A$ and $B$, compute the product, $A \times B$. Input Two integers $A$ and $B$ separated by a space character are given in a line. Output Print the product in a line. Constraints $-1 \times 10^{1000} \leq A, B \leq 10^{1000}$ Sample Input 1 5 8 Sample Output 1 40 Sample...
37,898
船旅 問題 JOI囜にはn 島の島があり各島には 1 から n たでの番号が付けられおいる珟圚JOI囜では各島の間を結ぶ航路網の敎備が進んでいる あなたは船舶の切笊を扱っおいるチケットセンタヌに勀務しおいるJOI囜には船舶を䜿っおできる限り安䟡に島ず島の間を旅行したいず考えおいる人が沢山おり圌らは出発地ず目的地を泚文祚に蚘入しおあなたのずころに送っおくる あなたの仕事は客から泚文祚を受け取ったらすぐにいく぀かの船舶を乗り継いで出発地ず目的地を結ぶ航路の䞭でもっずも安䟡な運賃を蚈算し客に䌝えるこずである ただし旅皋によっおは船舶を䜿っお旅行するこずが出来ない堎合もあるそのずきは『船舶を䜿っお...
37,899
J: 郜 (City) サンタはある郜にプレれントを届けるこずにした。 この郜は南北 $H$ 区画 × 東西 $W$ 区画に分けられた長方圢の圢をしおおり、各区画にプレれントを届ける家が 1 ぀ず぀ある。 北から数えお $X$ 番目、西から数えお $Y$ 番目の区画を $(X, Y)$ で衚す。 サンタは次の条件で移動する。 はじめに区画 $(S, T)$ に降り、この堎所からスタヌトする。 1 回の移動で東西南北に隣り合う区画に移動でき、街の倖には移動できない。 1 床蚪ねた区画には、2 床ず入らない。 サンタが郜にあるすべおの家を蚪ねるこずができるか刀定せよ。 入力 $H, W, S, T$が空癜区切りで䞎えられる。 出力 サン...
37,900
Factorial Write a program which reads an integer n and prints the factorial of n . You can assume that n ≀ 20. Input An integer n (1 ≀ n ≀ 20) in a line. Output Print the factorial of n in a line. Sample Input 5 Output for the Sample Input 120
37,901
Problem I: Memory Match Memory match is a single-player game which employs a set of 2 M cards. Each card is labeled with a number between 1 and M on its face. For each number i (1 ≀ i ≀ M ), there are exactly two cards which have the number i . At the start of the game, all cards are shuffled and laid face down on a ta...
37,902
Score : 200 points Problem Statement There is a square in the xy -plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x -axis points right, and the positive y -axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2) , but...
37,903
1 Problem Statement 長さ n のビット列がある 巊から i 番目のビットが1のずきスコアを a_i 点埗られる 巊から i 番目のビットを䞭心に距離 w 以内にある1の個数( =|\{j \in \{1,...,n\}∩\{i-w,...,i+w\} | 巊から j 番目のビットが1\}| )が奇数のずきスコアを b_i 点埗られる スコアを最も倚く埗られるようなビット列を求めよ Input 入力は以䞋の圢匏に埓う䞎えられる数は党お敎数である n w a_1 ... a_n b_1 ... b_n Constraints 1≩n≩1,000 1≩w≩1,000 0≩a_i≩10^5 0≩b_i≩1...
37,904
Score : 100 points Problem Statement In K-city , there are n streets running east-west, and m streets running north-south. Each street running east-west and each street running north-south cross each other. We will call the smallest area that is surrounded by four streets a block. How many blocks there are in K-city? C...
37,905
Score : 200 points Problem Statement Today is August 24 , one of the five Product Days in a year. A date m - d ( m is the month, d is the date) is called a Product Day when d is a two-digit number, and all of the following conditions are satisfied (here d_{10} is the tens digit of the day and d_1 is the ones digit of t...
37,906
Score : 1000 points Problem Statement Snuke arranged N colorful balls in a row. The i -th ball from the left has color c_i and weight w_i . He can rearrange the balls by performing the following two operations any number of times, in any order: Operation 1 : Select two balls with the same color. If the total weight of ...
37,908
Score : 400 points Problem Statement There is a knight - the chess piece - at the origin (0, 0) of a two-dimensional grid. When the knight is at the square (i, j) , it can be moved to either (i+1,j+2) or (i+2, j+1) . In how many ways can the knight reach the square (X, Y) ? Find the number of ways modulo 10^9 + 7 . Con...
37,909
Problem M: 1333 Problem 長さ$N$の文字列$S$が䞎えられる。 以䞋のク゚リを$Q$回凊理せよ。 ク゚リ $S[L: R]$を$S$の$L$文字目から$R$文字目たで䞡端を含むからなる文字列ずする。 $ S[L: R] $を適圓な文字列$A,B,C,X$を甚いお$AXBXCX(1 \leq |A|,|B|,|C|,|X|)$ ず衚すこずを考え、そのような$X$の䞭で最長のものの長さを出力する。 ただし、そのような$X$が存圚しない堎合は代わりに0を出力する。 Input 入力は以䞋の圢匏で䞎えられる。 $N$ $Q$ $S$ $L_1$ $R_1$ $L_2$ $R_2$ $\vdots$ $L_Q$ $...
37,910
Problem 07: Crop Circle アルれンチンの広倧な蟲地に突劂ミステリヌサヌクルが出没した。ミステリヌサヌクルは重なっおいるもの、ポツンずあるもの、倧きいもの、小さいものず合蚈 n 個確認された。 あるミステリヌハンタヌが空䞭からミステリヌサヌクルの党䜓像を撮圱しようず詊みたずころ、各円の茪郭がはっきりしおいなかったため、映像にその矎しい暡様を映し出すこずが難しいこずが分かった。 そこで、そのミステリヌハンタヌは茪郭に沿っお特殊玠材の玐を蚭眮し、茪郭を匷調する提案をした。 玐を蚭眮する郚分は、あるミステリヌサヌクルの円呚䞊で、他のどのミステリヌサヌクルにも含たれない郚分である。 撮圱隊は必芁な玐の長さを蚈枬するために...
37,911
F: 朚を隠すのなら森の䞭 物語 「朚はいいです」 喫茶店「タヌトルハりス」を経営するチコちゃんは、朚に䞊々ならぬ愛情を持っおいる。なんでも、朚の䞍動のあり方に心が掗われるらしい。。。そんなチコちゃんの朚ぞの愛情を確かめるため、同じ喫茶店でバむトをしおいるココロちゃんはチコちゃんにいたずらを仕掛けるこずにした。 ココロちゃんは、チコちゃんのために森を甚意しお、喫茶店近くに生えおいた朚を䜕本か森の䞭に隠し、チコちゃんの朚ぞの愛情を詊すこずにした。具䜓的には、チコちゃんに、隠した朚を森の䞭から芋぀けおもらうこずにした。朚をこよなく愛するチコちゃんなら、䞀床芋たこずがある朚は、心の掗われ方の違いでわかるのだが、朚を移動しおしたったため、朚...
37,912
金剛の型 以䞋のように、右から 7 ビット分が小数郚、続く24 ビット分が敎数郚で、䞀番巊の 1 ビット分を笊号郚ずする 32 ビット実数型を考える(b 1 , ... , b 32 は 0 か1 を衚す。 この圢匏を、人が理解しやすい 10 進数衚珟に盎すずきは、以䞋のように解釈する。 (-1) 笊号郚 × (敎数郚 + 小数郚) 䞊の衚珟で、敎数郚の倀は b 8  2 1 ×b 9  2 2 ×b 10  ...  2 23 ×b 31 になる。䟋えば敎数郚が のようになっおいた堎合、敎数郚の倀は以䞋のように蚈算される。 1 + 2 1 + 2 3 = 1 + 2 + 8 = 11 䞀方、小数郚の倀は(0.5) 1 ×...
37,913
Problem D: Pump up Batteries Bill is a boss of security guards. He has pride in that his men put on wearable computers on their duty. At the same time, it is his headache that capacities of commercially available batteries are far too small to support those computers all day long. His men come back to the office to cha...
37,914
Problem G: Yu-kun Likes Building Block Background 䌚接倧孊付属幌皚園はプログラミングが倧奜きな子䟛が集たる幌皚園である。園児の䞀人であるゆう君はプログラミングず同じくらい長方圢の積み朚が倧奜きだ。 そんなゆう君は、最近積み朚で山を䜜る遊びに熱䞭しおいる。 今日もゆう君は山を䜜っお遊んでいたのだが、持っおいる積み朚で沢山の山を䜜る事は簡単なので、今日は党おの積み朚を䜿っお出来る山の数を最小化しようず考えた。 そこでゆう君は、実際に党おの積み朚を䜿っお山を䜜った埌、本圓にその山の数が最小になっおいるのかどうかを確かめるために、プログラムを曞く事にした。 Problem ゆう君が持っおいる...
37,915
問題文 ふたりのプレむダヌがゲヌムをしおいる。以䞋、ゲヌムのルヌルを説明する。 $N×N$ マスのボヌドがあり、各マスには数字 $X_{i,j}$ ($1 \leq i,j \leq N$)が曞かれおいる。先手ず埌手は亀互に手を遞んで点を積み重ねおゆく。最初に先手は $F$ 点持っおおり、埌手は $0$ 点持っおいる。 $t$ タヌン目($1 \leq t \leq 2N$)のプレむダヌの行動を瀺す。 これ以降自分ず盞手がどのような手を遞んだずしおも自分が負けおしたう堎合、即座に負けを宣蚀しおゲヌムを終了する。 これたでに自分が䞀床も遞んだこずのない数字を $1,2,...,N$ から䞀぀遞んで $Y_t$ ずする。 先手の手番(぀...
37,916
Problem H: Slippy Floors The princess of the Fancy Kingdom has been loved by many people for her lovely face. However the witch of the Snow World has been jealous of the princess being loved. For her jealousy, the witch has shut the princess into the Ice Tower built by the witch’s extreme magical power. As the Ice Towe...
37,917
Problem E: Alice in Foxland - The world is made of foxes; people with watchful eyes will find foxes in every fragment of the world. Defoxyrenardnucleic Acids (or DNAs for short) and Renardnucleic Acids (or RNAs) are similar organic molecules contained in organisms. Each of those molecules consists of a sequence of 26 k...
37,918
Code Art Online G: コヌドアヌトオンラむン コヌドアヌトオンラむンCAOは様々な問題をプログラミングによっお解くこずにより冒険を進めお行くオンラむンRPGである CAOは䞖界初のバヌチャルリアリティ空間を実珟したゲヌムであったこずもあり倧人気の内に完売しゲヌムを賌入したナヌザ達はこの䞖界を楜しむはずであった しかしゲヌムにダむブしたプレむダヌ達はゲヌムマスタヌから恐るべき蚗宣を聞かされる 「君たちプレむダヌの内の誰かがラストダンゞョンのラストプロブレムを解かない限りこの仮想空間から抜け出すこずはできないそしおこの䞖界でのWAやTLE・REは珟実䞖界での死を意味する心しお問題にず...
37,919
Encryption System A programmer developed a new encryption system. However, his system has an issue that two or more distinct strings are `encrypted' to the same string. We have a string encrypted by his system. To decode the original string, we want to enumerate all the candidates of the string before the encryption. Y...
37,920
G: 旅費支絊 - Travel Support - 物語 私銙坂穂乃果16歳孊生アむドルをやっおいたす 孊生アむドルの良さをみんなに䌝えるためのラむブをやろうずたくさんの孊生アむドルの人たちを呌んでアキバスタゞアムでラむブをしたす だけど遠くから来るラむブ参加者もいおずっおも電車賃がかかるのだからu’sのメンバヌでバむトをしおラむブ参加者たちに電車賃を枡すこずにしたんだただバむト代が入るのが遅いから電車賃を枡すのがラむブ参加者の出発に間に合わないこずがあったりバむト代が足りなくお電車賃の党額は枡せないこずがあるんだそんな時はラむブ参加者に足りない分のお金を事前に甚意しおもらうのだけどどのくらい甚意しお...
37,921
Score : 900 points Problem Statement There is a string S of length N consisting of characters 0 and 1 . You will perform the following operation for each i = 1, 2, ..., m : Arbitrarily permute the characters within the substring of S starting at the l_i -th character from the left and extending through the r_i -th char...
37,922
スケゞュヌラ あなたはナニヌクなオペレヌティングシステム「りンズグネ」の開発に取り組んでおり、性胜を決定付けるスケゞュヌラの蚭蚈に頭を悩たせおいる。スケゞュヌラずは、実行すべき凊理をタスクずいう単䜍で衚珟し、それらをどの順序で実行するかを決定するプログラムである。スケゞュヌラはタスクにから N の番号を぀けお管理する。党おのタスクは K 個の属性 f 1 , f 2 ,..., f K を持ち、各属性にはそれぞれ固有の倀が蚭定されおいる。ただし、ある぀のタスクに぀いお、察応する属性の倀すべおが同じになるこずはない。 あるタスクには、そのタスクの実行を始める前たでに実行を完了しおいなければならないタスクが䞎えられるこずがある。...
37,923
Score : 800 points Problem Statement There are N cards placed on a grid with H rows and W columns of squares. The i -th card has an integer A_i written on it, and it is placed on the square at the R_i -th row from the top and the C_i -th column from the left. Multiple cards may be placed on the same square. You will fi...
37,924
Score : 100 points Problem Statement Snuke lives at position x on a number line. On this line, there are two stores A and B , respectively at position a and b , that offer food for delivery. Snuke decided to get food delivery from the closer of stores A and B . Find out which store is closer to Snuke's residence. Here,...
37,925
Score : 1300 points Problem Statement We will call a non-negative integer increasing if, for any two adjacent digits in its decimal representation, the digit to the right is greater than or equal to the digit to the left. For example, 1558 , 11 , 3 and 0 are all increasing; 10 and 20170312 are not. Snuke has an integer...
37,926
Score : 200 points Problem Statement There is a grid of squares with H horizontal rows and W vertical columns. The square at the i -th row from the top and the j -th column from the left is represented as (i, j) . Each square is black or white. The color of the square is given as an H -by- W matrix (a_{i, j}) . If a_{i...
37,927
C: 玄数ゲヌム / Divisor Game 問題 tsutaj くんは玄数ゲヌムで遊がうずしおいたす。 玄数ゲヌムでは、たず 2 以䞊の自然数 N が䞎えられ、その埌は以䞋の手順でゲヌムが進んでいきたす。 N 以倖の N の玄数の䞭から、敎数を 1 ぀宣蚀する。ただしこのずき、既に宣蚀したこずがある敎数の玄数になるものは宣蚀できない。 宣蚀できる敎数がある限りこれを繰り返し、宣蚀できるものがなければゲヌムは終了する。 ゲヌムを終了させるたでに行われた宣蚀の回数ずしおあり埗る数の最小倀ず最倧倀を求めおください。 入力圢匏 入力は 1 行で䞎えられる。 N 制玄 2 \leq N \leq 10^{12} 出力圢匏 宣蚀回数の最小倀...
37,928
アルミ猶の䞊にあるミカン (Oranges on Cans) square1001 君は、テヌブルにアルミ猶を $N$ 猶眮きたした。 E869120 君は、テヌブル䞊のそれぞれのアルミ猶の䞊に $M$ 個ず぀ミカンを乗せたした。 アルミ猶の䞊に乗っおいるミカンは党郚で䜕個ありたすか 入力 入力は以䞋の圢匏で暙準入力から䞎えられる。 $N$ $M$ 出力 アルミ猶の䞊に乗っおいるミカンの数を 1 行で出力しおください。 ただし、最埌には改行を入れるこず。 制玄 $1 \leq N \leq 9$ $1 \leq M \leq 9$ 入力は党お敎数である。 入力䟋1 3 4 出力䟋1 12 入力䟋2 7 7 出力䟋2 49
37,929
Multi-Map For a dictionary $M$ that stores elements formed by a pair of a string key and an integer value, perform a sequence of the following operations. Note that multiple elements can have equivalent keys . insert($key$, $x$): Insert an element formed by a pair of $key$ and $x$ to $M$. get($key$): Print all values w...
37,930
C: 同倀呜題 問題 $N$ 個の呜題があり, それぞれ $1, 2, \cdots,N$ ずいう名前が぀いおいる. たた, 呜題に関する情報が $M$ 個䞎えられる. $i$ 番目の情報は「$a_i$ $b_i$」ずいう圢匏で䞎えられ, これは $a_i$ ならば $b_i$ であるこずを衚す.「ならば」は論理包含であり、掚移埋が成り立぀ 各呜題 $i$ に察しお $i$ ず同倀な呜題を党お昇順に出力せよ. ただし呜題 $i$ ず呜題 $i$ は垞に同倀である. 呜題 $X$ ず呜題 $Y$ が同倀ずは,「$X$ ならば $Y$」か぀「$Y$ ならば $X$」のこずである. 制玄 入力倀は党お敎数である. $ 2 \leq N...
37,931
Problem E: Manhattan Wiring There is a rectangular area containing n × m cells. Two cells are marked with "2", and another two with "3". Some cells are occupied by obstacles. You should connect the two "2"s and also the two "3"s with non-intersecting lines. Lines can run only vertically or horizontally connecting cente...
37,932
Score : 600 points Problem Statement 10^9 contestants, numbered 1 to 10^9 , will compete in a competition. There will be two contests in this competition. The organizer prepared N problems, numbered 1 to N , to use in these contests. When Problem i is presented in a contest, it will be solved by all contestants from Co...
37,933
Score : 1000 points Problem Statement How many infinite sequences a_1, a_2, ... consisting of { {1, ... ,n} } satisfy the following conditions? The n -th and subsequent elements are all equal. That is, if n \leq i,j , a_i = a_j . For every integer i , the a_i elements immediately following the i -th element are all equ...
37,934
Score : 2400 points Problem Statement Takahashi and Aoki love calculating things, so they will play with numbers now. First, they came up with one positive integer each. Takahashi came up with X , and Aoki came up with Y . Then, they will enjoy themselves by repeating the following operation K times: Compute the bitwis...
37,935
White Bird Angry Birds is a mobile game of a big craze all over the world. You were convinced that it was a waste of time to play the game, so you decided to create an automatic solver. You are describing a routine that optimizes the white bird's strategy to defeat a pig (enemy) by hitting an egg bomb. The white bird f...
37,936
Problem D: One-Time Path Problem N 個の島ず M 本の橋がある。 N 個の島にはそれぞれ1から N たでの番号が割り振られおいる。 M 本の橋にもそれぞれ1から M たでの番号が割り振られおいる。 がっちょ君は珟圚(時刻0の時点で)、1番目の島にいる。 がっちょ君は i 番目の橋を利甚するこずにより、 a i 番目の島から b i 番目の島ぞず単方向に移動するこずができる。 しかし、時刻0の時点では、すべおの橋は朮が満ちおいお海の䞭に沈んでしたっおいる。 i 番目の橋は、時刻 c i になるず朮が匕いお枡れるようになる。 そしお、時刻 c i を過ぎるず、すぐにたた朮が満ちお i 番目の橋は再び沈ん...
37,938
Score : 200 points Problem Statement Snuke has come to a store that sells boxes containing balls. The store sells the following three kinds of boxes: Red boxes, each containing R red balls Green boxes, each containing G green balls Blue boxes, each containing B blue balls Snuke wants to get a total of exactly N balls b...
37,939
カヌドはおや぀に入りたすか(Are Cards Snacks?) square1001君は $N$ 枚のカヌドを持っおいたす。 これらのカヌドにはそれぞれ敎数が曞かれおおり、$i$ 枚目のカヌドに曞かれおいる敎数は $A_i$ です。 square1001君の今日の乱数は $K$ です。square1001君はこれらの $N$ 枚のカヌドの䞭から䜕枚かのカヌドを遞び、合蚈が $K$ ずなるようにしたいです。 この様子を芋おいたE869120君は、これを阻止したいず考えたした。 具䜓的には、事前に䜕枚かのカヌドを食べるこずで、square1001 君がどのように残りのカヌドを遞んでも合蚈が $K$ ずならないようにしたいです。 しか...
37,940
䌚接の埋蔵金 䌚接には叀くから䌝わる埋蔵金の䌝説がありたす。あなたは、遂に埋蔵金が埋たっおいる堎所を突き止めたした。埋蔵金が埋たっおいる深さ、掘り進める地局の状態が分かっおいるので、綿密に蚈画を立おれば最小費甚で埋蔵金たで到達するこずができたす。そこであなたは、地局の状態を読み取っお埋蔵金の埋たっおいる深さたで最小費甚で到達するルヌトを算出するプログラムを䜜成するこずにしたした。 地局の状態は 2 次元栌子状に配眮されたセルで衚わされ、各セルの䜍眮は座暙 (x,y) で衚されたす。巊䞊を (1,1) ずし、x 座暙は右に行くに぀れお倧きくなり、y 座暙は䞋に深くなるに぀れお倧きくなるものずしたす。あなたは y 座暙の䞀番小さいセルの...
37,941
Score : 300 points Problem Statement Compute A \times B , truncate its fractional part, and print the result as an integer. Constraints 0 \leq A \leq 10^{15} 0 \leq B < 10 A is an integer. B is a number with two digits after the decimal point. Input Input is given from Standard Input in the following format: A B Output...
37,942
Problem F: Cosmic Market Cosmic market(コズミック・マヌケット)、通称コズミケ、は党宇宙最倧芏暡の同人即売䌚だ。 コズミケにはあらゆるゞャンルの同人愛奜家達が集う。 近幎、コズミケぞの来堎者は増加傟向にある。 最初から党おの人が入堎できるず倧倉混雑しお危険なので、開堎盎埌は入堎芏制を行っおいる。 ある䞀定人数の人だけが開堎ず同時に入堎するこずが出来るのだ。 それ以倖の人たちはしばらく埅っおからの入堎ずなっおいる。 しかし先着順に䌚堎に入るこずにするず、培倜で前日から䞊ぶ人が出おしたう。 コズミケの参加者には未成幎も倚く、治安䞊の問題もあるので先着順ずいう決め方はずおも良くない。 そういう理由があ...
37,943
C: 䞀臎 問題 長さ $N$ の数列 $a_i$ が䞎えられる。 次の条件を満たす敎数 $K (1 \le K \le N)$ を党お出力せよ。 条件: $a_1, \cdots, a_K$ をうたく䞊び替えるず $a_{N-K+1}, \cdots, a_N$ ず䞀臎する。 制玄 $1 \le N \le 10^5$ $1 \le a_i \le 10^9$ 入力は党お敎数 入力: $N$ $a_1 \cdots a_N$ 出力: 条件を満たす $K$ を昇順に空癜区切りで出力せよ。たた末尟に改行を出力せよ。 サンプル サンプル入力 1 8 5 2 4 9 4 9 2 5 サンプル出力 1 1 2 4 6 7 8 サンプル入力 ...
37,944
Lottery Box A lottery is being held in a corner of the venue of the Aizu festival. Several types of balls are inside the lottery box and each type has its unique integer printed on the surfaces of the balls. An integer T is printed on the lottery box. In the lottery, you first declare two integers A and B , and draw up...
37,945
D: 遭難 問題 $H * W$ のグリッドで衚される地図が䞎えられる。 各マスは '#' か '.' であり、前者は陞地であるこずを、埌者は海であるこずを瀺しおいる。 以䞋のように䞊䞋巊右に隣接しおいる陞地の集合を島ず呌ぶ。 ..... .###. ..##. ..#.. ..... 陞地 $6$ マスの島。 ...... .##.#. ....#. ...... 陞地 $2$ マスの島が $2$ ぀。 䞎えられる地図は、以䞋の条件を満たす。 地図の端 $1$ マスは必ず '.' である。 同じ圢の島が二぀以䞊存圚するこずはない。 ぀たり、島に含たれる陞地のうち、最も䞊にあり、その䞭で最も巊にある陞地を基準ずした陞地の座暙集合が等...
37,946
Problem F: Cleaning Robot Here, we want to solve path planning for a mobile robot cleaning a rectangular room floor with furniture. Consider the room floor paved with square tiles whose size fits the cleaning robot (1 × 1). There are 'clean tiles' and 'dirty tiles', and the robot can change a 'dirty tile' to a 'clean t...
37,947
Modern Announce Network Today, modern teenagers use SNS to communicate with each other. In a high school, $N$ students are using an SNS called ICPC (International Community for Programming Contest). Some pairs of these $N$ students are 'friends' on this SNS, and can send messages to each other. Among these $N$ students...
37,948
Enumeration n個の敎数a 1 , a 2 , 
, a n ずn個の敎数p 1 , p 2 , 
, p n 、敎数mが䞎えられる。k番目の敎数a k をp k [%]の確率で遞ぶ、ずいう操䜜を各k(1 ≀ k ≀ n)に぀いお行い、0個以䞊n個以䞋の敎数を遞び出す。1以䞊m以䞋の敎数の䞭で、遞ばれた敎数の少なくずも1぀で割り切れるものの個数の期埅倀を求めよ。 Input 入力は以䞋の圢匏で䞎えられる。 n m a 1 a 2 
 a n p 1 p 2 
 p n Constraints 1 ≀ n ≀ 20 1 ≀ m ≀ 10 18 1 ≀ a k ≀ 10 18 (1 ≀ k ≀ n) 1 ≀ p k ≀ 99 ...
37,949
Water Pipe Construction 21XX 幎぀いに人類は火星ぞの移䜏蚈画を開始させた火星ぞの移䜏第䞀陣に遞抜されたあなたは火星行政䞭倮局the Administrative Center of Marsに配属され火星で起こる様々な問題に察凊しおいる行政䞭倮局の目䞋の最倧の問題は自立した需芁䟛絊サむクルの確保である月からの揎助物資が届くたでには数ヶ月単䜍の時間がかかるため基本的には火星内の需芁は火星内で解決する必芁があるそれに加えお埪環システムを確立するたでは資源を極力節玄するこずが求められる 行政䞭倮局は極地にある氷の採掘を開始した倪陜光でこれを溶かし氎ずしお個々の基地に䟛絊するこずが最終...
37,950
トヌナメントの蚘録 トヌナメントが終わっお優勝者が決たるたで、蚘録係のあなたは察戊の勝者ず敗者を蚘録したした。あなたは察戊ごずに枚の玙を䜿っお正しく蚘録したしたが、蚘録した玙の順序がいく぀か入れ替わった可胜性がありたす。 順序が入れ替わった可胜性のある察戊の蚘録から、あり埗る察戊の順番が䜕通りあるかを求めるプログラムを䜜成せよ。ただし、トヌナメントの参加者には1から$N$たでの番号が割り圓おられおいるものずする。 入力 入力は以䞋の圢匏で䞎えられる。 $N$ $a_1$ $b_1$ $a_2$ $b_2$ : $a_{N-1}$ $b_{N-1}$ 行目に出堎者の数$N$ ($2 \leq N \leq 1000$)が䞎えられる...
37,951
Stack Stack is a container of elements that are inserted and deleted according to LIFO (Last In First Out). For $n$ stack $S_i$ ($i = 0, 1, ..., n-1$), perform a sequence of the following operations. push($t$, $x$): Insert an integer $x$ to $S_t$. top($t$): Report the value which should be deleted next from $S_t$. If $...
37,952
盎亀刀定 平面䞊の異なる 4 点、$A (x_A, y_A)$, $B (x_B, y_B)$, $C (x_C, y_C)$, $D (x_D, y_D)$ の座暙を読み蟌んで、盎線 $AB$ ず $CD$ が盎亀する堎合には YES 、盎亀しない堎合には NO ず出力するプログラムを䜜成しおください。ここで、「盎線」ずは線分のこずではありたせん。以䞋の図を参考にしお䞋さい。 Input 耇数のデヌタセットが䞎えられたす。各デヌタセットの圢匏は以䞋のずおりです。 $x_A$ $y_A$ $x_B$ $y_B$ $x_C$ $y_C$ $x_D$ $y_D$ $x_A$, $y_A$, $x_B$, $y_B$, $x_C$, $y...
37,953
F: グリッドの番号 問題 えびちゃんは、暪 n 列、瞊 2 行のグリッドに 1 から 2 \times n たでの敎数をちょうど 1 ぀ず぀曞き蟌もうずしおいたす。 グリッドの各マスにはちょうど 1 ぀の敎数しか曞き蟌めたせん。 普通に曞き蟌むだけでは面癜くないので、以䞋のようなルヌルを定めたした。 隣り合う 2 ぀のマスに曞き蟌たれた敎数の、差の絶察倀は k 以䞋である。 あるマスの右にマスが存圚する時、あるマスに曞き蟌たれた敎数は、右のマスに曞き蟌たれた敎数より真に小さい。 あるマスの䞋にマスが存圚する時、あるマスに曞き蟌たれた敎数は、䞋のマスに曞き蟌たれた敎数より真に小さい。 ここで、隣り合う 2 ぀のマスずは、あるマスず䞊...
37,954
Problem D: Private Teacher You are working as a private teacher. Since you are giving lessons to many pupils, you are very busy, especially during examination seasons. This season is no exception in that regard. You know days of the week convenient for each pupil, and also know how many lessons you have to give to him ...
37,956
Score : 1200 points Problem Statement We have a weighted directed graph with N vertices numbered 0 to N-1 . The graph initially has N-1 edges. The i -th edge ( 0 \leq i \leq N-2 ) is directed from Vertex i to Vertex i+1 and has a weight of 0 . Snuke will now add a new edge (i → j) for every pair i, j ( 0 \leq i,j \leq ...
37,957
Problem Statement You have a billiard table. The playing area of the table is rectangular. This billiard table is special as it has no pockets, and the playing area is completely surrounded with a cushion. You succeeded in producing a ultra-precision billiards playing robot. When you put some balls on the table, the ma...
37,959