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": "Problem Statement\nFind the number of the possible tuples of sequences\n(A_0,A_1,...,A_N)... | {
"code_size": 6447,
"language": "C",
"problem_id": "p03349",
"submission_id": "s221618299"
} |
[
{
"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:\nAnd Then There Was One\nLet’s play a stone removing game.\nInitially,\nn\nsto... | {
"code_size": 445,
"language": "C",
"problem_id": "p00854",
"submission_id": "s588995791"
} |
[
{
"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 a tree with\nN\nvertices\n1,2,\\ldots,N\n, and positive ... | {
"code_size": 1953,
"language": "C",
"problem_id": "p03026",
"submission_id": "s432954260"
} |
[
{
"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\nN×N\ncheckerboard.\nFrom the square at the upper left corn... | {
"code_size": 1186,
"language": "C++",
"problem_id": "p03897",
"submission_id": "s205910405"
} |
[
{
"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 C:\nStopped Watches\nIn the middle of Tyrrhenian Sea, there is a small volcanic i... | {
"code_size": 2123,
"language": "C++",
"problem_id": "p00866",
"submission_id": "s541874693"
} |
[
{
"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: It's our delight!!\nYou are a student of University of Aizu.\nAnd you work par... | {
"code_size": 867,
"language": "C",
"problem_id": "p00647",
"submission_id": "s594172766"
} |
[
{
"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 F\nSecrets in Shadows\nLong long ago, there were several identical columns (or cy... | {
"code_size": 2348,
"language": "C++",
"problem_id": "p00727",
"submission_id": "s523059602"
} |
[
{
"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": "Go around the Labyrinth\nExplorer Taro got a floor plan of a labyrinth.\nThe floor of thi... | {
"code_size": 1578,
"language": "C",
"problem_id": "p01107",
"submission_id": "s557881752"
} |
[
{
"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 integers between\n1\nand\nK\n(inclusive) satisfying... | {
"code_size": 301,
"language": "C",
"problem_id": "p03178",
"submission_id": "s472046794"
} |
[
{
"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\nNukes has an integer that can be represented as the bitwise OR of one ... | {
"code_size": 750,
"language": "C",
"problem_id": "p03708",
"submission_id": "s076837893"
} |
[
{
"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 make three ... | {
"code_size": 1532,
"language": "C++",
"problem_id": "p03310",
"submission_id": "s063311995"
} |
[
{
"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": "Factorial\nWrite a program which reads an integer\nn\nand prints the factorial of\nn\n. Y... | {
"code_size": 180,
"language": "C",
"problem_id": "p00019",
"submission_id": "s419938665"
} |
[
{
"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 string\nS\nconsisting of three kinds of letters:\na\n,\nb\... | {
"code_size": 765,
"language": "C++",
"problem_id": "p03534",
"submission_id": "s643815104"
} |
[
{
"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, 2, \\ldots, N\n.\nFor ... | {
"code_size": 1720,
"language": "C",
"problem_id": "p03175",
"submission_id": "s318829180"
} |
[
{
"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:\nMirror Illusion\nA rich man has a square room with mirrors for security or ju... | {
"code_size": 1584,
"language": "C++",
"problem_id": "p00792",
"submission_id": "s872597955"
} |
[
{
"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 sequence\na=\\{a_1,a_2,a_3,......\\}\nis determined as follows:\nThe... | {
"code_size": 512,
"language": "C++",
"problem_id": "p03146",
"submission_id": "s407596172"
} |
[
{
"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": "Tax Rate Changed\nVAT (value-added tax) is a tax imposed at a certain rate proportional t... | {
"code_size": 546,
"language": "C",
"problem_id": "p00773",
"submission_id": "s831266463"
} |
[
{
"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 Takahashi Kingdom, there is an archipelago of\nN\nislands, called T... | {
"code_size": 471,
"language": "C",
"problem_id": "p03645",
"submission_id": "s458505810"
} |
[
{
"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 Heap\nA binary heap which satisfies max-heap property is called max-heap. In a ma... | {
"code_size": 748,
"language": "C++",
"problem_id": "p02288",
"submission_id": "s781619035"
} |
[
{
"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:\nStarship Hakodate-maru\nThe surveyor starship Hakodate-maru is famous for her... | {
"code_size": 577,
"language": "C++",
"problem_id": "p00803",
"submission_id": "s132154806"
} |
[
{
"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 train going from Station\nA\nto Station\nB\nthat costs\nX\n... | {
"code_size": 154,
"language": "C++",
"problem_id": "p03219",
"submission_id": "s698191649"
} |
[
{
"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 factory, there are\nN\nrobots placed on a number line.\nRobot\ni\... | {
"code_size": 929,
"language": "C",
"problem_id": "p02796",
"submission_id": "s824821738"
} |
[
{
"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": "0-1 Knapsack Problem II\nYou have\nN\nitems that you want to put them into a knapsack. It... | {
"code_size": 844,
"language": "C++",
"problem_id": "p02319",
"submission_id": "s093816170"
} |
[
{
"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 C:\nNagashi Soumen\nMr. Natsume, the captain of a baseball club, decided to hold ... | {
"code_size": 3600,
"language": "C++",
"problem_id": "p01218",
"submission_id": "s924449350"
} |
[
{
"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 received\notoshidama\n(New Year's money gifts) from\nN\nof h... | {
"code_size": 329,
"language": "C",
"problem_id": "p03110",
"submission_id": "s359061676"
} |
[
{
"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\nbags, each containing two white balls. The\ni\n-th box c... | {
"code_size": 5153,
"language": "C",
"problem_id": "p03735",
"submission_id": "s279379747"
} |
[
{
"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. Sum of QQ\nYou received a card with an integer $S$ and a\nmultiplication table... | {
"code_size": 722,
"language": "C",
"problem_id": "p02012",
"submission_id": "s836389765"
} |
[
{
"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 start with the number\n0\nand you want to reach the number\nN\n.\n... | {
"code_size": 2574,
"language": "C",
"problem_id": "p02669",
"submission_id": "s042369308"
} |
[
{
"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\nstones, numbered\n1, 2, \\ldots, N\n.\nFor each\ni\n(\n1... | {
"code_size": 1954,
"language": "C++",
"problem_id": "p03185",
"submission_id": "s833812409"
} |
[
{
"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 call a string\nx\ngood\nif it satisfies the following conditio... | {
"code_size": 879,
"language": "C++",
"problem_id": "p03769",
"submission_id": "s018650154"
} |
[
{
"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 four integers:\nH\n,\nW\n,\nh\nand\nw\n(\n1 ≤ h ≤ H\n,\n... | {
"code_size": 748,
"language": "C",
"problem_id": "p03689",
"submission_id": "s834558356"
} |
[
{
"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 and Aoki will play a game using a grid with\nH\nrows and\nW\... | {
"code_size": 856,
"language": "C",
"problem_id": "p03203",
"submission_id": "s483961188"
} |
[
{
"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": "Counting Sort\nCounting sort can be used for sorting elements in an array which each of t... | {
"code_size": 655,
"language": "C++",
"problem_id": "p02275",
"submission_id": "s382785813"
} |
[
{
"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:\nTop Spinning\nSpinning tops are one of the most popular and the most traditio... | {
"code_size": 5231,
"language": "C++",
"problem_id": "p00871",
"submission_id": "s288964732"
} |
[
{
"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 square-shaped grid with\nN\nvertical rows and\nN\nhorizonta... | {
"code_size": 1327,
"language": "C++",
"problem_id": "p03792",
"submission_id": "s552912947"
} |
[
{
"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\ndots in a two-dimensional plane. The coordinates of the\... | {
"code_size": 1714,
"language": "C++",
"problem_id": "p02998",
"submission_id": "s220460490"
} |
[
{
"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": "Greatest Common Divisor\nWrite a program which finds the greatest common divisor of two n... | {
"code_size": 291,
"language": "C++",
"problem_id": "p02256",
"submission_id": "s602757708"
} |
[
{
"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 three integers\nA, B\nand\nC\n.\nDetermine if there exis... | {
"code_size": 302,
"language": "C++",
"problem_id": "p03079",
"submission_id": "s573448839"
} |
[
{
"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": "Breadth First Search\nWrite a program which reads an directed graph $G = (V, E)$, and fin... | {
"code_size": 967,
"language": "C++",
"problem_id": "p02239",
"submission_id": "s958812037"
} |
[
{
"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 square grid with\nN\nrows and\nM\ncolumns.\nEach square con... | {
"code_size": 1549,
"language": "C",
"problem_id": "p03133",
"submission_id": "s583165359"
} |
[
{
"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": "Beautiful Currency\nKM country has\nN\nkinds of coins and each coin has its value\na_i\n.... | {
"code_size": 705,
"language": "C",
"problem_id": "p01422",
"submission_id": "s240119830"
} |
[
{
"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\nConstruct a sequence\na\n= {\na_1,\\ a_2,\\ ...,\\ a_{2^{M + 1}}\n} of... | {
"code_size": 1060,
"language": "C",
"problem_id": "p03046",
"submission_id": "s447501013"
} |
[
{
"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 sequence of length\nN\n:\na = (a_1, a_2, ..., a_N)\n.\nHere... | {
"code_size": 1548,
"language": "C++",
"problem_id": "p03690",
"submission_id": "s643452460"
} |
[
{
"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": "Balls and Boxes 12\nBalls\nBoxes\nAny way\nAt most one ball\nAt least one ball\nDistingui... | {
"code_size": 1740,
"language": "C++",
"problem_id": "p02342",
"submission_id": "s208652472"
} |
[
{
"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 stands on a number line. He has\nL\nears, and he will walk along... | {
"code_size": 1408,
"language": "C++",
"problem_id": "p03132",
"submission_id": "s648728821"
} |
[
{
"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 undirected graph\nG\nwith\nN\nvertices numbered\n1\nto\nN\n... | {
"code_size": 678,
"language": "C",
"problem_id": "p02726",
"submission_id": "s515603932"
} |
[
{
"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 circle with a circumference of\nL\n.\nEach point on the cir... | {
"code_size": 1287,
"language": "C++",
"problem_id": "p03747",
"submission_id": "s990757226"
} |
[
{
"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 G:\nDefend the Bases\nA country Gizevom is being under a sneak and fierce attack ... | {
"code_size": 1968,
"language": "C",
"problem_id": "p01279",
"submission_id": "s651632394"
} |
[
{
"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": 1980,
"language": "C++",
"problem_id": "p02293",
"submission_id": "s867731908"
} |
[
{
"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 F:\nSlim Span\nGiven an undirected weighted graph\nG\n, you should find one of sp... | {
"code_size": 1581,
"language": "C",
"problem_id": "p00859",
"submission_id": "s595927985"
} |
[
{
"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 positive even number\nN\n.\nFind the number of strings\ns\n... | {
"code_size": 1417,
"language": "C++",
"problem_id": "p02875",
"submission_id": "s735261963"
} |
[
{
"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:\nWhere's Wally\nDo you know the famous series of children's books named \"Wher... | {
"code_size": 2746,
"language": "C++",
"problem_id": "p00891",
"submission_id": "s628080280"
} |
[
{
"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": "Breadth First Search\nWrite a program which reads an directed graph $G = (V, E)$, and fin... | {
"code_size": 1059,
"language": "C",
"problem_id": "p02239",
"submission_id": "s665425893"
} |
[
{
"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\ntowns on a plane. The\ni\n-th town is located at the coo... | {
"code_size": 1856,
"language": "C",
"problem_id": "p03684",
"submission_id": "s764741200"
} |
[
{
"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\npoints in the two-dimensional plane. The coordinates of th... | {
"code_size": 318,
"language": "C",
"problem_id": "p02595",
"submission_id": "s841220818"
} |
[
{
"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\nDetermine if there exists a sequence obtained by permuting\n1,2,...,N\... | {
"code_size": 679,
"language": "C",
"problem_id": "p03421",
"submission_id": "s105255966"
} |
[
{
"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 rooted binary tree with\nN\nvertices, where the vertices are... | {
"code_size": 2147,
"language": "C++",
"problem_id": "p02648",
"submission_id": "s408575512"
} |
[
{
"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": "Four-Coloring\nYou are given a planar embedding of a connected graph. Each vertex of the ... | {
"code_size": 2246,
"language": "C++",
"problem_id": "p00975",
"submission_id": "s907976436"
} |
[
{
"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 going to hold a competition of one-to-one game called AtCoder ... | {
"code_size": 899,
"language": "C++",
"problem_id": "p02697",
"submission_id": "s792631391"
} |
[
{
"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:\nCompress Files\nYour computer is a little old-fashioned. Its CPU is slow, its... | {
"code_size": 1575,
"language": "C++",
"problem_id": "p01203",
"submission_id": "s587194614"
} |
[
{
"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": "Reverse Sequence\nWrite a program which reverses a given string\nstr\n.\nInput\nstr\n(the... | {
"code_size": 223,
"language": "C",
"problem_id": "p00006",
"submission_id": "s903914119"
} |
[
{
"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 two integers\nA\nand\nB\n.\nFind the largest value among... | {
"code_size": 272,
"language": "C",
"problem_id": "p03337",
"submission_id": "s841506384"
} |
[
{
"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\nDr. Suposupo developed a programming language called Shipura. Shipura ... | {
"code_size": 1180,
"language": "C",
"problem_id": "p01682",
"submission_id": "s424591383"
} |
[
{
"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 permutation\nP\nof\n\\{1, 2, \\ldots, N\\}\n.\nFor a pair\n... | {
"code_size": 2032,
"language": "C",
"problem_id": "p02919",
"submission_id": "s799944123"
} |
[
{
"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:\nGoldbach's Conjecture\nGoldbach's Conjecture:\nFor any even number\nn\ngreate... | {
"code_size": 444,
"language": "C",
"problem_id": "p00780",
"submission_id": "s836297620"
} |
[
{
"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 integers\nN,\\ A\nand\nB\n.\nDetermine if there exists a... | {
"code_size": 1703,
"language": "C++",
"problem_id": "p03097",
"submission_id": "s690585710"
} |
[
{
"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 a string\nS\n. Each character of\nS\nis uppercase or low... | {
"code_size": 653,
"language": "C++",
"problem_id": "p03289",
"submission_id": "s430337300"
} |
[
{
"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\nOn a two-dimensional plane, there are\nm\nlines drawn parallel to the\... | {
"code_size": 926,
"language": "C++",
"problem_id": "p03764",
"submission_id": "s603376661"
} |
[
{
"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 contest is\nCODEFESTIVAL\n, which can be shortened to the string\... | {
"code_size": 355,
"language": "C++",
"problem_id": "p03957",
"submission_id": "s813210681"
} |
[
{
"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": "Carpenters' Language\nInternational Carpenters Professionals Company (ICPC) is a top cons... | {
"code_size": 468,
"language": "C++",
"problem_id": "p01457",
"submission_id": "s344093761"
} |
[
{
"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 a string\nS\nof length\nN\n.\nInitially, all characters in\nS... | {
"code_size": 1706,
"language": "C",
"problem_id": "p02538",
"submission_id": "s206065170"
} |
[
{
"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\npoints on a number line,\ni\n-th of which is placed on c... | {
"code_size": 2523,
"language": "C++",
"problem_id": "p02543",
"submission_id": "s965179181"
} |
[
{
"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\nIbis is fighting with a monster.\nThe\nhealth\nof the monster is\nH\n.... | {
"code_size": 644,
"language": "C",
"problem_id": "p02787",
"submission_id": "s743282399"
} |
[
{
"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 Statement\nYou are parking at a parking lot. You can choose from the following tw... | {
"code_size": 175,
"language": "C",
"problem_id": "p03501",
"submission_id": "s777119027"
} |
[
{
"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 string\nx\nof length\nN\n.\nInitially, every character in\... | {
"code_size": 2169,
"language": "C++",
"problem_id": "p02653",
"submission_id": "s101187055"
} |
[
{
"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\nPrint the circumference of a circle of radius\nR\n.\nConstraints\n1 \\... | {
"code_size": 140,
"language": "C",
"problem_id": "p02705",
"submission_id": "s931151431"
} |
[
{
"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 are integers\na,b,c\nand\nd\n.\nIf\nx\nand\ny\nare integers and\... | {
"code_size": 374,
"language": "C",
"problem_id": "p02553",
"submission_id": "s577627069"
} |
[
{
"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 each of the\nK^{NM}\nways to write an integer between\n1\nand\nK\n... | {
"code_size": 1967,
"language": "C++",
"problem_id": "p02896",
"submission_id": "s976813567"
} |
[
{
"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 an integer sequence of length\nN\n:\na_1, a_2, ..., a_N\n.\nY... | {
"code_size": 2405,
"language": "C",
"problem_id": "p03413",
"submission_id": "s517263666"
} |
[
{
"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 conducted a survey on newspaper subscriptions.\nMore specifically, ... | {
"code_size": 365,
"language": "C++",
"problem_id": "p03139",
"submission_id": "s079119476"
} |
[
{
"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:\nVampirish Night\nThere is a vampire family of\nN\nmembers. Vampires are also... | {
"code_size": 435,
"language": "C",
"problem_id": "p00605",
"submission_id": "s611361827"
} |
[
{
"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\nfriends of Takahashi has come to a theme park.\nTo ride the most po... | {
"code_size": 325,
"language": "C++",
"problem_id": "p02898",
"submission_id": "s655718347"
} |
[
{
"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": "E - Parentheses\nProblem Statement\nYou are given $n$ strings $\\mathit{str}_1, \\mathit{... | {
"code_size": 1443,
"language": "C++",
"problem_id": "p01784",
"submission_id": "s001167925"
} |
[
{
"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 having a barbeque party.\nAt the party, he will make\nN\nserv... | {
"code_size": 468,
"language": "C",
"problem_id": "p04047",
"submission_id": "s410888256"
} |
[
{
"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:\nBitwise Kingdom\nIn the Bitwise Kingdom, located somewhere in the universe, t... | {
"code_size": 1671,
"language": "C",
"problem_id": "p01261",
"submission_id": "s232179435"
} |
[
{
"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": "Lexicographical Comparison\nCompare given two sequence $A = \\{a_0, a_1, ..., a_{n-1}\\}$... | {
"code_size": 675,
"language": "C",
"problem_id": "p02442",
"submission_id": "s797449826"
} |
[
{
"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\nH\nrows and\nW\ncolumns of squares.\nSnuke is pai... | {
"code_size": 686,
"language": "C",
"problem_id": "p03640",
"submission_id": "s958119377"
} |
[
{
"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 wants a directed graph that satisfies the following ... | {
"code_size": 1661,
"language": "C++",
"problem_id": "p03461",
"submission_id": "s460531115"
} |
[
{
"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 a sequence\na = \\{a_1, ..., a_N\\}\nwith all zeros, and... | {
"code_size": 7356,
"language": "C",
"problem_id": "p03554",
"submission_id": "s760807374"
} |
[
{
"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 a string\nS\nof length\nN\nconsisting of lowercase Engli... | {
"code_size": 708,
"language": "C++",
"problem_id": "p03338",
"submission_id": "s803512770"
} |
[
{
"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 tree with\nN\nvertices and\nN-1\nedges, respectively numbere... | {
"code_size": 930,
"language": "C++",
"problem_id": "p02617",
"submission_id": "s023367764"
} |
[
{
"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": "Taro's Shopping\nMammy decided to give Taro his first shopping experience.\nMammy tells h... | {
"code_size": 583,
"language": "C",
"problem_id": "p01101",
"submission_id": "s062429133"
} |
[
{
"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\na\nof length\nN\n.\nHow many permut... | {
"code_size": 2356,
"language": "C++",
"problem_id": "p03842",
"submission_id": "s051264561"
} |
[
{
"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": "Tree Allocation\nA tree is one of the most popular data structures in computer science.\n... | {
"code_size": 2597,
"language": "C++",
"problem_id": "p01512",
"submission_id": "s277158401"
} |
[
{
"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:\nPipeline Scheduling\nAn\narithmetic pipeline\nis designed to process more tha... | {
"code_size": 709,
"language": "C",
"problem_id": "p00784",
"submission_id": "s736855898"
} |
[
{
"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": "Priority Queue\nA priority queue is a data structure which maintains a set $S$ of element... | {
"code_size": 1066,
"language": "C++",
"problem_id": "p02289",
"submission_id": "s861219375"
} |
[
{
"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 a positive integer\nN\n.\nFind the number of the pairs o... | {
"code_size": 1432,
"language": "C",
"problem_id": "p03847",
"submission_id": "s145336606"
} |
[
{
"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 strings\nS\nand\nT\nconsisting of lowercase English lett... | {
"code_size": 747,
"language": "C",
"problem_id": "p03252",
"submission_id": "s902541574"
} |
[
{
"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 board with a\n2 \\times N\ngrid.\nSnuke covered the board wi... | {
"code_size": 783,
"language": "C",
"problem_id": "p03626",
"submission_id": "s777814132"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.