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 B:\nHow I Mathematician Wonder What You Are!\nAfter counting so many stars in the... | {
"code_size": 1723,
"language": "C",
"problem_id": "p00846",
"submission_id": "s754188909"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nE869120 has\nA\n1\n-yen coins and infinitely many\n500\n-yen coins.\nD... | {
"code_size": 177,
"language": "C",
"problem_id": "p03433",
"submission_id": "s698741475"
} |
[
{
"content": "You are a helpful 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:\nICPC: Intelligent Congruent Partition of Chocolate\nThe twins named Tatsuya a... | {
"code_size": 3069,
"language": "C++",
"problem_id": "p00739",
"submission_id": "s491799992"
} |
[
{
"content": "You are a helpful coding 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\np\n= {\np_1,\\ p_2,\\ ...,\\ p_n\n} of {\n1,\\ ... | {
"code_size": 347,
"language": "C",
"problem_id": "p02988",
"submission_id": "s750792424"
} |
[
{
"content": "You are a helpful coding 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\nslimes standing on a number line.\nThe\ni\n-th slime fro... | {
"code_size": 6192,
"language": "C",
"problem_id": "p02807",
"submission_id": "s405816395"
} |
[
{
"content": "You are a helpful coding 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\nsquare tiles. The tiles are numbered\n1\nthr... | {
"code_size": 2843,
"language": "C",
"problem_id": "p03968",
"submission_id": "s889979188"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Parentheses Editor\nYou are working with a strange text editor for texts consisting only ... | {
"code_size": 1589,
"language": "C++",
"problem_id": "p00986",
"submission_id": "s148590801"
} |
[
{
"content": "You are a helpful coding 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\nSnuke Cats numbered\n1, 2, \\ldots, N\n, where\nN\nis\ne... | {
"code_size": 699,
"language": "C++",
"problem_id": "p02631",
"submission_id": "s760013068"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Paper Fortune\nIf you visit Aizu Akabeko shrine, you will find a unique paper fortune on ... | {
"code_size": 1400,
"language": "C",
"problem_id": "p00369",
"submission_id": "s249867047"
} |
[
{
"content": "You are a helpful coding 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 sequence\np\n, which is a permutation of\n(0,1,2, ...,N-1)... | {
"code_size": 985,
"language": "C",
"problem_id": "p03518",
"submission_id": "s506514400"
} |
[
{
"content": "You are a helpful coding 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, and... | {
"code_size": 1587,
"language": "C++",
"problem_id": "p03014",
"submission_id": "s031153305"
} |
[
{
"content": "You are a 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 I\nGiven a non-negative decimal integer $x$, convert it to binary represent... | {
"code_size": 409,
"language": "C++",
"problem_id": "p02423",
"submission_id": "s190341539"
} |
[
{
"content": "You are a helpful coding 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 SNS has\nN\nusers - User\n1\n, User\n2\n,\n\\cdots\n, User\nN\n.\nB... | {
"code_size": 1363,
"language": "C",
"problem_id": "p02762",
"submission_id": "s733290505"
} |
[
{
"content": "You are a helpful coding 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 strong stomach. He never gets a stomachache from eatin... | {
"code_size": 239,
"language": "C",
"problem_id": "p03679",
"submission_id": "s762236082"
} |
[
{
"content": "You are a helpful coding 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 two strings\nS\nand\nT\n.\nLet us change some of the charact... | {
"code_size": 466,
"language": "C",
"problem_id": "p02571",
"submission_id": "s107120690"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Single Source Shortest Path II\nFor a given weighted graph $G = (V, E)$, find the shortes... | {
"code_size": 1189,
"language": "C",
"problem_id": "p02243",
"submission_id": "s734408514"
} |
[
{
"content": "You are a helpful coding 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 strings\ns\nand\nt\n, we will say that\ns\nand\nt\nare\nprefix-fre... | {
"code_size": 5403,
"language": "C",
"problem_id": "p03491",
"submission_id": "s284009814"
} |
[
{
"content": "You are a helpful coding 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 competing in a sumo tournament.\nThe tournament lasts for... | {
"code_size": 309,
"language": "C",
"problem_id": "p03024",
"submission_id": "s569750608"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Cross Points of a Circe and a Line\nFor given a circle $c$ and a line $l$, print the coor... | {
"code_size": 1392,
"language": "C",
"problem_id": "p02308",
"submission_id": "s295985231"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Window\nIn the building of Jewelry Art Gallery (JAG), there is a long corridor in the eas... | {
"code_size": 755,
"language": "C++",
"problem_id": "p01956",
"submission_id": "s708990517"
} |
[
{
"content": "You are a helpful 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:\nFinding the Top RPS Player\nA company “ACM Foods” is preparing for opening it... | {
"code_size": 745,
"language": "C++",
"problem_id": "p01241",
"submission_id": "s316931981"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Loading\nAizu Ocean Transport Company (AOTC) accepted a new shipping order. The pieces of... | {
"code_size": 1871,
"language": "C",
"problem_id": "p00358",
"submission_id": "s613861063"
} |
[
{
"content": "You are a helpful coding 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\nintegers. The\ni\n-th number is\nA_i\n.\n\\{A_i\\}\nis sai... | {
"code_size": 1333,
"language": "C",
"problem_id": "p02574",
"submission_id": "s168827271"
} |
[
{
"content": "You are a 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 Garden with Ponds\nMr. Gardiner is a modern garden designer who is excellent at utilizi... | {
"code_size": 1521,
"language": "C++",
"problem_id": "p01103",
"submission_id": "s335707908"
} |
[
{
"content": "You are a helpful 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:\nComputation of Minimum Length of Pipeline\nThe Aizu Wakamatsu city office dec... | {
"code_size": 332,
"language": "C",
"problem_id": "p00600",
"submission_id": "s115789719"
} |
[
{
"content": "You are a helpful coding 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 the year 2168, AtCoder Inc., which is much larger than now, is sta... | {
"code_size": 1446,
"language": "C++",
"problem_id": "p03566",
"submission_id": "s837381927"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem G:\nDefend the Bases\nA country Gizevom is being under a sneak and fierce attack ... | {
"code_size": 1968,
"language": "C",
"problem_id": "p01279",
"submission_id": "s651632394"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given strings\ns\nand\nt\n, both of length\nN\n.\ns\nand\nt\nc... | {
"code_size": 1203,
"language": "C++",
"problem_id": "p03190",
"submission_id": "s633201613"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nCat Snuke is learning to write characters.\nToday, he practiced writin... | {
"code_size": 242,
"language": "C",
"problem_id": "p03242",
"submission_id": "s662985509"
} |
[
{
"content": "You are a helpful coding 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 tree\nG\nwith\nN\nvertices.\nThe vertices are numbered\n1\n... | {
"code_size": 1808,
"language": "C",
"problem_id": "p02850",
"submission_id": "s334174652"
} |
[
{
"content": "You are a helpful coding 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 forest with\nN\nvertices and\nM\nedges. The vertices a... | {
"code_size": 1812,
"language": "C++",
"problem_id": "p03440",
"submission_id": "s468869564"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Bridges\nFind bridges of an undirected graph\nG(V, E)\n.\nA bridge (also known as a cut-e... | {
"code_size": 1814,
"language": "C++",
"problem_id": "p02367",
"submission_id": "s540313168"
} |
[
{
"content": "You are a 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 Number of Inversions\nFor a given sequence $A = \\{a_0, a_1, ... a_{n-1}\\}$, the num... | {
"code_size": 1021,
"language": "C",
"problem_id": "p02274",
"submission_id": "s183313773"
} |
[
{
"content": "You are a helpful coding 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\ncamels numbered\n1,2,\\ldots,N\n.\nSnuke has decided to ma... | {
"code_size": 2779,
"language": "C",
"problem_id": "p02610",
"submission_id": "s127782388"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given a string\nS\n.\nTakahashi can insert the character\nA\na... | {
"code_size": 748,
"language": "C",
"problem_id": "p03523",
"submission_id": "s129555361"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Book Index\nBooks are indexed. Write a program which reads a list of pairs of a word and ... | {
"code_size": 703,
"language": "C++",
"problem_id": "p00105",
"submission_id": "s199573906"
} |
[
{
"content": "You are a helpful 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\nSibling Rivalry\nYou are playing a game with your elder brother.\nFirst, a num... | {
"code_size": 1535,
"language": "C++",
"problem_id": "p00937",
"submission_id": "s644949771"
} |
[
{
"content": "You are a helpful 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:\nCliff Climbing\nAt 17:00, special agent Jack starts to escape from the enemy ... | {
"code_size": 2284,
"language": "C",
"problem_id": "p00731",
"submission_id": "s506435797"
} |
[
{
"content": "You are a helpful 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:\nCommon Polynomial\nMath teacher Mr. Matsudaira is teaching expansion and fact... | {
"code_size": 3266,
"language": "C",
"problem_id": "p00872",
"submission_id": "s902172523"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Advanced Algorithm Class\nIn the advanced algorithm class, n\n2\nstudents sit in n rows a... | {
"code_size": 972,
"language": "C++",
"problem_id": "p00591",
"submission_id": "s965861307"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nA sequence\na_1,a_2,... ,a_n\nis said to be /\\/\\/\\/ when the follow... | {
"code_size": 1308,
"language": "C",
"problem_id": "p03244",
"submission_id": "s507057391"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\npeople. The name of the\ni\n-th person is\nS_i\n.\nWe wo... | {
"code_size": 828,
"language": "C++",
"problem_id": "p03425",
"submission_id": "s461150981"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Set Union\nFind the union of two sets $A = \\{a_0, a_1, ..., a_{n-1}\\}$ and $B = \\{b_0,... | {
"code_size": 804,
"language": "C",
"problem_id": "p02463",
"submission_id": "s657504982"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "LCA: Lowest Common Ancestor\nFor a rooted tree, find the lowest common ancestor of two no... | {
"code_size": 1856,
"language": "C",
"problem_id": "p02373",
"submission_id": "s917400400"
} |
[
{
"content": "You are a helpful coding 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 define the\nmedian\nof a sequence\nb\nof length\nM\n, as follo... | {
"code_size": 1167,
"language": "C",
"problem_id": "p03277",
"submission_id": "s678184317"
} |
[
{
"content": "You are a helpful 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:\nCleaning Robot\nHere, we want to solve path planning for a mobile robot clean... | {
"code_size": 1925,
"language": "C",
"problem_id": "p00721",
"submission_id": "s406139868"
} |
[
{
"content": "You are a helpful coding 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 prime number\np\nand a sequence of\np\nintegers\na_0, \\ld... | {
"code_size": 1957,
"language": "C++",
"problem_id": "p02950",
"submission_id": "s892273250"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given three integers\nA, B\nand\nC\n.\nDetermine if there exis... | {
"code_size": 181,
"language": "C",
"problem_id": "p03079",
"submission_id": "s531165235"
} |
[
{
"content": "You are a helpful coding 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\nGiven are a sequence of\nN\nintegers\nA_1\n,\nA_2\n,\n\\ldots\n,\nA_N\... | {
"code_size": 531,
"language": "C",
"problem_id": "p02734",
"submission_id": "s851478770"
} |
[
{
"content": "You are a 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": "Sum of 4 Integers\nWrite a program which reads an integer\nn\nand identifies the number o... | {
"code_size": 383,
"language": "C++",
"problem_id": "p00008",
"submission_id": "s863518009"
} |
[
{
"content": "You are a helpful 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:\nSpherical Mirrors\nA long time ago in a galaxy, far, far away, there were N s... | {
"code_size": 3046,
"language": "C++",
"problem_id": "p00868",
"submission_id": "s026708079"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given three strings\nA, B\nand\nC\n. Each of these is a string... | {
"code_size": 470,
"language": "C",
"problem_id": "p03140",
"submission_id": "s482283740"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Max Problem Statement\nMr.X, who the handle name is\nT\n, looked at the list which writte... | {
"code_size": 1357,
"language": "C",
"problem_id": "p03751",
"submission_id": "s598413949"
} |
[
{
"content": "You are a helpful coding 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": "Problem Statement\nTaro and Jiro will play the following game against each other.\nInitia... | {
"code_size": 966,
"language": "C++",
"problem_id": "p03171",
"submission_id": "s509136200"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke has a board with an\nN \\times N\ngrid, and\nN \\times N\ntiles.... | {
"code_size": 4980,
"language": "C++",
"problem_id": "p03918",
"submission_id": "s945530621"
} |
[
{
"content": "You are a helpful coding 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 permutations\n(P_0,P_1,\\cdots,P_{N-1})\nand\n(Q_0,Q_1,\\cdo... | {
"code_size": 2578,
"language": "C++",
"problem_id": "p02908",
"submission_id": "s650361674"
} |
[
{
"content": "You are a helpful 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: School of Killifish\nJon is the leader of killifish.\nJon have a problem in th... | {
"code_size": 2318,
"language": "C++",
"problem_id": "p00653",
"submission_id": "s853149800"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "We don't wanna work!\nACM is an organization of programming contests. The purpose of ACM ... | {
"code_size": 3069,
"language": "C++",
"problem_id": "p01882",
"submission_id": "s800082724"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Transformation\nWrite a program which performs a sequence of commands to a given string $... | {
"code_size": 712,
"language": "C++",
"problem_id": "p02422",
"submission_id": "s544099296"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "0-1 Knapsack Problem II\nYou have\nN\nitems that you want to put them into a knapsack. It... | {
"code_size": 749,
"language": "C",
"problem_id": "p02319",
"submission_id": "s695983457"
} |
[
{
"content": "You are a helpful coding 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 from left to right. The\ni\n-th ... | {
"code_size": 763,
"language": "C",
"problem_id": "p03287",
"submission_id": "s621118564"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nKyoto University decided to build a straight wall on the west side of ... | {
"code_size": 1584,
"language": "C++",
"problem_id": "p03982",
"submission_id": "s512627330"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Range\nWrite a program which reads three integers\na\n,\nb\nand\nc\n, and prints \"Yes\" ... | {
"code_size": 193,
"language": "C++",
"problem_id": "p02392",
"submission_id": "s787173891"
} |
[
{
"content": "You are a helpful coding 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.D. 2101, war was beginning. The enemy has taken over all of our b... | {
"code_size": 1743,
"language": "C++",
"problem_id": "p02072",
"submission_id": "s965161238"
} |
[
{
"content": "You are a helpful 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\nJAG-channel II\nJAG (Japan Alumni Group) is a group of $N$ members that devote... | {
"code_size": 2034,
"language": "C++",
"problem_id": "p01796",
"submission_id": "s821848074"
} |
[
{
"content": "You are a helpful 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:\nSeparate Points\nNumbers of black and white points are placed on a plane. Let... | {
"code_size": 3540,
"language": "C++",
"problem_id": "p00877",
"submission_id": "s871298641"
} |
[
{
"content": "You are a helpful coding 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\n{\\rm comb}(n,r)\nbe the number of ways to choose\nr\nobjects fro... | {
"code_size": 588,
"language": "C",
"problem_id": "p03380",
"submission_id": "s407032339"
} |
[
{
"content": "You are a helpful coding 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 lives in another world, where slimes are real creatures and kept... | {
"code_size": 938,
"language": "C++",
"problem_id": "p04006",
"submission_id": "s945898216"
} |
[
{
"content": "You are a helpful coding 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 CODE FESTIVAL XXXX, there are\nN+1\nparticipants from all over the ... | {
"code_size": 1118,
"language": "C",
"problem_id": "p03525",
"submission_id": "s740537138"
} |
[
{
"content": "You are a helpful 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:\nTest Case Tweaking\nYou are a judge of a programming contest. You are prepari... | {
"code_size": 1606,
"language": "C++",
"problem_id": "p00890",
"submission_id": "s355940354"
} |
[
{
"content": "You are a helpful 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:\nHow to Create a Good Game\nA video game company called ICPC (International Co... | {
"code_size": 3493,
"language": "C++",
"problem_id": "p01347",
"submission_id": "s589537014"
} |
[
{
"content": "You are a helpful coding 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 smallest possible sum of the digits in the decimal notation o... | {
"code_size": 1019,
"language": "C++",
"problem_id": "p03558",
"submission_id": "s058929617"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Longest Increasing Subsequence\nFor a given sequence\nA = {a\n0\n, a\n1\n, ... , a\nn-1\n... | {
"code_size": 704,
"language": "C++",
"problem_id": "p02317",
"submission_id": "s402707698"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nFor a finite set of integers\nX\n, let\nf(X)=\\max X - \\min X\n.\nGiv... | {
"code_size": 1789,
"language": "C++",
"problem_id": "p02804",
"submission_id": "s839292553"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "X Cubic\nWrite a program which calculates the cube of a given integer\nx\n.\nInput\nAn in... | {
"code_size": 119,
"language": "C++",
"problem_id": "p02388",
"submission_id": "s543309664"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Rope\nJOI is a baby playing with a rope. The rope has length $N$, and it is placed as a s... | {
"code_size": 1798,
"language": "C++",
"problem_id": "p00563",
"submission_id": "s672261741"
} |
[
{
"content": "You are a helpful 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:\nBillion Million Thousand\nA linguist, Nodvic Natharus Damenhof (commonly call... | {
"code_size": 1365,
"language": "C++",
"problem_id": "p01249",
"submission_id": "s258571412"
} |
[
{
"content": "You are a helpful coding 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\npieces of source code. The characteristics of the\ni\n-t... | {
"code_size": 459,
"language": "C",
"problem_id": "p03102",
"submission_id": "s672395364"
} |
[
{
"content": "You are a helpful coding 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 three airports A, B and C, and flights between each pair of ... | {
"code_size": 267,
"language": "C",
"problem_id": "p03011",
"submission_id": "s588196351"
} |
[
{
"content": "You are a helpful coding 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 us consider a grid of squares with\nN\nrows and\nN\ncolumns.\nArbo... | {
"code_size": 2360,
"language": "C++",
"problem_id": "p02828",
"submission_id": "s575540600"
} |
[
{
"content": "You are a 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-chain Multiplication\nThe goal of the matrix-chain multiplication problem is to fi... | {
"code_size": 728,
"language": "C++",
"problem_id": "p02234",
"submission_id": "s333278750"
} |
[
{
"content": "You are a helpful 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:\nBicube\nMary Thomas has a number of sheets of squared paper. Some of squares ... | {
"code_size": 4497,
"language": "C++",
"problem_id": "p01496",
"submission_id": "s123511327"
} |
[
{
"content": "You are a helpful coding 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 lowercase English letters.\nA... | {
"code_size": 770,
"language": "C",
"problem_id": "p03856",
"submission_id": "s718339282"
} |
[
{
"content": "You are a helpful coding 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 sequence of\nN\npositive integers\nA_1, A_2, \\ldots, A_N\... | {
"code_size": 1469,
"language": "C",
"problem_id": "p02851",
"submission_id": "s395541053"
} |
[
{
"content": "You are a helpful coding 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\njewelry shops numbered\n1\nto\nN\n.\nShop\ni\n(\n1 \\leq... | {
"code_size": 3239,
"language": "C++",
"problem_id": "p02740",
"submission_id": "s566995446"
} |
[
{
"content": "You are a helpful 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:\nDungeon Quest II\nThe cave, called \"Mass of Darkness\", had been a agitating... | {
"code_size": 1990,
"language": "C++",
"problem_id": "p01361",
"submission_id": "s035954810"
} |
[
{
"content": "You are a helpful coding 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 strings\ns\nand\nt\nof length\nN\neach, both consisting of l... | {
"code_size": 246,
"language": "C",
"problem_id": "p02830",
"submission_id": "s580288305"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nColoring of the vertices of a tree\nG\nis called a\ngood coloring\nwhe... | {
"code_size": 6816,
"language": "C",
"problem_id": "p03348",
"submission_id": "s629206171"
} |
[
{
"content": "You are a helpful coding 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": 682,
"language": "C",
"problem_id": "p03459",
"submission_id": "s966192546"
} |
[
{
"content": "You are a helpful coding 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\nS\nsheep and\nW\nwolves.\nIf the number of wolves is greate... | {
"code_size": 161,
"language": "C",
"problem_id": "p02699",
"submission_id": "s589842178"
} |
[
{
"content": "You are a helpful 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:\nCleaning Robot 2.0\nDr. Asimov, a robotics researcher, released cleaning robo... | {
"code_size": 906,
"language": "C",
"problem_id": "p00610",
"submission_id": "s608837976"
} |
[
{
"content": "You are a helpful coding 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\n2N\npots. The market price of the\ni\n-th pot\n(1 ≤ i ≤ 2N)\n... | {
"code_size": 469,
"language": "C++",
"problem_id": "p03514",
"submission_id": "s835743070"
} |
[
{
"content": "You are a helpful 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. Colorful Drink\nIn the Jambo Amusement Garden (JAG), you sell colorful drinks ... | {
"code_size": 1007,
"language": "C++",
"problem_id": "p02005",
"submission_id": "s731692304"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere is a sequence of length\nN\n:\nA_1, A_2, ..., A_N\n. Initially, ... | {
"code_size": 274,
"language": "C",
"problem_id": "p03319",
"submission_id": "s978690756"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nGiven is a positive even number\nN\n.\nFind the number of strings\ns\n... | {
"code_size": 1417,
"language": "C++",
"problem_id": "p02875",
"submission_id": "s735261963"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem G:\nNeko's Treasure\nMaki is a house cat. One day she fortunately came at a wonde... | {
"code_size": 2490,
"language": "C++",
"problem_id": "p01299",
"submission_id": "s160488138"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Max Score: $1200$ Points\nProblem statement\nThere are $N$ customers in a restaurant. Eac... | {
"code_size": 2366,
"language": "C++",
"problem_id": "p03934",
"submission_id": "s454601889"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.