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 J: Tree Construction\nConsider a two-dimensional space with a set of points (\nx\... | {
"code_size": 1270,
"language": "C++",
"problem_id": "p01600",
"submission_id": "s671286267"
} |
[
{
"content": "You are a helpful 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 is going on a trip in a two-dimensional plane.\nIn h... | {
"code_size": 572,
"language": "C",
"problem_id": "p03457",
"submission_id": "s442010222"
} |
[
{
"content": "You are a helpful 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 shop sells\nN\nkinds of fruits, Fruit\n1, \\ldots, N\n, at prices of... | {
"code_size": 445,
"language": "C++",
"problem_id": "p02628",
"submission_id": "s724192923"
} |
[
{
"content": "You are a helpful 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:\nAtomic Car Race\nIn the year 2020, a race of atomically energized cars will b... | {
"code_size": 1565,
"language": "C",
"problem_id": "p00841",
"submission_id": "s553198915"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Where's Your Robot?\nYou have full control over a robot that walks around in a rectangula... | {
"code_size": 1011,
"language": "C++",
"problem_id": "p00686",
"submission_id": "s380815191"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem D:\nDigits on the Floor\nTaro attempts to tell digits to Hanako by putting straig... | {
"code_size": 4363,
"language": "C",
"problem_id": "p00867",
"submission_id": "s333068212"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have a tree with\nN\nvertices numbered\n1\nto\nN\n. The\ni\n-th edg... | {
"code_size": 1987,
"language": "C++",
"problem_id": "p02710",
"submission_id": "s714942096"
} |
[
{
"content": "You are a helpful 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\nN\nintegers; the\ni\n-th of them is\nA_i\n.\nFind the m... | {
"code_size": 1312,
"language": "C++",
"problem_id": "p03229",
"submission_id": "s963637840"
} |
[
{
"content": "You are a helpful 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 pyramid with\nN\nsteps, built with blocks.\nThe steps are nu... | {
"code_size": 989,
"language": "C",
"problem_id": "p03952",
"submission_id": "s437912032"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Chain-Confined Path\nThere is a chain consisting of multiple circles on a plane.\nThe fir... | {
"code_size": 5671,
"language": "C",
"problem_id": "p00764",
"submission_id": "s077103470"
} |
[
{
"content": "You are a helpful 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 connected undirected graph which has even numbers of n... | {
"code_size": 1389,
"language": "C++",
"problem_id": "p01648",
"submission_id": "s332313576"
} |
[
{
"content": "You are a helpful 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\nEvery day,\nN\npassengers arrive at Takahashi Airport.\nThe\ni\n-th pa... | {
"code_size": 631,
"language": "C",
"problem_id": "p03785",
"submission_id": "s456038424"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "3D Printing\nWe are designing an installation art piece consisting of\na number of cubes ... | {
"code_size": 2535,
"language": "C++",
"problem_id": "p01097",
"submission_id": "s138008746"
} |
[
{
"content": "You are a 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": "Problem Statement\nYou are given\nN\nintegers\nA_1\n,\nA_2\n, ...,\nA_N\n.\nConsider the ... | {
"code_size": 599,
"language": "C++",
"problem_id": "p03465",
"submission_id": "s958578437"
} |
[
{
"content": "You are a helpful 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\ndays of summer vacation.\nHis teacher gave him\nM\ns... | {
"code_size": 278,
"language": "C",
"problem_id": "p02706",
"submission_id": "s894252153"
} |
[
{
"content": "You are a helpful 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": 254,
"language": "C",
"problem_id": "p02693",
"submission_id": "s584546129"
} |
[
{
"content": "You are a helpful 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\nK\n, and a prime number\nP\n. Find the num... | {
"code_size": 1887,
"language": "C++",
"problem_id": "p02638",
"submission_id": "s552830927"
} |
[
{
"content": "You are a helpful 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 integer sequences of length\nN\n:\na_1,a_2,..,a_N\na... | {
"code_size": 836,
"language": "C++",
"problem_id": "p03438",
"submission_id": "s001164284"
} |
[
{
"content": "You are a helpful 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": "Problem Statement\nWhen\nl\nis an odd number, the median of\nl\nnumbers\na_1, a_2, ..., a... | {
"code_size": 737,
"language": "C",
"problem_id": "p03381",
"submission_id": "s286117237"
} |
[
{
"content": "You are a helpful 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\nDeadlock Detection\nYou are working on an analysis of a system with multiple p... | {
"code_size": 2194,
"language": "C++",
"problem_id": "p00940",
"submission_id": "s239205457"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nAtCoDeer the deer and his friend TopCoDeer is playing a game.\nThe gam... | {
"code_size": 478,
"language": "C++",
"problem_id": "p03965",
"submission_id": "s256784214"
} |
[
{
"content": "You are a helpful 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\nKatsusando loves omelette rice.\nBesides, he loves crème brûlée, tende... | {
"code_size": 454,
"language": "C",
"problem_id": "p03126",
"submission_id": "s422593186"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given an integer sequence of length\nn+1\n,\na_1,a_2,...,a_{n+... | {
"code_size": 1623,
"language": "C",
"problem_id": "p03676",
"submission_id": "s008361796"
} |
[
{
"content": "You are a helpful 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:\nEleven Lover\nEdward Leven loves multiples of eleven very much. When he sees ... | {
"code_size": 631,
"language": "C",
"problem_id": "p01300",
"submission_id": "s550874293"
} |
[
{
"content": "You are a helpful 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 rooted tree with\nN\nvertices, numbered\n1\nthrough\nN\n.\... | {
"code_size": 1364,
"language": "C++",
"problem_id": "p03368",
"submission_id": "s781098647"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nAtCoDeer the deer and his friend TopCoDeer is playing a game.\nThe gam... | {
"code_size": 315,
"language": "C",
"problem_id": "p03965",
"submission_id": "s864610025"
} |
[
{
"content": "You are a helpful 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. The squares are numbered\n1, 2, ..., N... | {
"code_size": 7768,
"language": "C",
"problem_id": "p03736",
"submission_id": "s327633424"
} |
[
{
"content": "You are a helpful 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\nflowers arranged in a row.\nFor each\ni\n(\n1 \\leq i \\... | {
"code_size": 1549,
"language": "C++",
"problem_id": "p03176",
"submission_id": "s214499453"
} |
[
{
"content": "You are a helpful 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": 446,
"language": "C++",
"problem_id": "p02860",
"submission_id": "s285678801"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere is a farm whose length and width are\nA\nyard and\nB\nyard, res... | {
"code_size": 166,
"language": "C++",
"problem_id": "p03280",
"submission_id": "s772051330"
} |
[
{
"content": "You are a helpful 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\n3^N\npeople dancing in circle.\nWe denote with\n0,1,\\dots,... | {
"code_size": 1742,
"language": "C++",
"problem_id": "p02671",
"submission_id": "s949266363"
} |
[
{
"content": "You are a 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": "J - Tree Reconstruction\nProblem Statement\nYou have a directed graph.\nSome non-negative... | {
"code_size": 1134,
"language": "C++",
"problem_id": "p01676",
"submission_id": "s081210950"
} |
[
{
"content": "You are a helpful 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": 1333,
"language": "C",
"problem_id": "p03132",
"submission_id": "s059902227"
} |
[
{
"content": "You are a helpful 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\nAtCoder Inc. has decided to lock the door of its office with a\n3\n-di... | {
"code_size": 819,
"language": "C",
"problem_id": "p02844",
"submission_id": "s119776037"
} |
[
{
"content": "You are a helpful 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 Statement\nAtCoDeer has three cards, one red, one green and one blue.\nAn integer... | {
"code_size": 231,
"language": "C++",
"problem_id": "p03693",
"submission_id": "s493495417"
} |
[
{
"content": "You are a helpful 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\nM-kun is a competitor in AtCoder, whose highest rating is\nX\n.\nIn th... | {
"code_size": 449,
"language": "C",
"problem_id": "p02600",
"submission_id": "s901638335"
} |
[
{
"content": "You are a helpful 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": 1039,
"language": "C",
"problem_id": "p03953",
"submission_id": "s849691317"
} |
[
{
"content": "You are a helpful 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 pyramid with\nN\nsteps, built with blocks.\nThe steps are nu... | {
"code_size": 926,
"language": "C++",
"problem_id": "p03954",
"submission_id": "s913550528"
} |
[
{
"content": "You are a helpful 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: Earn Big\nA group of\nN\npeople is trying to challenge the following game\nto ... | {
"code_size": 327,
"language": "C",
"problem_id": "p01593",
"submission_id": "s964335601"
} |
[
{
"content": "You are a helpful 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've come to your favorite store Infinitesco to buy some ice tea.\nT... | {
"code_size": 615,
"language": "C++",
"problem_id": "p03617",
"submission_id": "s005975935"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nGiven is a sequence of\nN\nintegers\nA_1, \\ldots, A_N\n.\nFind the (m... | {
"code_size": 257,
"language": "C",
"problem_id": "p02934",
"submission_id": "s260306341"
} |
[
{
"content": "You are a helpful 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 an integer sequence\nA\nof length\nN\n.\nFind the number of t... | {
"code_size": 575,
"language": "C",
"problem_id": "p03342",
"submission_id": "s390563716"
} |
[
{
"content": "You are a helpful 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.\nConstruct any one\nN\n-by-\nN\nmatrix\... | {
"code_size": 5497,
"language": "C",
"problem_id": "p03257",
"submission_id": "s514420269"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Round Table of Sages\n$N$ sages are sitting around a round table with $N$ seats. Each sag... | {
"code_size": 594,
"language": "C",
"problem_id": "p00390",
"submission_id": "s435153620"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Flag\nAHK Education, the educational program section of Aizu Broadcasting Cooperation, br... | {
"code_size": 659,
"language": "C++",
"problem_id": "p00363",
"submission_id": "s945565595"
} |
[
{
"content": "You are a helpful 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\nOne day, Snuke was given a permutation of length\nN\n,\na_1, a_2, ...,... | {
"code_size": 1110,
"language": "C++",
"problem_id": "p03987",
"submission_id": "s096441407"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nKenkoooo found a simple connected graph.\nThe vertices are numbered\n1... | {
"code_size": 6472,
"language": "C",
"problem_id": "p03306",
"submission_id": "s075243770"
} |
[
{
"content": "You are a helpful 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\ncards. The two sides of each of these cards are distingu... | {
"code_size": 2570,
"language": "C++",
"problem_id": "p03750",
"submission_id": "s727205404"
} |
[
{
"content": "You are a helpful 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.\nPrint a grid where each squa... | {
"code_size": 788,
"language": "C",
"problem_id": "p03402",
"submission_id": "s333974381"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Shuffle\nYour task is to shuffle a deck of\nn\ncards, each of which is marked by a alphab... | {
"code_size": 444,
"language": "C++",
"problem_id": "p02420",
"submission_id": "s093248032"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Reservation System\nThe supercomputer system L in the PCK Research Institute performs a v... | {
"code_size": 336,
"language": "C",
"problem_id": "p00355",
"submission_id": "s079818455"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Conveyor Belt\nAwesome Conveyor Machine\n(ACM) is the most important equipment of a facto... | {
"code_size": 1814,
"language": "C++",
"problem_id": "p01966",
"submission_id": "s410596397"
} |
[
{
"content": "You are a helpful 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 square grid with\nH\nrows and\nW\ncolumns.\nSnuke wants to w... | {
"code_size": 455,
"language": "C",
"problem_id": "p02903",
"submission_id": "s491351162"
} |
[
{
"content": "You are a helpful 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 an integer sequence of length\n2^N\n:\nA_0, A_1, ..., A_{2^N-... | {
"code_size": 1183,
"language": "C++",
"problem_id": "p03313",
"submission_id": "s470572383"
} |
[
{
"content": "You are a helpful 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 standing on a two-dimensional plane. In one operation, he can... | {
"code_size": 1854,
"language": "C++",
"problem_id": "p02782",
"submission_id": "s330652232"
} |
[
{
"content": "You are a helpful 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 a user of a site that hosts programming contests.\nWhen a... | {
"code_size": 128,
"language": "C++",
"problem_id": "p03563",
"submission_id": "s904122814"
} |
[
{
"content": "You are a helpful 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 set\nA = \\{ a_1, a_2, \\ldots, a_N \\}\nconsisting of\nN\n... | {
"code_size": 832,
"language": "C++",
"problem_id": "p03170",
"submission_id": "s995912608"
} |
[
{
"content": "You are a 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\nFor a dynamic array $A = \\{a_0, a_1, ...\\}$ of integers, perform a sequence of ... | {
"code_size": 552,
"language": "C",
"problem_id": "p02431",
"submission_id": "s870287460"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Unable Count\nI would, if I could,\nIf I couldn't how could I?\nI couldn't, without I cou... | {
"code_size": 426,
"language": "C",
"problem_id": "p00687",
"submission_id": "s531568313"
} |
[
{
"content": "You are a helpful 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": 1130,
"language": "C++",
"problem_id": "p01701",
"submission_id": "s063147919"
} |
[
{
"content": "You are a helpful 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_2,...,p_N\nconsisting of\n1\n,\n2\n... | {
"code_size": 392,
"language": "C",
"problem_id": "p03612",
"submission_id": "s509578437"
} |
[
{
"content": "You are a helpful 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 will play a game using a piece on an array of squares number... | {
"code_size": 1689,
"language": "C",
"problem_id": "p02585",
"submission_id": "s188798664"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "The Closest Circle\nYou are given\nN\nnon-overlapping circles in xy-plane. The radius of ... | {
"code_size": 1724,
"language": "C",
"problem_id": "p01180",
"submission_id": "s048794116"
} |
[
{
"content": "You are a helpful 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 working out. He is now exercising\nN\ntimes.\nBefore he st... | {
"code_size": 213,
"language": "C",
"problem_id": "p03796",
"submission_id": "s563235002"
} |
[
{
"content": "You are a helpful 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:\nSave the Energy\nYou were caught in a magical trap and transferred to a stran... | {
"code_size": 4298,
"language": "C",
"problem_id": "p01204",
"submission_id": "s699164406"
} |
[
{
"content": "You are a helpful 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": 519,
"language": "C",
"problem_id": "p03764",
"submission_id": "s531374966"
} |
[
{
"content": "You are a helpful 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\na\n,\nb\nand\nc\n. Find the ... | {
"code_size": 411,
"language": "C",
"problem_id": "p03392",
"submission_id": "s539168240"
} |
[
{
"content": "You are a helpful 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 round pizza. Snuke wants to eat one third of it, or somethin... | {
"code_size": 1061,
"language": "C++",
"problem_id": "p03094",
"submission_id": "s136732015"
} |
[
{
"content": "You are a helpful 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 permutation of the integers from\n1\nthrough\nN\n,\np_1\n,\n... | {
"code_size": 1352,
"language": "C++",
"problem_id": "p03354",
"submission_id": "s501728867"
} |
[
{
"content": "You are a helpful 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": 1100,
"language": "C++",
"problem_id": "p03203",
"submission_id": "s566931277"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have a long seat of width\nX\ncentimeters.\nThere are many people w... | {
"code_size": 169,
"language": "C",
"problem_id": "p03548",
"submission_id": "s300220106"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThe commonly used bills in Japan are\n10000\n-yen,\n5000\n-yen and\n10... | {
"code_size": 549,
"language": "C++",
"problem_id": "p03471",
"submission_id": "s839142378"
} |
[
{
"content": "You are a helpful 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.\nDetermine if\na+b=15\nor\na\... | {
"code_size": 326,
"language": "C++",
"problem_id": "p03302",
"submission_id": "s772008945"
} |
[
{
"content": "You are a helpful 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,\nN\nwhite and\nN\nblack, arranged in a row. The ... | {
"code_size": 1542,
"language": "C",
"problem_id": "p03357",
"submission_id": "s063030273"
} |
[
{
"content": "You are a helpful 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: Approximate Circle\nConsider a set of\nn\npoints (\nx\n1\n,\ny\n1\n),\n..., (\... | {
"code_size": 990,
"language": "C",
"problem_id": "p01591",
"submission_id": "s597597121"
} |
[
{
"content": "You are a helpful 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:\nDistorted Love\nSaying that it is not surprising that people want to know abo... | {
"code_size": 1444,
"language": "C",
"problem_id": "p00640",
"submission_id": "s973317424"
} |
[
{
"content": "You are a helpful 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\nRaccoon is fighting with a monster.\nThe\nhealth\nof the monster is\nH... | {
"code_size": 271,
"language": "C",
"problem_id": "p02784",
"submission_id": "s891739065"
} |
[
{
"content": "You are a helpful 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 the number of the positive diviso... | {
"code_size": 869,
"language": "C++",
"problem_id": "p03828",
"submission_id": "s765303999"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Patience\nAs the proverb says,\n\"Patience is bitter, but its fruit is sweet.\"\nWriting ... | {
"code_size": 1493,
"language": "C",
"problem_id": "p00692",
"submission_id": "s990316902"
} |
[
{
"content": "You are a helpful 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 sequence of\nN\nintegers\nA~=~A_0,~A_1,~...,~A_{N - 1}\n.\nL... | {
"code_size": 709,
"language": "C",
"problem_id": "p02928",
"submission_id": "s514582674"
} |
[
{
"content": "You are a helpful 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\nYou are given an integer sequence of length\nN\n,\na_1,a_2,...,a_N\n.\... | {
"code_size": 424,
"language": "C",
"problem_id": "p03611",
"submission_id": "s299509461"
} |
[
{
"content": "You are a helpful 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\nturkeys.\nWe number them from\n1\nthrough\nN\n.\nM\nmen ... | {
"code_size": 1038,
"language": "C++",
"problem_id": "p03691",
"submission_id": "s364239717"
} |
[
{
"content": "You are a helpful 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\nnot less than\n1\n.\nThe v... | {
"code_size": 910,
"language": "C++",
"problem_id": "p03196",
"submission_id": "s100028916"
} |
[
{
"content": "You are a helpful 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:\nHow Many Islands?\nYou are given a marine area map that is a mesh of squares,... | {
"code_size": 756,
"language": "C",
"problem_id": "p00741",
"submission_id": "s332983136"
} |
[
{
"content": "You are a helpful 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 Statement\nYou are given a string\nS\nof length\nN\nand another string\nT\nof len... | {
"code_size": 813,
"language": "C++",
"problem_id": "p03231",
"submission_id": "s497307333"
} |
[
{
"content": "You are a helpful 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 + 1\nsquares arranged in a row, numbered\n0, 1, ..., N\nf... | {
"code_size": 405,
"language": "C",
"problem_id": "p03378",
"submission_id": "s085308739"
} |
[
{
"content": "You are a helpful 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\nN\nintegers; the\ni\n-th of them is\nA_i\n.\nFind the m... | {
"code_size": 1271,
"language": "C++",
"problem_id": "p03223",
"submission_id": "s085513638"
} |
[
{
"content": "You are a helpful 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": 8888,
"language": "C++",
"problem_id": "p03120",
"submission_id": "s464967853"
} |
[
{
"content": "You are a helpful 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 distributing\nN\nballs to\nK\npersons.\nIf each person ha... | {
"code_size": 168,
"language": "C",
"problem_id": "p03005",
"submission_id": "s288988451"
} |
[
{
"content": "You are a helpful 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\nMin-Max Distance Game\nAlice and Bob are playing the following game. Initially... | {
"code_size": 1238,
"language": "C++",
"problem_id": "p00945",
"submission_id": "s458773703"
} |
[
{
"content": "You are a helpful 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 pot and\nN\ningredients. Each ingredient has a real number ... | {
"code_size": 482,
"language": "C++",
"problem_id": "p02935",
"submission_id": "s320929389"
} |
[
{
"content": "You are a helpful 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 a tower which is divided into\nN\nlayers.\nInitially, al... | {
"code_size": 926,
"language": "C",
"problem_id": "p03332",
"submission_id": "s823476606"
} |
[
{
"content": "You are a helpful 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\n2N\n, containing\nN\noccurrences... | {
"code_size": 1583,
"language": "C++",
"problem_id": "p03300",
"submission_id": "s783313368"
} |
[
{
"content": "You are a 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\nWrite a program which reads a sequence of integers $A = \\{a_0, a_1, ..., a_{n-1... | {
"code_size": 550,
"language": "C",
"problem_id": "p02443",
"submission_id": "s632587162"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.