messages listlengths 3 3 | metadata dict |
|---|---|
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given two sequences\na\nand\nb\n, both of length\n2N\n. The\ni... | {
"code_size": 1931,
"language": "C++",
"problem_id": "p03519",
"submission_id": "s829050256"
} |
[
{
"content": "You are a helpful 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:\nBubble Puzzle\nA browser-based puzzle game called \"Bubble Puzzle\" is now po... | {
"code_size": 2184,
"language": "C",
"problem_id": "p01497",
"submission_id": "s654764559"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Multiplication of Big Integers II\nGiven two integers $A$ and $B$, compute the product, $... | {
"code_size": 6218,
"language": "C",
"problem_id": "p02477",
"submission_id": "s228971816"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Nets of Dice\nIn mathematics, some plain words have special meanings.\nThe word \"\nnet\n... | {
"code_size": 2267,
"language": "C++",
"problem_id": "p00699",
"submission_id": "s270867137"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Tree Separator\nYou are given a tree $T$ and an integer $K$. You can choose arbitrary dis... | {
"code_size": 1539,
"language": "C++",
"problem_id": "p01960",
"submission_id": "s589122828"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWelcome to CODE FESTIVAL 2016!\nIn order to celebrate this contest, fi... | {
"code_size": 6530,
"language": "C",
"problem_id": "p03884",
"submission_id": "s006275890"
} |
[
{
"content": "You are a helpful 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": 1989,
"language": "C",
"problem_id": "p00890",
"submission_id": "s753573426"
} |
[
{
"content": "You are a helpful coding 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 professor invented Cookie Breeding Machine for his students who like... | {
"code_size": 224,
"language": "C",
"problem_id": "p03977",
"submission_id": "s571372276"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nDetermine if we can choose\nK\ndifferent integers between\n1\nand\nN\n... | {
"code_size": 343,
"language": "C++",
"problem_id": "p03129",
"submission_id": "s804239776"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given a string\nS\n. Each character of\nS\nis uppercase or low... | {
"code_size": 533,
"language": "C",
"problem_id": "p03289",
"submission_id": "s231076244"
} |
[
{
"content": "You are a helpful 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:\nOhgas' Fortune\nThe Ohgas are a prestigious family based on Hachioji. The he... | {
"code_size": 801,
"language": "C",
"problem_id": "p00716",
"submission_id": "s649123234"
} |
[
{
"content": "You are a helpful coding 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 received an undirected graph with\nN\nvertices, numbered... | {
"code_size": 1356,
"language": "C++",
"problem_id": "p03787",
"submission_id": "s246038220"
} |
[
{
"content": "You are a 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\nGiven are positive integers\nA\nand\nB\n.\nLet us choose some number o... | {
"code_size": 626,
"language": "C",
"problem_id": "p02900",
"submission_id": "s958066126"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou have an integer variable\nx\n.\nInitially,\nx=0\n.\nSome person ga... | {
"code_size": 357,
"language": "C++",
"problem_id": "p03827",
"submission_id": "s493676495"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Enumeration of Subsets III\nYou are given a set $T$, which is a subset of $S$. The set $S... | {
"code_size": 906,
"language": "C",
"problem_id": "p02429",
"submission_id": "s894872595"
} |
[
{
"content": "You are a helpful coding 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 hotel with the following accommodation fee:\nX\nyen (the cu... | {
"code_size": 258,
"language": "C++",
"problem_id": "p04011",
"submission_id": "s406313557"
} |
[
{
"content": "You are a helpful coding 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 undirected unweighted graph with\nN\nvertices and\nM\... | {
"code_size": 807,
"language": "C",
"problem_id": "p03805",
"submission_id": "s746600207"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Digits Are Not Just Characters\nMr. Manuel Majorana Minore made a number of files with nu... | {
"code_size": 1505,
"language": "C++",
"problem_id": "p00968",
"submission_id": "s527506449"
} |
[
{
"content": "You are a helpful coding 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\nS(n)\ndenote the sum of the digits in the decimal notation of\nn\... | {
"code_size": 1024,
"language": "C++",
"problem_id": "p03318",
"submission_id": "s313620773"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Electric Metronome\nA boy PCK is playing with\nN\nelectric metronomes. The\ni\n-th metron... | {
"code_size": 633,
"language": "C++",
"problem_id": "p00366",
"submission_id": "s791946668"
} |
[
{
"content": "You are a helpful coding 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": 532,
"language": "C++",
"problem_id": "p03672",
"submission_id": "s294526839"
} |
[
{
"content": "You are a helpful coding 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.\nF... | {
"code_size": 396,
"language": "C",
"problem_id": "p03624",
"submission_id": "s806392978"
} |
[
{
"content": "You are a helpful coding 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 an electric circuit, when two resistors\nR_1\nand\nR_2\nare connect... | {
"code_size": 403,
"language": "C++",
"problem_id": "p03888",
"submission_id": "s544354309"
} |
[
{
"content": "You are a helpful coding 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 rectangular board with square cells arranged in $H$ rows an... | {
"code_size": 3128,
"language": "C++",
"problem_id": "p01685",
"submission_id": "s019614167"
} |
[
{
"content": "You are a helpful coding 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 sequence\nA\ncomposed of\nN\npositive integers:\nA_{1}, A_{... | {
"code_size": 773,
"language": "C++",
"problem_id": "p02630",
"submission_id": "s089167746"
} |
[
{
"content": "You are a helpful coding 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 infinitely large triangular grid, as shown below.\nEach po... | {
"code_size": 5342,
"language": "C",
"problem_id": "p03121",
"submission_id": "s610050350"
} |
[
{
"content": "You are a helpful coding 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\nrectangular plate materials made of special metal called... | {
"code_size": 389,
"language": "C++",
"problem_id": "p03193",
"submission_id": "s139505887"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Division of Big Integers\nGiven two integers $A$ and $B$, compute the quotient, $\\frac{A... | {
"code_size": 6138,
"language": "C",
"problem_id": "p02475",
"submission_id": "s468558459"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Jigsaw Puzzles for Computers\nOrdinary Jigsaw puzzles are solved with visual hints;\nplay... | {
"code_size": 1244,
"language": "C",
"problem_id": "p00697",
"submission_id": "s252177585"
} |
[
{
"content": "You are a helpful coding 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 some other world, today is December\nD\n-th.\nWrite a program that ... | {
"code_size": 270,
"language": "C",
"problem_id": "p03206",
"submission_id": "s476646234"
} |
[
{
"content": "You are a helpful coding 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\nH \\times W\ngrid (\nH\nvertical,\nW\nhorizontal), where ... | {
"code_size": 1765,
"language": "C",
"problem_id": "p03383",
"submission_id": "s380345942"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Selection Sort\nWrite a program of the Selection Sort algorithm which sorts a sequence A ... | {
"code_size": 557,
"language": "C",
"problem_id": "p02260",
"submission_id": "s068902322"
} |
[
{
"content": "You are a helpful 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:\nMiscalculation\nBob is an elementary schoolboy, not so good at mathematics. H... | {
"code_size": 1225,
"language": "C++",
"problem_id": "p00925",
"submission_id": "s778168254"
} |
[
{
"content": "You are a helpful 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\nRouting a Marathon Race\nAs a member of the ICPC (Ibaraki Committee of Physica... | {
"code_size": 1433,
"language": "C++",
"problem_id": "p00943",
"submission_id": "s595317529"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Merge Sort\nWrite a program of a Merge Sort algorithm implemented by the following pseudo... | {
"code_size": 1077,
"language": "C++",
"problem_id": "p02272",
"submission_id": "s230717974"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Aizu PR\nAn English booklet has been created for publicizing Aizu to the world.\nWhen you... | {
"code_size": 465,
"language": "C++",
"problem_id": "p00101",
"submission_id": "s291553406"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Switching Railroad Cars\nThis figure shows railway tracks for reshuffling cars. The rail ... | {
"code_size": 272,
"language": "C",
"problem_id": "p00013",
"submission_id": "s714480722"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Identically Colored Panels Connection\nDr. Fukuoka has invented fancy panels.\nEach panel... | {
"code_size": 1926,
"language": "C++",
"problem_id": "p00755",
"submission_id": "s196031328"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nAoki loves numerical sequences and trees.\nOne day, Takahashi gave him... | {
"code_size": 662,
"language": "C",
"problem_id": "p03988",
"submission_id": "s957354532"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Sorting Five Numbers\nWrite a program which reads five numbers and sorts them in descendi... | {
"code_size": 351,
"language": "C++",
"problem_id": "p00018",
"submission_id": "s367846773"
} |
[
{
"content": "You are a helpful 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:\nA Piece of Cake\nIn the city, there are two pastry shops. One shop was very ... | {
"code_size": 278,
"language": "C++",
"problem_id": "p00613",
"submission_id": "s111650939"
} |
[
{
"content": "You are a helpful coding 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 string\ns\nconsisting of\na\nand\nb\n.\nSnuke can perform t... | {
"code_size": 1141,
"language": "C++",
"problem_id": "p03258",
"submission_id": "s104066786"
} |
[
{
"content": "You are a helpful coding 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 on an infinite two-dimensional plane. He is going on an\nN... | {
"code_size": 492,
"language": "C",
"problem_id": "p04019",
"submission_id": "s492849281"
} |
[
{
"content": "You are a helpful coding 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 polynomial of degree\nN\nwith integer coefficients:\nf... | {
"code_size": 1657,
"language": "C++",
"problem_id": "p03065",
"submission_id": "s755851241"
} |
[
{
"content": "You are a helpful 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:\nVector Field\nIn 20015, JAG (Jagan Acceleration Group) has succeeded in inven... | {
"code_size": 1632,
"language": "C++",
"problem_id": "p01820",
"submission_id": "s517010351"
} |
[
{
"content": "You are a 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": 972,
"language": "C++",
"problem_id": "p01422",
"submission_id": "s405128036"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Playoff by all the teams\nThe Minato Mirai Football Association hosts its annual champion... | {
"code_size": 1692,
"language": "C++",
"problem_id": "p01112",
"submission_id": "s904918977"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nServal is fighting with a monster.\nThe\nhealth\nof the monster is\nH\... | {
"code_size": 172,
"language": "C",
"problem_id": "p02783",
"submission_id": "s125710575"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Physical Experiments\nIgnoring the air resistance, velocity of a freely falling object $v... | {
"code_size": 228,
"language": "C",
"problem_id": "p00024",
"submission_id": "s381636941"
} |
[
{
"content": "You are a helpful coding 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\n.\nDoes a tree with\nn\nverti... | {
"code_size": 995,
"language": "C++",
"problem_id": "p03248",
"submission_id": "s898893698"
} |
[
{
"content": "You are a helpful 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:\nCity Merger\nRecent improvements in information and communication technology ... | {
"code_size": 1915,
"language": "C++",
"problem_id": "p00899",
"submission_id": "s747411782"
} |
[
{
"content": "You are a helpful coding 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\nYou are given strings\nS\nand\nT\nconsisting of lowercase English lett... | {
"code_size": 820,
"language": "C++",
"problem_id": "p03252",
"submission_id": "s541967106"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nCircles Island is known for its mysterious shape:\nit is a completely ... | {
"code_size": 1294,
"language": "C++",
"problem_id": "p01705",
"submission_id": "s709910146"
} |
[
{
"content": "You are a helpful 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:\nTrue Liars\nAfter having drifted about in a small boat for a couple of days, ... | {
"code_size": 3794,
"language": "C",
"problem_id": "p00817",
"submission_id": "s642445379"
} |
[
{
"content": "You are a helpful 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:\nJaggie Spheres\nLet\nJ\n(\nn\n) be a three-dimensional body that\nis a union ... | {
"code_size": 1921,
"language": "C++",
"problem_id": "p01217",
"submission_id": "s905713615"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nTakahashi has decided to make a\nChristmas Tree\nfor the Christmas par... | {
"code_size": 3484,
"language": "C",
"problem_id": "p03484",
"submission_id": "s262690770"
} |
[
{
"content": "You are a helpful coding 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 in a forest, Alice found an old monolith.\nShe investigated th... | {
"code_size": 3208,
"language": "C++",
"problem_id": "p01652",
"submission_id": "s786230323"
} |
[
{
"content": "You are a helpful 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\nRouting a Marathon Race\nAs a member of the ICPC (Ibaraki Committee of Physica... | {
"code_size": 1865,
"language": "C",
"problem_id": "p00943",
"submission_id": "s492185853"
} |
[
{
"content": "You are a helpful coding 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\nThere are\nN\nslimes standing on a number line.\nThe\ni\n-th slime fro... | {
"code_size": 1858,
"language": "C++",
"problem_id": "p02807",
"submission_id": "s354148476"
} |
[
{
"content": "You are a helpful coding 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\nblocks arranged in a row, numbered\n1\nto\nN\nfrom left ... | {
"code_size": 1280,
"language": "C++",
"problem_id": "p03232",
"submission_id": "s592264696"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "You and your grandma are playing with graph automata, which is generalization of cell aut... | {
"code_size": 4197,
"language": "C++",
"problem_id": "p01736",
"submission_id": "s478006608"
} |
[
{
"content": "You are a helpful coding 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 non-negative integer\nincreasing\nif, for any two adjac... | {
"code_size": 1223,
"language": "C",
"problem_id": "p03789",
"submission_id": "s412393864"
} |
[
{
"content": "You are a helpful coding 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 simple connected undirected graph with\nN\nvertices an... | {
"code_size": 1665,
"language": "C++",
"problem_id": "p02976",
"submission_id": "s191470234"
} |
[
{
"content": "You are a helpful 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:\nSuper Star\nDuring a voyage of the starship Hakodate-maru (see Problem A), re... | {
"code_size": 576,
"language": "C",
"problem_id": "p00810",
"submission_id": "s664717662"
} |
[
{
"content": "You are a helpful 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:\nSum of Consecutive Prime Numbers\nSome positive integers can be represented b... | {
"code_size": 702,
"language": "C",
"problem_id": "p00836",
"submission_id": "s429740201"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Recurring Decimals\nA decimal representation of an integer can be transformed to another ... | {
"code_size": 1153,
"language": "C",
"problem_id": "p00761",
"submission_id": "s500328594"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "What Goes Up Must Come Down\nSeveral cards with numbers printed on them are lined up on t... | {
"code_size": 1811,
"language": "C++",
"problem_id": "p00974",
"submission_id": "s432920566"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "JPEG Compression\nThe fundamental idea in the JPEG compression algorithm is to sort coeff... | {
"code_size": 729,
"language": "C",
"problem_id": "p00593",
"submission_id": "s534333843"
} |
[
{
"content": "You are a helpful coding 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\nconsisting of lowercase English letters.\nSnuke c... | {
"code_size": 644,
"language": "C",
"problem_id": "p03569",
"submission_id": "s172902403"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Caesar Cipher\nIn cryptography, Caesar cipher is one of the simplest and most widely know... | {
"code_size": 672,
"language": "C++",
"problem_id": "p00017",
"submission_id": "s477413204"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Bamboo Blossoms\nThe bamboos live for decades, and at the end of their lives,\nthey flowe... | {
"code_size": 431,
"language": "C",
"problem_id": "p01095",
"submission_id": "s232247884"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Binary Search Tree I\nSearch trees are data structures that support dynamic set operation... | {
"code_size": 1318,
"language": "C++",
"problem_id": "p02283",
"submission_id": "s771053842"
} |
[
{
"content": "You are a helpful 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:\nKaeru Jump\nThere is a frog living in a big pond. He loves jumping between lo... | {
"code_size": 1257,
"language": "C",
"problem_id": "p01340",
"submission_id": "s733154730"
} |
[
{
"content": "You are a helpful 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:\nEquals are Equals\nMr. Simpson got up with a slight feeling of tiredness. It ... | {
"code_size": 4665,
"language": "C",
"problem_id": "p00812",
"submission_id": "s185171764"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "ICPC Calculator\nIn mathematics, we usually specify the order of operations by using\npar... | {
"code_size": 1020,
"language": "C",
"problem_id": "p01087",
"submission_id": "s872370664"
} |
[
{
"content": "You are a helpful coding 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\nislands floating in Ringo Sea, and\nM\ntravel agents ope... | {
"code_size": 2084,
"language": "C",
"problem_id": "p03513",
"submission_id": "s012057168"
} |
[
{
"content": "You are a helpful 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\nAs AtCoder Beginner Contest 100 is taking place, the office of AtCoder... | {
"code_size": 432,
"language": "C++",
"problem_id": "p03325",
"submission_id": "s956688311"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Union of Rectangles\nGiven a set of $N$ axis-aligned rectangles in the plane, find the ar... | {
"code_size": 1952,
"language": "C",
"problem_id": "p02358",
"submission_id": "s040980970"
} |
[
{
"content": "You are a 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: $1500$ Points\nProblem Statement\nHuge kingdom: $Atcoder$ contains $N$ towns a... | {
"code_size": 3393,
"language": "C",
"problem_id": "p03758",
"submission_id": "s154207238"
} |
[
{
"content": "You are a helpful coding 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 Japan, people make offerings called\nhina arare\n, colorful cracker... | {
"code_size": 338,
"language": "C++",
"problem_id": "p03424",
"submission_id": "s320204603"
} |
[
{
"content": "You are a helpful coding 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\nbarbecue restaurants along a street.\nThe restaurants ar... | {
"code_size": 1753,
"language": "C++",
"problem_id": "p03833",
"submission_id": "s938438983"
} |
[
{
"content": "You are a helpful 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:\nGap\nLet’s play a card game called Gap.\nYou have 28 cards labeled with two-d... | {
"code_size": 1989,
"language": "C++",
"problem_id": "p00824",
"submission_id": "s980823774"
} |
[
{
"content": "You are a helpful coding 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 puzzles.\nToday, he is working on a puzzle using\nS\n- and... | {
"code_size": 245,
"language": "C",
"problem_id": "p03797",
"submission_id": "s318218441"
} |
[
{
"content": "You are a helpful 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:\nWeather Forecast\nYou are the God of Wind.\nBy moving a big cloud around, you... | {
"code_size": 1660,
"language": "C",
"problem_id": "p00822",
"submission_id": "s382449569"
} |
[
{
"content": "You are a helpful coding 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 puzzles.\nToday, he is working on a puzzle using\nS\n- and... | {
"code_size": 348,
"language": "C++",
"problem_id": "p03797",
"submission_id": "s629864792"
} |
[
{
"content": "You are a helpful 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": "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\nSnuke is giving cookies to his three goats.\nHe has two cookie tins. O... | {
"code_size": 207,
"language": "C",
"problem_id": "p03657",
"submission_id": "s975863758"
} |
[
{
"content": "You are a helpful 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: The House of Huge Family\nMr. Dango's family has an extremely huge number of m... | {
"code_size": 1457,
"language": "C",
"problem_id": "p00650",
"submission_id": "s165088872"
} |
[
{
"content": "You are a helpful 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:\nIntersection of Two Prisms\nSuppose that\nP\n1\nis an infinite-height prism w... | {
"code_size": 1914,
"language": "C++",
"problem_id": "p00892",
"submission_id": "s328031340"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Jigsaw Puzzles for Computers\nOrdinary Jigsaw puzzles are solved with visual hints;\nplay... | {
"code_size": 1326,
"language": "C++",
"problem_id": "p00697",
"submission_id": "s383975842"
} |
[
{
"content": "You are a helpful coding 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": "Matrix-like Computation\nYour task is to develop a tiny little part of spreadsheet softwa... | {
"code_size": 689,
"language": "C++",
"problem_id": "p00102",
"submission_id": "s879815329"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Multiplication of Big Integers\nGiven two integers $A$ and $B$, compute the product, $A \... | {
"code_size": 5439,
"language": "C++",
"problem_id": "p02474",
"submission_id": "s724842463"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem J. Prime Routing\nFox Jiro is one of the staffs of the ACM-ICPC 2018 Asia Yokoham... | {
"code_size": 1726,
"language": "C++",
"problem_id": "p02013",
"submission_id": "s227210222"
} |
[
{
"content": "You are a helpful 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:\nInfected Computer\nAdam Ivan is working as a system administrator at Soy Grou... | {
"code_size": 834,
"language": "C",
"problem_id": "p01273",
"submission_id": "s180856045"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.