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": "Hit and Blow\nLet's play Hit and Blow game.\nA\nimagines four numbers and\nB\nguesses the... | {
"code_size": 497,
"language": "C++",
"problem_id": "p00025",
"submission_id": "s301768736"
} |
[
{
"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\nHow many infinite sequences\na_1, a_2, ...\nconsisting of {\n{1, ... ,... | {
"code_size": 576,
"language": "C",
"problem_id": "p03766",
"submission_id": "s775338143"
} |
[
{
"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": "Handsel\nAlice and Brown are brothers in a family and each receives pocket money in celeb... | {
"code_size": 119,
"language": "C",
"problem_id": "p00352",
"submission_id": "s291435170"
} |
[
{
"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 nonnegative integers\na\nand\nb\n(\na ≤ b\n), and a posi... | {
"code_size": 327,
"language": "C++",
"problem_id": "p03861",
"submission_id": "s160732681"
} |
[
{
"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 grid with\nH\nhorizontal rows and\nW\nvertical columns.\nLe... | {
"code_size": 441,
"language": "C",
"problem_id": "p03184",
"submission_id": "s683372503"
} |
[
{
"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 two buttons, one of size\nA\nand one of size\nB\n.\nWhen you... | {
"code_size": 251,
"language": "C",
"problem_id": "p03071",
"submission_id": "s291365245"
} |
[
{
"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\nN\n.\nFind a triple of positive integers\nh\... | {
"code_size": 422,
"language": "C",
"problem_id": "p03589",
"submission_id": "s195278253"
} |
[
{
"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": "Multiplication of Big Integers\nGiven two integers $A$ and $B$, compute the product, $A \... | {
"code_size": 5439,
"language": "C++",
"problem_id": "p02474",
"submission_id": "s724842463"
} |
[
{
"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": "Shell Sort\nShell Sort is a generalization of\nInsertion Sort\nto arrange a list of $n$ e... | {
"code_size": 1030,
"language": "C++",
"problem_id": "p02262",
"submission_id": "s511397216"
} |
[
{
"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": "Official House\nYou manage 4 buildings, each of which has 3 floors, each of which consist... | {
"code_size": 599,
"language": "C++",
"problem_id": "p02409",
"submission_id": "s541671428"
} |
[
{
"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 programming competition site\nAtCode\nprovides algorithmic problems.... | {
"code_size": 951,
"language": "C",
"problem_id": "p03290",
"submission_id": "s801202242"
} |
[
{
"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:\nMinimal Backgammon\nHere is a very simple variation of the game backgammon, n... | {
"code_size": 467,
"language": "C",
"problem_id": "p00856",
"submission_id": "s821157108"
} |
[
{
"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\nDistribution Center\nThe factory of the Impractically Complicated Products Cor... | {
"code_size": 929,
"language": "C",
"problem_id": "p00948",
"submission_id": "s755396734"
} |
[
{
"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 permutation\np = (p_1, \\ldots, p_N)\nof\n\\{ 1, \\ldo... | {
"code_size": 1045,
"language": "C++",
"problem_id": "p03092",
"submission_id": "s213127945"
} |
[
{
"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\nIroha has a sequence of\nN\nstrings\ns_1, s_2, ..., s_N\n.\nShe will c... | {
"code_size": 2041,
"language": "C++",
"problem_id": "p04042",
"submission_id": "s487918235"
} |
[
{
"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\nPlacing Medals on a Binary Tree\nYou have drawn a chart of a perfect binary tr... | {
"code_size": 1129,
"language": "C++",
"problem_id": "p00952",
"submission_id": "s628249003"
} |
[
{
"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:\nTraffic Analysis\nThere are two cameras which observe the up line and the dow... | {
"code_size": 491,
"language": "C++",
"problem_id": "p00615",
"submission_id": "s132245662"
} |
[
{
"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 D\nContent Delivery\nYou are given a computer network with n nodes. This network ... | {
"code_size": 1632,
"language": "C++",
"problem_id": "p01793",
"submission_id": "s675765189"
} |
[
{
"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": "Matrix-like Computation\nYour task is to develop a tiny little part of spreadsheet softwa... | {
"code_size": 576,
"language": "C",
"problem_id": "p00102",
"submission_id": "s927976983"
} |
[
{
"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\nN\nsticks that are distinguishable from each other. The... | {
"code_size": 679,
"language": "C",
"problem_id": "p02888",
"submission_id": "s698854553"
} |
[
{
"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:\nDragon's Cruller\nDragon's Cruller is a sliding puzzle on a torus. The torus ... | {
"code_size": 2002,
"language": "C++",
"problem_id": "p00918",
"submission_id": "s137112487"
} |
[
{
"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 all integers between\n1\nand\n2N\n, inclusive.\nSnuke wants t... | {
"code_size": 1499,
"language": "C++",
"problem_id": "p03877",
"submission_id": "s807644752"
} |
[
{
"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 throws\nN\ndice, each having\nK\nsides with all integers fro... | {
"code_size": 2118,
"language": "C",
"problem_id": "p03270",
"submission_id": "s092373264"
} |
[
{
"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+M\nballs, each of which has an integer written on it.\nIt i... | {
"code_size": 308,
"language": "C++",
"problem_id": "p02729",
"submission_id": "s260700079"
} |
[
{
"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:\nPetoris\nYou are playing a puzzle game named\npetoris\n. It is played with a ... | {
"code_size": 2047,
"language": "C++",
"problem_id": "p01214",
"submission_id": "s871018274"
} |
[
{
"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": "Segment Intersections: Manhattan Geometry\nFor given $n$ segments which are parallel to X... | {
"code_size": 4677,
"language": "C",
"problem_id": "p02304",
"submission_id": "s677895507"
} |
[
{
"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": "Heat Stroke\nWe have had record hot temperatures this summer. To avoid heat stroke, you d... | {
"code_size": 399,
"language": "C",
"problem_id": "p00378",
"submission_id": "s625593714"
} |
[
{
"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": "Billiards Sorting\nRotation is one of several popular pocket billiards games.\nIt uses 1... | {
"code_size": 5244,
"language": "C++",
"problem_id": "p01505",
"submission_id": "s702949698"
} |
[
{
"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\nrabbits, numbered\n1, 2, \\ldots, N\n.\nFor each\ni, j\n... | {
"code_size": 1303,
"language": "C++",
"problem_id": "p03180",
"submission_id": "s872607167"
} |
[
{
"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 a six-sided die. Each of its six sides ... | {
"code_size": 487,
"language": "C++",
"problem_id": "p03817",
"submission_id": "s863491297"
} |
[
{
"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:\nControlled Tournament\nNational Association of Tennis is planning to hold a t... | {
"code_size": 1327,
"language": "C++",
"problem_id": "p01176",
"submission_id": "s736425864"
} |
[
{
"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:\nSpace Coconut Crab II\nA space hunter, Ken Marineblue traveled the universe, ... | {
"code_size": 860,
"language": "C++",
"problem_id": "p01163",
"submission_id": "s851351248"
} |
[
{
"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 numbered\n1\nto\nN\n. The\ni\n-th edg... | {
"code_size": 3234,
"language": "C++",
"problem_id": "p02728",
"submission_id": "s127435358"
} |
[
{
"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": "Non-redundant Drive\nThe people of JAG kingdom hate redundancy. For example, the N cities... | {
"code_size": 3523,
"language": "C++",
"problem_id": "p01890",
"submission_id": "s020154897"
} |
[
{
"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\nsquares in a row.\nThe leftmost square contains the inte... | {
"code_size": 422,
"language": "C",
"problem_id": "p03666",
"submission_id": "s995661979"
} |
[
{
"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\nzeros and\nM\nones written on a blackboard.\nStarting fr... | {
"code_size": 939,
"language": "C++",
"problem_id": "p03825",
"submission_id": "s887846198"
} |
[
{
"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": "Help the Princess!\nThe people of a certain kingdom make a revolution against the bad gov... | {
"code_size": 1815,
"language": "C++",
"problem_id": "p01881",
"submission_id": "s084266666"
} |
[
{
"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\nintegers,\nA_1, A_2, ..., A_N\n, arranged in a row in th... | {
"code_size": 546,
"language": "C",
"problem_id": "p03062",
"submission_id": "s900740608"
} |
[
{
"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\nconsisting of digits between\n1\nand\n9\n, ... | {
"code_size": 539,
"language": "C",
"problem_id": "p03999",
"submission_id": "s936352286"
} |
[
{
"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 work on\nK\ndays of his choice from the\nN\nd... | {
"code_size": 675,
"language": "C",
"problem_id": "p02721",
"submission_id": "s893067796"
} |
[
{
"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\nM\nchairs arranged in a line. The coordinate of the\ni\n-th... | {
"code_size": 1614,
"language": "C++",
"problem_id": "p03686",
"submission_id": "s058307297"
} |
[
{
"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": 1339,
"language": "C++",
"problem_id": "p00784",
"submission_id": "s852807042"
} |
[
{
"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\nbracket sequence\nis a string that is one of the following:\nAn emp... | {
"code_size": 2235,
"language": "C",
"problem_id": "p02686",
"submission_id": "s553192382"
} |
[
{
"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 ball will bounce along a number line, making\nN + 1\nbounces. It wil... | {
"code_size": 306,
"language": "C",
"problem_id": "p03000",
"submission_id": "s662852843"
} |
[
{
"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\npeople are standing in a queue, numbered\n1, 2, 3, ..., N\nfrom fro... | {
"code_size": 1048,
"language": "C++",
"problem_id": "p02845",
"submission_id": "s908080973"
} |
[
{
"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 string is called a KEYENCE string when it can be changed to\nkeyence... | {
"code_size": 629,
"language": "C",
"problem_id": "p03150",
"submission_id": "s584350805"
} |
[
{
"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 buy a product for\nN\nyen (the currency of Japan) at a shop.\n... | {
"code_size": 316,
"language": "C++",
"problem_id": "p02612",
"submission_id": "s472965325"
} |
[
{
"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:\nTraveling Cube\nOn a small planet named Bandai, a landing party of the starsh... | {
"code_size": 2144,
"language": "C",
"problem_id": "p00869",
"submission_id": "s683298538"
} |
[
{
"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 G:\nTime Trial\nSome people like finishing computer games in an extremely short t... | {
"code_size": 2787,
"language": "C++",
"problem_id": "p01256",
"submission_id": "s296045539"
} |
[
{
"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\nempty boxes arranged in a row from left to right.\nThe i... | {
"code_size": 898,
"language": "C++",
"problem_id": "p02972",
"submission_id": "s125259188"
} |
[
{
"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\nN\n(inclusive) that conta... | {
"code_size": 1315,
"language": "C++",
"problem_id": "p02781",
"submission_id": "s068547389"
} |
[
{
"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\nnon-negative integers written on the blackboard:\nA_1, .... | {
"code_size": 2120,
"language": "C++",
"problem_id": "p03500",
"submission_id": "s844431022"
} |
[
{
"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:\nHuge Family\nMr. Dango's family has extremely huge number of members. Once it... | {
"code_size": 1368,
"language": "C",
"problem_id": "p00641",
"submission_id": "s714111875"
} |
[
{
"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": 1329,
"language": "C",
"problem_id": "p00866",
"submission_id": "s671422703"
} |
[
{
"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": "Reconstruction of a Tree\nWrite a program which reads two sequences of nodes obtained by ... | {
"code_size": 702,
"language": "C",
"problem_id": "p02282",
"submission_id": "s908281026"
} |
[
{
"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:\nDivisor Function\nTeiji is a number theory lover. All numbers are his friends... | {
"code_size": 2199,
"language": "C",
"problem_id": "p01244",
"submission_id": "s521563775"
} |
[
{
"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 grid consisting of three squares numbered\n1\n,\n2\nand\n3... | {
"code_size": 200,
"language": "C",
"problem_id": "p03493",
"submission_id": "s192324485"
} |
[
{
"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. Santa's Gift\nSanta is going to pack gifts into a bag for a family. There are ... | {
"code_size": 862,
"language": "C++",
"problem_id": "p02006",
"submission_id": "s904399492"
} |
[
{
"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\nK\nand\nS\n.\nThree variable\nX, Y\nand\nZ... | {
"code_size": 285,
"language": "C",
"problem_id": "p03835",
"submission_id": "s208255817"
} |
[
{
"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\nAn uppercase or lowercase English letter\n\\alpha\nwill be given as in... | {
"code_size": 172,
"language": "C",
"problem_id": "p02627",
"submission_id": "s739003929"
} |
[
{
"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 two-dimensional grid with\nH \\times W\nsquares. There are\n... | {
"code_size": 1650,
"language": "C",
"problem_id": "p02580",
"submission_id": "s506578521"
} |
[
{
"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": "RPG Maker\nYou are planning to create a map of an RPG. This map is represented by a grid ... | {
"code_size": 1606,
"language": "C++",
"problem_id": "p01961",
"submission_id": "s510689730"
} |
[
{
"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:\nDiscrete Speed\nConsider car trips in a country where there is no friction.\n... | {
"code_size": 2139,
"language": "C++",
"problem_id": "p00743",
"submission_id": "s846417194"
} |
[
{
"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\n, consisting of lowercase English le... | {
"code_size": 739,
"language": "C",
"problem_id": "p03486",
"submission_id": "s691763977"
} |
[
{
"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\nYou have a billiard table.\nThe playing area of the table is rectangul... | {
"code_size": 3992,
"language": "C++",
"problem_id": "p01649",
"submission_id": "s236549627"
} |
[
{
"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 building with\nn\nrooms, numbered\n1\nto\nn\n.\nWe can move... | {
"code_size": 877,
"language": "C",
"problem_id": "p02769",
"submission_id": "s060668182"
} |
[
{
"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, numbered\n1, 2, ..., N\n.\nSnuke has decided t... | {
"code_size": 623,
"language": "C",
"problem_id": "p03254",
"submission_id": "s885224763"
} |
[
{
"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": "Red Dragonfly\nIt’s still hot every day, but September has already come. It’s autumn acco... | {
"code_size": 183,
"language": "C++",
"problem_id": "p00376",
"submission_id": "s883368221"
} |
[
{
"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\nX = 10^{100}\n. Inaba has\nN\nchecker pieces on the number line, ... | {
"code_size": 1119,
"language": "C++",
"problem_id": "p03398",
"submission_id": "s019302150"
} |
[
{
"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 two (6-sided) dice: a red die and a blue die.\nWhen a red di... | {
"code_size": 956,
"language": "C++",
"problem_id": "p03871",
"submission_id": "s380723267"
} |
[
{
"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": "Articulation Points\nFind articulation points of a given undirected graph\nG(V, E)\n.\nA ... | {
"code_size": 1627,
"language": "C++",
"problem_id": "p02366",
"submission_id": "s985048093"
} |
[
{
"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": 975,
"language": "C",
"problem_id": "p00792",
"submission_id": "s293932614"
} |
[
{
"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": "All Pairs Shortest Path\nInput\nAn edge-weighted graph\nG\n(\nV\n,\nE\n).\n|\nV\n| |\nE\n... | {
"code_size": 1122,
"language": "C",
"problem_id": "p02363",
"submission_id": "s925217331"
} |
[
{
"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 the following arithmetic progression with\nn\nterms:\nx, x + ... | {
"code_size": 1768,
"language": "C",
"problem_id": "p03027",
"submission_id": "s792894064"
} |
[
{
"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": 617,
"language": "C",
"problem_id": "p03161",
"submission_id": "s512202428"
} |
[
{
"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\nQuality of Check Digits\nThe small city where you live plans to introduce a ne... | {
"code_size": 1184,
"language": "C",
"problem_id": "p00947",
"submission_id": "s771150380"
} |
[
{
"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 received two matrices\nA\nand\nB\nas birthday presents.\nEach of... | {
"code_size": 2694,
"language": "C++",
"problem_id": "p03885",
"submission_id": "s253013008"
} |
[
{
"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:\nModuic Squares\nHave you ever heard of Moduic Squares? They are like 3 × 3 Ma... | {
"code_size": 1331,
"language": "C++",
"problem_id": "p01181",
"submission_id": "s290309585"
} |
[
{
"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 arranged in a row. Every stone is painted white o... | {
"code_size": 534,
"language": "C",
"problem_id": "p03069",
"submission_id": "s238390844"
} |
[
{
"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 Lake has a perimeter of\nL\n. On the circumference of the la... | {
"code_size": 5127,
"language": "C",
"problem_id": "p03187",
"submission_id": "s135609198"
} |
[
{
"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": "A - Everlasting Zero\nProblem Statement\nYou are very absorbed in a famous role-playing g... | {
"code_size": 1739,
"language": "C++",
"problem_id": "p01667",
"submission_id": "s988796837"
} |
[
{
"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:\nWebby Subway\nYou are an officer of the Department of Land and Transport in O... | {
"code_size": 3931,
"language": "C++",
"problem_id": "p01255",
"submission_id": "s900114211"
} |
[
{
"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\nTakahashi has\nK\n500\n-yen coins. (Yen is the currency of Japan.)\nIf... | {
"code_size": 158,
"language": "C",
"problem_id": "p02811",
"submission_id": "s309301989"
} |
[
{
"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 calculator. It has a display and two buttons.\nInitially, ... | {
"code_size": 489,
"language": "C",
"problem_id": "p03838",
"submission_id": "s490984114"
} |
[
{
"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\nThere are\n2N\nballs in the\nxy\n-plane. The coordinates of the\ni\n-t... | {
"code_size": 2158,
"language": "C",
"problem_id": "p03604",
"submission_id": "s181359462"
} |
[
{
"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:\nOperations with Finite Sets\nLet\nA, B, C, D, E\nbe sets of integers and let\... | {
"code_size": 5063,
"language": "C",
"problem_id": "p00598",
"submission_id": "s323555302"
} |
[
{
"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:\nDriving an Icosahedral Rover\nAfter decades of fruitless efforts, one of the ... | {
"code_size": 2324,
"language": "C",
"problem_id": "p00898",
"submission_id": "s927445083"
} |
[
{
"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 Finite Encyclopedia of Integer Sequences (FEIS), all integer sequen... | {
"code_size": 3340,
"language": "C",
"problem_id": "p03561",
"submission_id": "s051503353"
} |
[
{
"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": "What day is today?\nYour task is to write a program which reads a date (from 2004/1/1 to ... | {
"code_size": 580,
"language": "C",
"problem_id": "p00027",
"submission_id": "s880762002"
} |
[
{
"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\nN\nbe a positive integer.\nYou are given a string\ns\nof length\n... | {
"code_size": 476,
"language": "C",
"problem_id": "p03179",
"submission_id": "s136027238"
} |
[
{
"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 \"paper cutting\": he cuts out characters from a newspaper... | {
"code_size": 703,
"language": "C",
"problem_id": "p03761",
"submission_id": "s191507619"
} |
[
{
"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\n12:17 (UTC): The sample input 1 and 2 were swapped. The error is now f... | {
"code_size": 1364,
"language": "C++",
"problem_id": "p04027",
"submission_id": "s187236862"
} |
[
{
"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 is thinking of painting an infinite two-dimensional grid in a... | {
"code_size": 926,
"language": "C",
"problem_id": "p03460",
"submission_id": "s718503720"
} |
[
{
"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:\nRiffle Shuffle\nThere are a number of ways to shuffle a deck of cards. Riffl... | {
"code_size": 719,
"language": "C",
"problem_id": "p00603",
"submission_id": "s829893771"
} |
[
{
"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\nN\n. Snuke will choose integers\ns_1\n,\ns_2\n,\n... | {
"code_size": 3338,
"language": "C++",
"problem_id": "p02611",
"submission_id": "s498487513"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.