felixwangg/Qwen2.5-Coder-7B-func-stage1
Text Generation • Updated • 12
messages listlengths 3 3 | metadata dict |
|---|---|
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Income Inequality\nWe often compute the average as the first step\nin processing statisti... | {
"code_size": 404,
"language": "C",
"problem_id": "p01109",
"submission_id": "s854706483"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nTakahashi is participating in a programming contest called AXC002, and... | {
"code_size": 618,
"language": "C++",
"problem_id": "p02613",
"submission_id": "s102196262"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "There are\nn\nprocesses in a queue. Each process has name\ni\nand time\ni\n. The round-r... | {
"code_size": 778,
"language": "C",
"problem_id": "p02264",
"submission_id": "s608368753"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere is a square grid with\nN\nrows and\nM\ncolumns.\nEach square con... | {
"code_size": 1549,
"language": "C",
"problem_id": "p03133",
"submission_id": "s583165359"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\nbags of biscuits. The\ni\n-th bag contains\nA_i\nbiscuit... | {
"code_size": 646,
"language": "C",
"problem_id": "p03665",
"submission_id": "s643166543"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThe\nbeauty\nof a sequence\na\nof length\nn\nis defined as\na_1 \\oplu... | {
"code_size": 2019,
"language": "C++",
"problem_id": "p03051",
"submission_id": "s098756066"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are going out for a walk, when you suddenly encounter a monster. F... | {
"code_size": 858,
"language": "C",
"problem_id": "p03472",
"submission_id": "s840747884"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given a string\nS\nof length\nN\nconsisting of\nA\n,\nC\n,\nG\... | {
"code_size": 536,
"language": "C",
"problem_id": "p03087",
"submission_id": "s479997137"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\ndots in a two-dimensional plane. The coordinates of the\... | {
"code_size": 2025,
"language": "C",
"problem_id": "p02998",
"submission_id": "s889880007"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\nholes in a two-dimensional plane. The coordinates of the... | {
"code_size": 2288,
"language": "C++",
"problem_id": "p03428",
"submission_id": "s079025089"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe will call a string that can be obtained by concatenating two equal ... | {
"code_size": 1609,
"language": "C",
"problem_id": "p03678",
"submission_id": "s580542785"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\nintegers written on a blackboard. The\ni\n-th integer is... | {
"code_size": 1400,
"language": "C++",
"problem_id": "p03811",
"submission_id": "s150511616"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem G:\nEntangled Tree\nThe electronics division in Ishimatsu Company consists of var... | {
"code_size": 2091,
"language": "C++",
"problem_id": "p01177",
"submission_id": "s059812702"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nIt's now the season of TAKOYAKI FESTIVAL!\nThis year,\nN\ntakoyaki (a ... | {
"code_size": 295,
"language": "C",
"problem_id": "p02886",
"submission_id": "s520974805"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nGiven are a positive integer\nN\nand a sequence of length\n2^N\nconsis... | {
"code_size": 2606,
"language": "C++",
"problem_id": "p02739",
"submission_id": "s537604699"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem E:\nMap of Ninja House\nAn old document says that a Ninja House in Kanazawa City ... | {
"code_size": 1479,
"language": "C++",
"problem_id": "p00815",
"submission_id": "s540695172"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke has an integer sequence\nA\nof length\nN\n.\nHe will make three ... | {
"code_size": 1480,
"language": "C++",
"problem_id": "p03312",
"submission_id": "s727899215"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nAn elementary school student Takahashi has come to a variety store.\nH... | {
"code_size": 208,
"language": "C++",
"problem_id": "p03407",
"submission_id": "s414171339"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are going to hold a competition of one-to-one game called AtCoder ... | {
"code_size": 457,
"language": "C",
"problem_id": "p02697",
"submission_id": "s947252998"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke found a random number generator.\nIt generates an integer betwee... | {
"code_size": 1485,
"language": "C++",
"problem_id": "p03022",
"submission_id": "s006512001"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given a tree with\nN\nvertices numbered\n1, 2, ..., N\n. The\n... | {
"code_size": 1509,
"language": "C++",
"problem_id": "p03021",
"submission_id": "s645704724"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem B:\nPolygonal Line Search\nMultiple polygonal lines are given on the\nxy\n-plane.... | {
"code_size": 2054,
"language": "C++",
"problem_id": "p00717",
"submission_id": "s736682522"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Biased Dice\nProfessor Random, known for his research on randomized algorithms, is now co... | {
"code_size": 2751,
"language": "C++",
"problem_id": "p00762",
"submission_id": "s992398813"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke has\nN\ndogs and\nM\nmonkeys. He wants them to line up in a row.... | {
"code_size": 525,
"language": "C",
"problem_id": "p03681",
"submission_id": "s778555131"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem K\nRunner and Sniper\nYou are escaping from an enemy for some reason. The enemy i... | {
"code_size": 1786,
"language": "C++",
"problem_id": "p01800",
"submission_id": "s689769776"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\npiles of candies on the table. The piles are numbered\n1... | {
"code_size": 690,
"language": "C++",
"problem_id": "p04037",
"submission_id": "s204430250"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nTakahashi has\nN\nballs. Initially, an integer\nA_i\nis written on the... | {
"code_size": 697,
"language": "C++",
"problem_id": "p03497",
"submission_id": "s012805359"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nA maze is composed of a grid of\nH \\times W\nsquares -\nH\nvertical,\... | {
"code_size": 2175,
"language": "C",
"problem_id": "p02579",
"submission_id": "s674417545"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem G:\nLongest Chain\nLet us compare two triples\na = (x\na\n, y\na\n, z\na\n)\nand\... | {
"code_size": 2248,
"language": "C++",
"problem_id": "p00920",
"submission_id": "s725767736"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke is playing with red and blue balls, placing them on a two-dimens... | {
"code_size": 2576,
"language": "C++",
"problem_id": "p03020",
"submission_id": "s615884464"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\nrabbits on a number line.\nThe rabbits are conveniently ... | {
"code_size": 1089,
"language": "C++",
"problem_id": "p03953",
"submission_id": "s050331120"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Print Test Cases\nIn the online judge system, a judge file may include multiple datasets ... | {
"code_size": 183,
"language": "C",
"problem_id": "p02396",
"submission_id": "s789071252"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\n3N\nparticipants in\nAtCoder Group Contest\n.\nThe\nstrengt... | {
"code_size": 574,
"language": "C",
"problem_id": "p03767",
"submission_id": "s465420271"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem A:\nEra Name\nAs many of you know, we have two major calendar systems used in Jap... | {
"code_size": 944,
"language": "C++",
"problem_id": "p01359",
"submission_id": "s073863221"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Bridge Construction Planning\nThere is a city consisting of many small islands, and the c... | {
"code_size": 2807,
"language": "C++",
"problem_id": "p01090",
"submission_id": "s764705594"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nTakahashi wants to be a member of some web service.\nHe tried to regis... | {
"code_size": 401,
"language": "C++",
"problem_id": "p02681",
"submission_id": "s155949569"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem D:\nLife Game\nYou are working at a production plant of biological weapons. You a... | {
"code_size": 2305,
"language": "C++",
"problem_id": "p01237",
"submission_id": "s273537697"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\nboxes arranged in a row.\nInitially, the\ni\n-th box fro... | {
"code_size": 456,
"language": "C",
"problem_id": "p03862",
"submission_id": "s722825693"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe can describe detailed direction by repeating the directional names:... | {
"code_size": 624,
"language": "C",
"problem_id": "p01701",
"submission_id": "s595452586"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\nitems, numbered\n1, 2, \\ldots, N\n.\nFor each\ni\n(\n1 ... | {
"code_size": 994,
"language": "C++",
"problem_id": "p03164",
"submission_id": "s819392119"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem E:\nThe Most Powerful Spell\nLong long ago, there lived a wizard who invented a l... | {
"code_size": 1780,
"language": "C++",
"problem_id": "p00750",
"submission_id": "s208712895"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\ncities numbered\n1\nthrough\nN\n, and\nM\nbidirectional ... | {
"code_size": 1065,
"language": "C",
"problem_id": "p02536",
"submission_id": "s124194585"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "When Can We Meet?\nThe ICPC committee would like to have its meeting as soon as\npossible... | {
"code_size": 647,
"language": "C++",
"problem_id": "p00705",
"submission_id": "s717326108"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nCount the number of strings\nS\nthat satisfy the following constraints... | {
"code_size": 3650,
"language": "C",
"problem_id": "p03120",
"submission_id": "s312521097"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThe door of Snuke's laboratory is locked with a security code.\nThe se... | {
"code_size": 329,
"language": "C++",
"problem_id": "p02993",
"submission_id": "s042004424"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nIn a two-dimensional plane, we have a rectangle\nR\nwhose vertices are... | {
"code_size": 1524,
"language": "C++",
"problem_id": "p02650",
"submission_id": "s697201754"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere is a sequence of length\n2N\n:\nA_1, A_2, ..., A_{2N}\n.\nEach\n... | {
"code_size": 1526,
"language": "C++",
"problem_id": "p03191",
"submission_id": "s358367466"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Priority Queue\nPriority queue is a container of elements which the element with the high... | {
"code_size": 635,
"language": "C++",
"problem_id": "p02437",
"submission_id": "s537067915"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Similarity of Subtrees\nDefine the depth of a node in a rooted tree by applying the follo... | {
"code_size": 1037,
"language": "C++",
"problem_id": "p01884",
"submission_id": "s988853679"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nTakahashi the Jumbo will practice golf.\nHis objective is to get a car... | {
"code_size": 379,
"language": "C++",
"problem_id": "p02693",
"submission_id": "s511072630"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Boring Commercial\nNow it is spring holidays. A lazy student has finally passed all final... | {
"code_size": 738,
"language": "C",
"problem_id": "p00592",
"submission_id": "s396160866"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem B:\nOrganize Your Train part II\nRJ Freight, a Japanese railroad company for frei... | {
"code_size": 1869,
"language": "C",
"problem_id": "p00723",
"submission_id": "s340404636"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Standard Deviation\nYou have final scores of an examination for\nn\nstudents. Calculate s... | {
"code_size": 520,
"language": "C++",
"problem_id": "p02381",
"submission_id": "s522663378"
} |