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": "Income Inequality\nWe often compute the average as the first step\nin processing statisti... | {
"code_size": 404,
"language": "C",
"problem_id": "p01109",
"submission_id": "s854706483"
} |
[
{
"content": "You are a 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 participating in a programming contest called AXC002, and... | {
"code_size": 618,
"language": "C++",
"problem_id": "p02613",
"submission_id": "s102196262"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "There are\nn\nprocesses in a queue. Each process has name\ni\nand time\ni\n. The round-r... | {
"code_size": 778,
"language": "C",
"problem_id": "p02264",
"submission_id": "s608368753"
} |
[
{
"content": "You are a 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": "Problem Statement\nThere are\nN\nbags of biscuits. The\ni\n-th bag contains\nA_i\nbiscuit... | {
"code_size": 646,
"language": "C",
"problem_id": "p03665",
"submission_id": "s643166543"
} |
[
{
"content": "You are a 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\nThe\nbeauty\nof a sequence\na\nof length\nn\nis defined as\na_1 \\oplu... | {
"code_size": 2019,
"language": "C++",
"problem_id": "p03051",
"submission_id": "s098756066"
} |
[
{
"content": "You are a 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 out for a walk, when you suddenly encounter a monster. F... | {
"code_size": 858,
"language": "C",
"problem_id": "p03472",
"submission_id": "s840747884"
} |
[
{
"content": "You are a 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\nA\n,\nC\n,\nG\... | {
"code_size": 536,
"language": "C",
"problem_id": "p03087",
"submission_id": "s479997137"
} |
[
{
"content": "You are a 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": 2025,
"language": "C",
"problem_id": "p02998",
"submission_id": "s889880007"
} |
[
{
"content": "You are a 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\nholes in a two-dimensional plane. The coordinates of the... | {
"code_size": 2288,
"language": "C++",
"problem_id": "p03428",
"submission_id": "s079025089"
} |
[
{
"content": "You are a 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 that can be obtained by concatenating two equal ... | {
"code_size": 1609,
"language": "C",
"problem_id": "p03678",
"submission_id": "s580542785"
} |
[
{
"content": "You are a 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 written on a blackboard. The\ni\n-th integer is... | {
"code_size": 1400,
"language": "C++",
"problem_id": "p03811",
"submission_id": "s150511616"
} |
[
{
"content": "You are a 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:\nEntangled Tree\nThe electronics division in Ishimatsu Company consists of var... | {
"code_size": 2091,
"language": "C++",
"problem_id": "p01177",
"submission_id": "s059812702"
} |
[
{
"content": "You are a 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\nIt's now the season of TAKOYAKI FESTIVAL!\nThis year,\nN\ntakoyaki (a ... | {
"code_size": 295,
"language": "C",
"problem_id": "p02886",
"submission_id": "s520974805"
} |
[
{
"content": "You are a 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 a positive integer\nN\nand a sequence of length\n2^N\nconsis... | {
"code_size": 2606,
"language": "C++",
"problem_id": "p02739",
"submission_id": "s537604699"
} |
[
{
"content": "You are a 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:\nMap of Ninja House\nAn old document says that a Ninja House in Kanazawa City ... | {
"code_size": 1479,
"language": "C++",
"problem_id": "p00815",
"submission_id": "s540695172"
} |
[
{
"content": "You are a 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": 1480,
"language": "C++",
"problem_id": "p03312",
"submission_id": "s727899215"
} |
[
{
"content": "You are a 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 elementary school student Takahashi has come to a variety store.\nH... | {
"code_size": 208,
"language": "C++",
"problem_id": "p03407",
"submission_id": "s414171339"
} |
[
{
"content": "You are a 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": 457,
"language": "C",
"problem_id": "p02697",
"submission_id": "s947252998"
} |
[
{
"content": "You are a 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 found a random number generator.\nIt generates an integer betwee... | {
"code_size": 1485,
"language": "C++",
"problem_id": "p03022",
"submission_id": "s006512001"
} |
[
{
"content": "You are a 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 numbered\n1, 2, ..., N\n. The\n... | {
"code_size": 1509,
"language": "C++",
"problem_id": "p03021",
"submission_id": "s645704724"
} |
[
{
"content": "You are a 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:\nPolygonal Line Search\nMultiple polygonal lines are given on the\nxy\n-plane.... | {
"code_size": 2054,
"language": "C++",
"problem_id": "p00717",
"submission_id": "s736682522"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Biased Dice\nProfessor Random, known for his research on randomized algorithms, is now co... | {
"code_size": 2751,
"language": "C++",
"problem_id": "p00762",
"submission_id": "s992398813"
} |
[
{
"content": "You are a 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\ndogs and\nM\nmonkeys. He wants them to line up in a row.... | {
"code_size": 525,
"language": "C",
"problem_id": "p03681",
"submission_id": "s778555131"
} |
[
{
"content": "You are a 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 K\nRunner and Sniper\nYou are escaping from an enemy for some reason. The enemy i... | {
"code_size": 1786,
"language": "C++",
"problem_id": "p01800",
"submission_id": "s689769776"
} |
[
{
"content": "You are a 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\npiles of candies on the table. The piles are numbered\n1... | {
"code_size": 690,
"language": "C++",
"problem_id": "p04037",
"submission_id": "s204430250"
} |
[
{
"content": "You are a 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\nballs. Initially, an integer\nA_i\nis written on the... | {
"code_size": 697,
"language": "C++",
"problem_id": "p03497",
"submission_id": "s012805359"
} |
[
{
"content": "You are a 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 maze is composed of a grid of\nH \\times W\nsquares -\nH\nvertical,\... | {
"code_size": 2175,
"language": "C",
"problem_id": "p02579",
"submission_id": "s674417545"
} |
[
{
"content": "You are a 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:\nLongest Chain\nLet us compare two triples\na = (x\na\n, y\na\n, z\na\n)\nand\... | {
"code_size": 2248,
"language": "C++",
"problem_id": "p00920",
"submission_id": "s725767736"
} |
[
{
"content": "You are a 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 playing with red and blue balls, placing them on a two-dimens... | {
"code_size": 2576,
"language": "C++",
"problem_id": "p03020",
"submission_id": "s615884464"
} |
[
{
"content": "You are a 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 on a number line.\nThe rabbits are conveniently ... | {
"code_size": 1089,
"language": "C++",
"problem_id": "p03953",
"submission_id": "s050331120"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Print Test Cases\nIn the online judge system, a judge file may include multiple datasets ... | {
"code_size": 183,
"language": "C",
"problem_id": "p02396",
"submission_id": "s789071252"
} |
[
{
"content": "You are a 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\n3N\nparticipants in\nAtCoder Group Contest\n.\nThe\nstrengt... | {
"code_size": 574,
"language": "C",
"problem_id": "p03767",
"submission_id": "s465420271"
} |
[
{
"content": "You are a 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:\nEra Name\nAs many of you know, we have two major calendar systems used in Jap... | {
"code_size": 944,
"language": "C++",
"problem_id": "p01359",
"submission_id": "s073863221"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Bridge Construction Planning\nThere is a city consisting of many small islands, and the c... | {
"code_size": 2807,
"language": "C++",
"problem_id": "p01090",
"submission_id": "s764705594"
} |
[
{
"content": "You are a 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 wants to be a member of some web service.\nHe tried to regis... | {
"code_size": 401,
"language": "C++",
"problem_id": "p02681",
"submission_id": "s155949569"
} |
[
{
"content": "You are a 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:\nLife Game\nYou are working at a production plant of biological weapons. You a... | {
"code_size": 2305,
"language": "C++",
"problem_id": "p01237",
"submission_id": "s273537697"
} |
[
{
"content": "You are a 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\nboxes arranged in a row.\nInitially, the\ni\n-th box fro... | {
"code_size": 456,
"language": "C",
"problem_id": "p03862",
"submission_id": "s722825693"
} |
[
{
"content": "You are a 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 can describe detailed direction by repeating the directional names:... | {
"code_size": 624,
"language": "C",
"problem_id": "p01701",
"submission_id": "s595452586"
} |
[
{
"content": "You are a 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\nitems, numbered\n1, 2, \\ldots, N\n.\nFor each\ni\n(\n1 ... | {
"code_size": 994,
"language": "C++",
"problem_id": "p03164",
"submission_id": "s819392119"
} |
[
{
"content": "You are a 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:\nThe Most Powerful Spell\nLong long ago, there lived a wizard who invented a l... | {
"code_size": 1780,
"language": "C++",
"problem_id": "p00750",
"submission_id": "s208712895"
} |
[
{
"content": "You are a 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\ncities numbered\n1\nthrough\nN\n, and\nM\nbidirectional ... | {
"code_size": 1065,
"language": "C",
"problem_id": "p02536",
"submission_id": "s124194585"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "When Can We Meet?\nThe ICPC committee would like to have its meeting as soon as\npossible... | {
"code_size": 647,
"language": "C++",
"problem_id": "p00705",
"submission_id": "s717326108"
} |
[
{
"content": "You are a 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\nCount the number of strings\nS\nthat satisfy the following constraints... | {
"code_size": 3650,
"language": "C",
"problem_id": "p03120",
"submission_id": "s312521097"
} |
[
{
"content": "You are a 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\nThe door of Snuke's laboratory is locked with a security code.\nThe se... | {
"code_size": 329,
"language": "C++",
"problem_id": "p02993",
"submission_id": "s042004424"
} |
[
{
"content": "You are a 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 two-dimensional plane, we have a rectangle\nR\nwhose vertices are... | {
"code_size": 1524,
"language": "C++",
"problem_id": "p02650",
"submission_id": "s697201754"
} |
[
{
"content": "You are a 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\n2N\n:\nA_1, A_2, ..., A_{2N}\n.\nEach\n... | {
"code_size": 1526,
"language": "C++",
"problem_id": "p03191",
"submission_id": "s358367466"
} |
[
{
"content": "You are a 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\nPriority queue is a container of elements which the element with the high... | {
"code_size": 635,
"language": "C++",
"problem_id": "p02437",
"submission_id": "s537067915"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Similarity of Subtrees\nDefine the depth of a node in a rooted tree by applying the follo... | {
"code_size": 1037,
"language": "C++",
"problem_id": "p01884",
"submission_id": "s988853679"
} |
[
{
"content": "You are a 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 the Jumbo will practice golf.\nHis objective is to get a car... | {
"code_size": 379,
"language": "C++",
"problem_id": "p02693",
"submission_id": "s511072630"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Boring Commercial\nNow it is spring holidays. A lazy student has finally passed all final... | {
"code_size": 738,
"language": "C",
"problem_id": "p00592",
"submission_id": "s396160866"
} |
[
{
"content": "You are a 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:\nOrganize Your Train part II\nRJ Freight, a Japanese railroad company for frei... | {
"code_size": 1869,
"language": "C",
"problem_id": "p00723",
"submission_id": "s340404636"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Standard Deviation\nYou have final scores of an examination for\nn\nstudents. Calculate s... | {
"code_size": 520,
"language": "C++",
"problem_id": "p02381",
"submission_id": "s522663378"
} |
[
{
"content": "You are a 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\nN\nand\nX\n. For each integer\nk\nbetween\n0\nand\... | {
"code_size": 6476,
"language": "C",
"problem_id": "p02893",
"submission_id": "s658746142"
} |
[
{
"content": "You are a 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 robot is put at the origin in a two-dimensional plane.\nInitially, t... | {
"code_size": 1628,
"language": "C",
"problem_id": "p03488",
"submission_id": "s681793168"
} |
[
{
"content": "You are a 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\nYou have\nN\nkinds of items that you want to put them into a knapsack. ... | {
"code_size": 672,
"language": "C",
"problem_id": "p02316",
"submission_id": "s290896257"
} |
[
{
"content": "You are a 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 drew lottery\nN\ntimes. In the\ni\n-th draw, you got an item of th... | {
"code_size": 413,
"language": "C++",
"problem_id": "p02701",
"submission_id": "s524221955"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Transporter\nIn the year 30XX, an expedition team reached a planet and found a warp machi... | {
"code_size": 343,
"language": "C",
"problem_id": "p00381",
"submission_id": "s559847872"
} |
[
{
"content": "You are a 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\nNathan O. Davis is a student at the department of integrated systems.\... | {
"code_size": 1699,
"language": "C++",
"problem_id": "p01677",
"submission_id": "s354038358"
} |
[
{
"content": "You are a 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 recursively define\nuninity\nof a tree, as follows: (\nUni\nis... | {
"code_size": 7109,
"language": "C",
"problem_id": "p03824",
"submission_id": "s883261367"
} |
[
{
"content": "You are a 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_1 ... P_N\nof the set {\n1\n,\n2\n, ...... | {
"code_size": 1848,
"language": "C++",
"problem_id": "p04052",
"submission_id": "s000533364"
} |
[
{
"content": "You are a 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 a positive integer\nN\nand a string\nS\nof length\nN\nconsis... | {
"code_size": 356,
"language": "C",
"problem_id": "p02860",
"submission_id": "s157902879"
} |
[
{
"content": "You are a 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\nThree men, A, B and C, are eating sushi together.\nInitially, there ar... | {
"code_size": 2156,
"language": "C++",
"problem_id": "p03572",
"submission_id": "s178114659"
} |
[
{
"content": "You are a 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 sandglass that runs for\nX\nseconds. The sand drops from the... | {
"code_size": 158,
"language": "C",
"problem_id": "p03609",
"submission_id": "s971796532"
} |
[
{
"content": "You are a 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": 1014,
"language": "C",
"problem_id": "p02763",
"submission_id": "s431076762"
} |
[
{
"content": "You are a 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 two distinct integers\nA\nand\nB\n.\nPrint the integer\nK\nsuc... | {
"code_size": 205,
"language": "C",
"problem_id": "p02957",
"submission_id": "s046785945"
} |
[
{
"content": "You are a 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 three integers\nN\n,\nK\n, and\nS\n.\nFind a sequence\nA_1, ... | {
"code_size": 404,
"language": "C",
"problem_id": "p02797",
"submission_id": "s836044056"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Dice III\nWrite a program which reads the two dices constructed in the same way as\nDice ... | {
"code_size": 1737,
"language": "C++",
"problem_id": "p02385",
"submission_id": "s937050353"
} |
[
{
"content": "You are a 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\nShichi-Go-San\n(literally \"Seven-Five-Three\") is a traditional event... | {
"code_size": 166,
"language": "C",
"problem_id": "p03210",
"submission_id": "s191921713"
} |
[
{
"content": "You are a 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\nX\nand\nA\nare integers between\n0\nand\n9\n(inclusive).\nIf\nX\nis le... | {
"code_size": 155,
"language": "C",
"problem_id": "p02999",
"submission_id": "s869545504"
} |
[
{
"content": "You are a 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 has\nN\ncards with positive integers written on them... | {
"code_size": 1270,
"language": "C++",
"problem_id": "p03782",
"submission_id": "s730984653"
} |
[
{
"content": "You are a 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\nChelsea is a modern artist. She decided to make her next work with lad... | {
"code_size": 7474,
"language": "C++",
"problem_id": "p01654",
"submission_id": "s881198953"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Multisect\nWe are developing the world's coolest AI robot product. After the long struggl... | {
"code_size": 1400,
"language": "C++",
"problem_id": "p01888",
"submission_id": "s965726818"
} |
[
{
"content": "You are a 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\nA\nuntasty cookies containing antidotes,\nB\ntasty cook... | {
"code_size": 363,
"language": "C++",
"problem_id": "p03186",
"submission_id": "s663297206"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "And Then, How Many Are There?\nTo Mr. Solitarius, who is a famous solo play game creator,... | {
"code_size": 1725,
"language": "C",
"problem_id": "p00756",
"submission_id": "s401694045"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Bit Operation II\nGiven two non-negative decimal integers $a$ and $b$, calculate their AN... | {
"code_size": 406,
"language": "C++",
"problem_id": "p02424",
"submission_id": "s200844074"
} |
[
{
"content": "You are a 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:\nTwo-finger Programming\nFranklin Jenkins is a programmer, but he isn’t good a... | {
"code_size": 2057,
"language": "C++",
"problem_id": "p01221",
"submission_id": "s558546411"
} |
[
{
"content": "You are a 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 in Takahashi Kingdom. They are conveniently number... | {
"code_size": 510,
"language": "C",
"problem_id": "p03914",
"submission_id": "s330741526"
} |
[
{
"content": "You are a 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:\nUnreliable Messengers\nThe King of a little Kingdom on a little island in the... | {
"code_size": 1609,
"language": "C",
"problem_id": "p00819",
"submission_id": "s081275833"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Grid\nThere is a n × n grid D where each cell contains either 1 or 0.\nYour task is to cr... | {
"code_size": 956,
"language": "C",
"problem_id": "p00151",
"submission_id": "s776705530"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Revenge of the Broken Door\nThe JAG Kingdom consists of $N$ cities and $M$ bidirectional ... | {
"code_size": 3904,
"language": "C++",
"problem_id": "p01959",
"submission_id": "s495499327"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Vector II\nFor $n$ dynamic arrays $A_i$ ($i = 0, 1, ..., n-1$), perform a sequence of the... | {
"code_size": 1277,
"language": "C",
"problem_id": "p02434",
"submission_id": "s389302464"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Farm Village\nThere is a village along a road. This village has $N$ houses numbered $1$ t... | {
"code_size": 2130,
"language": "C++",
"problem_id": "p01965",
"submission_id": "s452684801"
} |
[
{
"content": "You are a 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 an immigration officer in the Kingdom of AtCoder. The document... | {
"code_size": 472,
"language": "C++",
"problem_id": "p02772",
"submission_id": "s581971748"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "8 Queens Problem\nThe goal of 8 Queens Problem is to put eight queens on a chess-board su... | {
"code_size": 1481,
"language": "C++",
"problem_id": "p02244",
"submission_id": "s231375743"
} |
[
{
"content": "You are a 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, who loves animals, built a zoo.\nThere are\nN\nanimals in this ... | {
"code_size": 1750,
"language": "C",
"problem_id": "p03798",
"submission_id": "s682925696"
} |
[
{
"content": "You are a 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\nThe currency used in Takahashi Kingdom is\nMyon\n.\nThere are\n1\n-,\n... | {
"code_size": 1926,
"language": "C++",
"problem_id": "p03908",
"submission_id": "s683035453"
} |
[
{
"content": "You are a 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:\nStrange String Manipulation\nA linear congruential generator produces a serie... | {
"code_size": 1279,
"language": "C++",
"problem_id": "p01283",
"submission_id": "s687962598"
} |
[
{
"content": "You are a 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:\nEverlasting...?\nEverlasting Sa-Ga, a new, hot and very popular role-playing ... | {
"code_size": 853,
"language": "C",
"problem_id": "p01171",
"submission_id": "s074210113"
} |
[
{
"content": "You are a 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 E:\nConfusing Login Names\nMeikyokan University is very famous for its research a... | {
"code_size": 2381,
"language": "C",
"problem_id": "p00831",
"submission_id": "s888931187"
} |
[
{
"content": "You are a 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\nEvi has\nN\nintegers\na_1,a_2,..,a_N\n. His objective is to have\nN\ne... | {
"code_size": 604,
"language": "C++",
"problem_id": "p04025",
"submission_id": "s020720042"
} |
[
{
"content": "You are a 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, \\ldots, N\n.\nThey have decid... | {
"code_size": 1117,
"language": "C++",
"problem_id": "p03172",
"submission_id": "s724635327"
} |
[
{
"content": "You are a 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:\nMobile Network\nThe trafic on the Internet is increasing these days due to sm... | {
"code_size": 3814,
"language": "C++",
"problem_id": "p01445",
"submission_id": "s167213545"
} |
[
{
"content": "You are a 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, a water strider, lives in a rectangular pond that can be seen a... | {
"code_size": 2342,
"language": "C++",
"problem_id": "p02644",
"submission_id": "s964864128"
} |
[
{
"content": "You are a 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:\nHyper Rock-Scissors-Paper\nRock-Scissors-Paper is a game played with hands an... | {
"code_size": 1514,
"language": "C",
"problem_id": "p01156",
"submission_id": "s811628424"
} |
[
{
"content": "You are a 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\nof length\nN\nconsisting of\nR\n,\nG\n, and\nB\n.... | {
"code_size": 675,
"language": "C",
"problem_id": "p02714",
"submission_id": "s121213363"
} |
[
{
"content": "You are a 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: Union Ball\nProblem Statement\nThere are\nN\nballs in a box. The\ni\n-th ball is label... | {
"code_size": 413,
"language": "C",
"problem_id": "p02088",
"submission_id": "s447319457"
} |
[
{
"content": "You are a 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": 966,
"language": "C++",
"problem_id": "p03708",
"submission_id": "s380106961"
} |
[
{
"content": "You are a 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. Each character in\nS\nis either a digit (\n0\n... | {
"code_size": 958,
"language": "C",
"problem_id": "p02960",
"submission_id": "s481109584"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.