messages listlengths 3 3 | metadata dict |
|---|---|
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Foehn Phenomena\nIn the Kingdom of IOI, the wind always blows from sea to land. There are... | {
"code_size": 1083,
"language": "C++",
"problem_id": "p00559",
"submission_id": "s528591638"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke has\nN\nintegers:\n1,2,\\ldots,N\n.\nHe will choose\nK\nof them ... | {
"code_size": 123,
"language": "C",
"problem_id": "p03047",
"submission_id": "s601022067"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have a grid with\nN\nrows and\nN\ncolumns.\nThe cell at the\ni\n-th... | {
"code_size": 1332,
"language": "C++",
"problem_id": "p03956",
"submission_id": "s486959637"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nIn a flower bed, there are\nN\nflowers, numbered\n1,2,......,N\n. Init... | {
"code_size": 711,
"language": "C++",
"problem_id": "p03147",
"submission_id": "s058619850"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Gift Exchange Party\nA gift exchange party will be held at a school in TKB City.\nFor eve... | {
"code_size": 3515,
"language": "C++",
"problem_id": "p01100",
"submission_id": "s305295746"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Best Matched Pair\nYou are working for a worldwide game company as an engineer in Tokyo. ... | {
"code_size": 846,
"language": "C++",
"problem_id": "p01880",
"submission_id": "s176088390"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Dungeon\nBob is playing a popular game called \"Dungeon\". The game is played on a rectan... | {
"code_size": 529,
"language": "C",
"problem_id": "p00359",
"submission_id": "s604404859"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nGiven is a directed graph\nG\nwith\nN\nvertices and\nM\nedges.\nThe ve... | {
"code_size": 7575,
"language": "C",
"problem_id": "p02902",
"submission_id": "s037206744"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nIn programming, hexadecimal notation is often used.\nIn hexadecimal no... | {
"code_size": 202,
"language": "C",
"problem_id": "p03547",
"submission_id": "s169880608"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nAs a token of his gratitude, Takahashi has decided to give his mother ... | {
"code_size": 302,
"language": "C++",
"problem_id": "p03479",
"submission_id": "s855875779"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given an integer sequence of length\nn\n,\na_1, ..., a_n\n.\nL... | {
"code_size": 705,
"language": "C++",
"problem_id": "p03675",
"submission_id": "s136163340"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have an\nH\n-by-\nW\nmatrix.\nLet\na_{ij}\nbe the element at the\ni... | {
"code_size": 1357,
"language": "C",
"problem_id": "p03593",
"submission_id": "s558279008"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem B:\nErratic Sleep Habits\nPeter is a person with erratic sleep habits. He goes to... | {
"code_size": 1174,
"language": "C++",
"problem_id": "p01284",
"submission_id": "s596260196"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nFor a non-negative integer\nK\n, we define a fractal of level\nK\nas f... | {
"code_size": 1865,
"language": "C++",
"problem_id": "p02746",
"submission_id": "s824028938"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are four towns, numbered\n1,2,3\nand\n4\n.\nAlso, there are thre... | {
"code_size": 433,
"language": "C",
"problem_id": "p03130",
"submission_id": "s050488465"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nA museum exhibits\nN\njewels, Jewel\n1, 2, ..., N\n.\nThe coordinates ... | {
"code_size": 3459,
"language": "C++",
"problem_id": "p03099",
"submission_id": "s522083812"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nJoisino the magical girl has decided to turn every single digit that e... | {
"code_size": 765,
"language": "C",
"problem_id": "p03546",
"submission_id": "s842696151"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Round Table of Sages\n$N$ sages are sitting around a round table with $N$ seats. Each sag... | {
"code_size": 594,
"language": "C",
"problem_id": "p00390",
"submission_id": "s435153620"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Ayimok is a wizard.\nHis daily task is to arrange magical tiles in a line, and then cast ... | {
"code_size": 1809,
"language": "C++",
"problem_id": "p01734",
"submission_id": "s035756759"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke has a board with an\nN \\times N\ngrid, and\nN \\times N\ntiles.... | {
"code_size": 3299,
"language": "C++",
"problem_id": "p03928",
"submission_id": "s608819666"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\npeople standing on the\nx\n-axis.\nLet the coordinate of... | {
"code_size": 1430,
"language": "C",
"problem_id": "p03452",
"submission_id": "s285127434"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "You are practicing a juggle that involves in a number of square tiles.\nThey all look the... | {
"code_size": 7054,
"language": "C++",
"problem_id": "p01738",
"submission_id": "s854226986"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Trampoline\nA plurality of trampolines are arranged in a line at 10 m intervals. Each tra... | {
"code_size": 634,
"language": "C",
"problem_id": "p00357",
"submission_id": "s965391580"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Checkered Pattern\nYou have a cross-section paper with W x H squares, and each of them is... | {
"code_size": 851,
"language": "C",
"problem_id": "p00368",
"submission_id": "s213628550"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have a long seat of width\nX\ncentimeters.\nThere are many people w... | {
"code_size": 169,
"language": "C",
"problem_id": "p03548",
"submission_id": "s300220106"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere is a farm whose length and width are\nA\nyard and\nB\nyard, res... | {
"code_size": 129,
"language": "C",
"problem_id": "p03280",
"submission_id": "s626059876"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Tournament Chart\nIn 21XX, an annual programming contest, Japan Algorithmist GrandPrix (J... | {
"code_size": 1135,
"language": "C",
"problem_id": "p01957",
"submission_id": "s311004801"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nTakahashi loves takoyaki - a ball-shaped snack.\nWith a takoyaki machi... | {
"code_size": 195,
"language": "C",
"problem_id": "p02576",
"submission_id": "s443600634"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Recurring Decimals\nA decimal representation of an integer can be transformed to another ... | {
"code_size": 1153,
"language": "C",
"problem_id": "p00761",
"submission_id": "s500328594"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke has decided to play with\nN\ncards and a deque (that is, a doubl... | {
"code_size": 417,
"language": "C",
"problem_id": "p03820",
"submission_id": "s279582430"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem H:\nCompany Organization\nYou started a company a few years ago and fortunately i... | {
"code_size": 2542,
"language": "C++",
"problem_id": "p00911",
"submission_id": "s464611623"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem E:\nReading a Chord\nIn this problem, you are required to write a program that en... | {
"code_size": 2797,
"language": "C++",
"problem_id": "p01152",
"submission_id": "s894635840"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere is a string\ns\nof length\n3\nor greater.\nNo two neighboring ch... | {
"code_size": 494,
"language": "C++",
"problem_id": "p03863",
"submission_id": "s644923173"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem H:\nBingo\nA Bingo game is played by one gamemaster and several players. At the b... | {
"code_size": 3537,
"language": "C++",
"problem_id": "p00843",
"submission_id": "s505903302"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Cross Point\nFor given two segments\ns1\nand\ns2\n, print the coordinate of the cross poi... | {
"code_size": 1507,
"language": "C",
"problem_id": "p02295",
"submission_id": "s275109388"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Multi-ending Story\nYou are a programmer who loves bishojo games (a sub-genre of dating s... | {
"code_size": 1439,
"language": "C++",
"problem_id": "p01461",
"submission_id": "s286574821"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Coin Changing Problem\nFind the minimum number of coins to make change for\nn\ncents usin... | {
"code_size": 585,
"language": "C",
"problem_id": "p02314",
"submission_id": "s579681578"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSquid loves painting vertices in graphs.\nThere is a simple undirected... | {
"code_size": 1295,
"language": "C++",
"problem_id": "p03768",
"submission_id": "s869281726"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "I - The J-th Number\nProblem Statement\nYou are given\nN\nempty arrays,\nt_1, ..., t_n\n.... | {
"code_size": 3064,
"language": "C++",
"problem_id": "p01675",
"submission_id": "s920215278"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have\nN\nstrings of lowercase English letters:\nS_1, S_2, \\cdots, ... | {
"code_size": 5592,
"language": "C",
"problem_id": "p02587",
"submission_id": "s031756828"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke has come to a store that sells boxes containing balls. The store... | {
"code_size": 534,
"language": "C++",
"problem_id": "p03048",
"submission_id": "s978636647"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "C - Iyasugigappa\nProblem Statement\nThree animals Frog, Kappa (Water Imp) and Weasel are... | {
"code_size": 3857,
"language": "C++",
"problem_id": "p01669",
"submission_id": "s505871635"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem I:\nOperator\nThe customer telephone support center of the computer sales company... | {
"code_size": 1060,
"language": "C",
"problem_id": "p01367",
"submission_id": "s660407400"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke has an integer sequence\nA\nof length\nN\n.\nHe will freely choo... | {
"code_size": 615,
"language": "C++",
"problem_id": "p03309",
"submission_id": "s683690107"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nLimak can repeatedly remove one of the first two characters of a strin... | {
"code_size": 2033,
"language": "C",
"problem_id": "p02589",
"submission_id": "s638173118"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Railway Connection\nTokyo has a very complex railway system.\nFor example, there exists a... | {
"code_size": 2819,
"language": "C",
"problem_id": "p00763",
"submission_id": "s091204135"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have\nN\ngemstones labeled\n1\nthrough\nN\n.\nYou can perform the f... | {
"code_size": 2338,
"language": "C++",
"problem_id": "p03553",
"submission_id": "s505006417"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\nrectangular plate materials made of special metal called... | {
"code_size": 288,
"language": "C",
"problem_id": "p03193",
"submission_id": "s032735681"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\nchildren standing in a line from left to right. The acti... | {
"code_size": 1251,
"language": "C++",
"problem_id": "p02709",
"submission_id": "s807697711"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nGotou just received a dictionary. However, he doesn't recognize the la... | {
"code_size": 909,
"language": "C",
"problem_id": "p03393",
"submission_id": "s960281231"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nToday, Snuke will eat\nB\npieces of black chocolate and\nW\npieces of ... | {
"code_size": 2035,
"language": "C++",
"problem_id": "p03083",
"submission_id": "s577894598"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nTakahashi is not good at problems about trees in programming contests,... | {
"code_size": 685,
"language": "C++",
"problem_id": "p03724",
"submission_id": "s072025042"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\npersons called Person\n1\nthrough Person\nN\n.\nYou are ... | {
"code_size": 1269,
"language": "C++",
"problem_id": "p02573",
"submission_id": "s735358667"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nIn a public bath, there is a shower which emits water for\nT\nseconds ... | {
"code_size": 546,
"language": "C++",
"problem_id": "p03733",
"submission_id": "s199393590"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Star in Parentheses\nYou are given a string $S$, which is balanced parentheses with a sta... | {
"code_size": 726,
"language": "C++",
"problem_id": "p01945",
"submission_id": "s045272788"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nFind the number of sequences of\nN\nnon-negative integers\nA_1, A_2, .... | {
"code_size": 2056,
"language": "C",
"problem_id": "p02932",
"submission_id": "s407459224"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Least Common Multiple\nFind the least common multiple (LCM) of given\nn\nintegers.\nInput... | {
"code_size": 451,
"language": "C",
"problem_id": "p02469",
"submission_id": "s198955097"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have a string\ns\nconsisting of lowercase English letters.\nSnuke c... | {
"code_size": 644,
"language": "C",
"problem_id": "p03569",
"submission_id": "s172902403"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\nstudents and\nM\ncheckpoints on the\nxy\n-plane.\nThe co... | {
"code_size": 766,
"language": "C++",
"problem_id": "p03774",
"submission_id": "s493015404"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Maximum Sum Sequence\nGiven a sequence of numbers\na\n1\n,\na\n2\n,\na\n3\n, ...,\na\nn\n... | {
"code_size": 480,
"language": "C++",
"problem_id": "p00022",
"submission_id": "s563625247"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have a grid of\nH\nrows and\nW\ncolumns. Initially, there is a ston... | {
"code_size": 454,
"language": "C",
"problem_id": "p03937",
"submission_id": "s295809452"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Dungeon 2\nBob is playing a game called \"Dungeon 2\" which is the sequel to the popular ... | {
"code_size": 2055,
"language": "C++",
"problem_id": "p00384",
"submission_id": "s647381730"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere is a tree with\nN\nvertices numbered\n1\nto\nN\n.\nThe\ni\n-th e... | {
"code_size": 5152,
"language": "C",
"problem_id": "p02986",
"submission_id": "s981169025"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke is making sugar water in a beaker.\nInitially, the beaker is emp... | {
"code_size": 922,
"language": "C",
"problem_id": "p03599",
"submission_id": "s640892740"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem D:\nOff Balance\nYou are working for an administration office of the Internationa... | {
"code_size": 2743,
"language": "C",
"problem_id": "p00749",
"submission_id": "s344126314"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSelect any integer\nN\nbetween\n1000\nand\n2000\n(inclusive), and any ... | {
"code_size": 608,
"language": "C",
"problem_id": "p03528",
"submission_id": "s121255552"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou have just transferred to another world, and got a map of this worl... | {
"code_size": 3715,
"language": "C++",
"problem_id": "p01709",
"submission_id": "s469717750"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Knapsack Problem with Limitations II\nYou have $N$ items that you want to put them into a... | {
"code_size": 1611,
"language": "C++",
"problem_id": "p02322",
"submission_id": "s597205816"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are an integer sequence\nA_1,...,A_N\nconsisting of\nN\nterms, a... | {
"code_size": 622,
"language": "C++",
"problem_id": "p03821",
"submission_id": "s283470794"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Tally Counters\nA number of tally counters are placed in a row.\nPushing the button on a ... | {
"code_size": 1292,
"language": "C++",
"problem_id": "p01120",
"submission_id": "s739451016"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nAkari has\nn\nkinds of flowers, one of each kind.\nShe is going to cho... | {
"code_size": 976,
"language": "C",
"problem_id": "p02768",
"submission_id": "s104067958"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nAtCoDeer the deer and his friend TopCoDeer is playing a game.\nThe gam... | {
"code_size": 627,
"language": "C++",
"problem_id": "p03967",
"submission_id": "s308515817"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Capitalize\nWrite a program which replace all the lower-case letters of a given text with... | {
"code_size": 231,
"language": "C",
"problem_id": "p00020",
"submission_id": "s953624398"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nConsider a circle whose perimeter is divided by\nN\npoints into\nN\nar... | {
"code_size": 1858,
"language": "C++",
"problem_id": "p03057",
"submission_id": "s215135687"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Caesar Cipher\nIn cryptography, Caesar cipher is one of the simplest and most widely know... | {
"code_size": 620,
"language": "C",
"problem_id": "p00017",
"submission_id": "s723023393"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nTakahashi has decided to give a string to his mother.\nThe\nvalue\nof ... | {
"code_size": 1134,
"language": "C++",
"problem_id": "p03430",
"submission_id": "s698094381"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Tangent to a Circle\nFind the tangent lines between a point $p$ and a circle $c$.\nInput\... | {
"code_size": 1140,
"language": "C",
"problem_id": "p02310",
"submission_id": "s556209422"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nImagine a game played on a line. Initially, the player is located at p... | {
"code_size": 1218,
"language": "C++",
"problem_id": "p03940",
"submission_id": "s683327598"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nGiven is a sequence of\nN\ndigits\na_1a_2\\ldots a_N\n, where each ele... | {
"code_size": 1280,
"language": "C++",
"problem_id": "p02736",
"submission_id": "s560670472"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem E:\nRabbit Game Playing\nHonestly, a rabbit does not matter.\nThere is a rabbit p... | {
"code_size": 781,
"language": "C",
"problem_id": "p01499",
"submission_id": "s947551948"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nLet\nw\nbe a string consisting of lowercase letters.\nWe will call\nw\... | {
"code_size": 475,
"language": "C++",
"problem_id": "p04012",
"submission_id": "s717624001"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\n\"Pizza At\", a fast food chain, offers three kinds of pizza: \"A-pizz... | {
"code_size": 551,
"language": "C",
"problem_id": "p03371",
"submission_id": "s469239948"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given positive integers\nA\nand\nB\n.\nFind the\nK\n-th larges... | {
"code_size": 411,
"language": "C++",
"problem_id": "p03106",
"submission_id": "s314002929"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\nchildren in AtCoder Kindergarten. Mr. Evi will arrange t... | {
"code_size": 147,
"language": "C",
"problem_id": "p04029",
"submission_id": "s158927458"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nGiven is a string\nS\n. Let\nT\nbe the concatenation of\nK\ncopies of\... | {
"code_size": 1169,
"language": "C++",
"problem_id": "p02891",
"submission_id": "s040623339"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Convex Cut\nAs shown in the figure above, cut a convex polygon\ng\nby a line\np1p2\nand p... | {
"code_size": 5175,
"language": "C++",
"problem_id": "p02302",
"submission_id": "s461828459"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Slimming Plan\nChokudai loves eating so much. However, his doctor Akensho told him that h... | {
"code_size": 889,
"language": "C",
"problem_id": "p01946",
"submission_id": "s029309726"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nGiven is a string\nS\nconsisting of\nL\nand\nR\n.\nLet\nN\nbe the leng... | {
"code_size": 1038,
"language": "C",
"problem_id": "p02954",
"submission_id": "s255038159"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Parallel/Orthogonal\nFor given two lines\ns1\nand\ns2\n, print \"2\" if they are parallel... | {
"code_size": 746,
"language": "C",
"problem_id": "p02293",
"submission_id": "s622371498"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThis is an output-only problem. You shouldn't read anything from the i... | {
"code_size": 2273,
"language": "C++",
"problem_id": "p02592",
"submission_id": "s047810861"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem D:\nDigits on the Floor\nTaro attempts to tell digits to Hanako by putting straig... | {
"code_size": 4363,
"language": "C",
"problem_id": "p00867",
"submission_id": "s333068212"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe will play a one-player game using a number line and\nN\npieces.\nFi... | {
"code_size": 657,
"language": "C++",
"problem_id": "p03137",
"submission_id": "s380669456"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "The Smallest Window I\nFor a given array $a_1, a_2, a_3, ... , a_N$ of $N$ elements and a... | {
"code_size": 697,
"language": "C++",
"problem_id": "p02354",
"submission_id": "s733690459"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nKenkoooo is planning a trip in Republic of Snuke.\nIn this country, th... | {
"code_size": 4954,
"language": "C",
"problem_id": "p03305",
"submission_id": "s906104155"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nGiven is an integer\nr\n.\nHow many times is the area of a circle of r... | {
"code_size": 104,
"language": "C",
"problem_id": "p02859",
"submission_id": "s424755669"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have\nN\nweights indexed\n1\nto\nN\n. The \bmass of the weight inde... | {
"code_size": 488,
"language": "C",
"problem_id": "p03012",
"submission_id": "s220973689"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke loves puzzles.\nToday, he is working on a puzzle using\nS\n- and... | {
"code_size": 348,
"language": "C++",
"problem_id": "p03797",
"submission_id": "s629864792"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nNagase is a top student in high school. One day, she's analyzing some ... | {
"code_size": 534,
"language": "C",
"problem_id": "p03394",
"submission_id": "s895797221"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem A:\nEqual Sum Sets\nLet us consider sets of positive integers less than or equal ... | {
"code_size": 655,
"language": "C++",
"problem_id": "p00914",
"submission_id": "s734992148"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nN\nproblems are proposed for an upcoming contest. Problem\ni\nhas an i... | {
"code_size": 1841,
"language": "C",
"problem_id": "p02824",
"submission_id": "s143969830"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.