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\nIn this problem, we only consider strings consisting of lowercase Engl... | {
"code_size": 831,
"language": "C++",
"problem_id": "p02744",
"submission_id": "s423947951"
} |
[
{
"content": "You are a helpful 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:\nTraveling by Stagecoach\nOnce upon a time, there was a traveler.\nHe plans to... | {
"code_size": 2570,
"language": "C",
"problem_id": "p00719",
"submission_id": "s590880461"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Expression Mining\nConsider an arithmetic expression built by combining single-digit posi... | {
"code_size": 4216,
"language": "C++",
"problem_id": "p01115",
"submission_id": "s861912884"
} |
[
{
"content": "You are a helpful 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:\nCaptain Q′s Treasure\nYou got an old map, which turned out to be drawn by the... | {
"code_size": 2688,
"language": "C++",
"problem_id": "p00900",
"submission_id": "s966440503"
} |
[
{
"content": "You are a helpful coding 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 integers\nN,\\ A\nand\nB\n.\nDetermine if there exists a... | {
"code_size": 1703,
"language": "C++",
"problem_id": "p03097",
"submission_id": "s690585710"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Endless BFS\nMr. Endo wanted to write the code that performs breadth-first search (BFS), ... | {
"code_size": 1325,
"language": "C++",
"problem_id": "p01950",
"submission_id": "s457029805"
} |
[
{
"content": "You are a helpful 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:\nBuilding Water Ways\nIn ancient times, Romans constructed numerous water ways... | {
"code_size": 3097,
"language": "C++",
"problem_id": "p00611",
"submission_id": "s250376651"
} |
[
{
"content": "You are a helpful coding 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 an\nH \\times W\ngrid whose squares are painted black or white... | {
"code_size": 1379,
"language": "C",
"problem_id": "p03436",
"submission_id": "s669271514"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "E: Red Black Balloons\nStory\nHomura-chan's dream comes true. It means ICPC Asia regional... | {
"code_size": 1865,
"language": "C++",
"problem_id": "p02092",
"submission_id": "s413067661"
} |
[
{
"content": "You are a helpful coding 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\ncubes stacked vertically on a desk.\nYou are given a str... | {
"code_size": 459,
"language": "C++",
"problem_id": "p03107",
"submission_id": "s574657656"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Millennium\nA wise king declared a new calendar. \"Tomorrow shall be the first day of the... | {
"code_size": 663,
"language": "C++",
"problem_id": "p00760",
"submission_id": "s532075242"
} |
[
{
"content": "You are a helpful 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:\nClock Hands\nWe have an analog clock whose three hands (the second hand, the\... | {
"code_size": 1686,
"language": "C++",
"problem_id": "p00917",
"submission_id": "s708739585"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nRng is going to a festival.\nThe name of the festival is given to you ... | {
"code_size": 293,
"language": "C++",
"problem_id": "p03577",
"submission_id": "s916335252"
} |
[
{
"content": "You are a helpful coding 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 now competing in a programming contest, but he received T... | {
"code_size": 181,
"language": "C",
"problem_id": "p03549",
"submission_id": "s457626948"
} |
[
{
"content": "You are a helpful 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:\nRobot's Crash\nProf. Jenifer A. Gibson is carrying out experiments with many ... | {
"code_size": 3250,
"language": "C++",
"problem_id": "p01170",
"submission_id": "s254280237"
} |
[
{
"content": "You are a helpful coding 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 sequence of\nN\nintegers:\nA_1,A_2,...,A_N\n.\nFind th... | {
"code_size": 2003,
"language": "C",
"problem_id": "p03226",
"submission_id": "s043615987"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\nsquares aligned in a row.\nThe\ni\n-th square from the l... | {
"code_size": 756,
"language": "C",
"problem_id": "p03839",
"submission_id": "s581904684"
} |
[
{
"content": "You are a helpful coding 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 an integer sequence of length\nN\n:\nA_0,A_1,\\cdots,A_{N-1}\n... | {
"code_size": 1680,
"language": "C",
"problem_id": "p02905",
"submission_id": "s138749601"
} |
[
{
"content": "You are a 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": "Repairing\nIn the International City of Pipe Construction, it is planned to repair the wa... | {
"code_size": 5968,
"language": "C++",
"problem_id": "p01568",
"submission_id": "s016168440"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given an integer\nN\n.\nFor two positive integers\nA\nand\nB\n... | {
"code_size": 479,
"language": "C",
"problem_id": "p03775",
"submission_id": "s337289407"
} |
[
{
"content": "You are a 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 Color Is The Universe?\nOn a clear night, a boy, Campanella looked up at the sky, th... | {
"code_size": 554,
"language": "C++",
"problem_id": "p00594",
"submission_id": "s643995057"
} |
[
{
"content": "You are a helpful coding 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\nhats. The\ni\n-th hat has an integer\na_i\nwritten on it... | {
"code_size": 934,
"language": "C",
"problem_id": "p02975",
"submission_id": "s401462747"
} |
[
{
"content": "You are a helpful coding 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.\nAmong its subsequences, co... | {
"code_size": 445,
"language": "C",
"problem_id": "p03095",
"submission_id": "s843651642"
} |
[
{
"content": "You are a helpful coding 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 country decides to build a palace.\nIn this country, the average tem... | {
"code_size": 423,
"language": "C",
"problem_id": "p03220",
"submission_id": "s934639540"
} |
[
{
"content": "You are a helpful coding 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 postal code in Atcoder Kingdom is\nA+B+1\ncharacters long, its\n(A... | {
"code_size": 406,
"language": "C",
"problem_id": "p03474",
"submission_id": "s919681072"
} |
[
{
"content": "You are a helpful coding 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 decided to give an allowance to your child depending on the o... | {
"code_size": 302,
"language": "C++",
"problem_id": "p03250",
"submission_id": "s397975709"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Mode Value\nYour task is to write a program which reads a sequence of integers and prints... | {
"code_size": 316,
"language": "C",
"problem_id": "p00028",
"submission_id": "s517629010"
} |
[
{
"content": "You are a helpful coding 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 an\nN \\times N\nsquare grid.\nWe will paint each square in th... | {
"code_size": 139,
"language": "C",
"problem_id": "p03597",
"submission_id": "s729646435"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nAtCoder Inc. holds a contest every Saturday.\nThere are two types of c... | {
"code_size": 180,
"language": "C",
"problem_id": "p02687",
"submission_id": "s836258355"
} |
[
{
"content": "You are a helpful coding 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\nas the input. Output the value ... | {
"code_size": 212,
"language": "C++",
"problem_id": "p03697",
"submission_id": "s651234773"
} |
[
{
"content": "You are a helpful 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:\nJapanese Style Pub\nYou’ve just entered a Japanese-style pub, or an\nizakaya\... | {
"code_size": 1909,
"language": "C++",
"problem_id": "p01247",
"submission_id": "s744408057"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given a connected graph with\nN\nvertices and\nM\nedges. The v... | {
"code_size": 1681,
"language": "C++",
"problem_id": "p03100",
"submission_id": "s285318559"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have a tree with\nN\nvertices, whose\ni\n-th edge connects Vertex\n... | {
"code_size": 1922,
"language": "C",
"problem_id": "p02698",
"submission_id": "s974383541"
} |
[
{
"content": "You are a helpful coding 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\nN\n-car train.\nYou are given an integer\ni\n. Find the v... | {
"code_size": 114,
"language": "C",
"problem_id": "p03272",
"submission_id": "s114359873"
} |
[
{
"content": "You are a 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": "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": "(Please read problem A first. The maximum score you can get by solving this problem B is ... | {
"code_size": 1082,
"language": "C++",
"problem_id": "p02619",
"submission_id": "s187294573"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Semiexpress\nThe JOI Railways is the only railway company in the Kingdom of JOI. There ar... | {
"code_size": 1362,
"language": "C++",
"problem_id": "p00560",
"submission_id": "s533130109"
} |
[
{
"content": "You are a helpful 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:\nFlipping Parentheses\nA string consisting only of parentheses '(' and ')' is ... | {
"code_size": 2860,
"language": "C++",
"problem_id": "p00930",
"submission_id": "s709800898"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Dungeon Creation\nThe king demon is waiting in his dungeon to defeat a brave man.\nHis du... | {
"code_size": 3298,
"language": "C++",
"problem_id": "p01507",
"submission_id": "s469922231"
} |
[
{
"content": "You are a helpful 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\nMidpoint\nOne day, you found $L + M + N$ points on a 2D plane, which you named... | {
"code_size": 8018,
"language": "C++",
"problem_id": "p01798",
"submission_id": "s425927608"
} |
[
{
"content": "You are a 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 Simple Offline Text Editor\nA text editor is a useful software tool that can help peopl... | {
"code_size": 2047,
"language": "C++",
"problem_id": "p00683",
"submission_id": "s620692728"
} |
[
{
"content": "You are a helpful coding 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 buying a bicycle.\nThe bicycle of his choice does not come wi... | {
"code_size": 276,
"language": "C",
"problem_id": "p03671",
"submission_id": "s946117483"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Ring\nWrite a program which finds a pattern $p$ in a ring shaped text $s$.\nInput\nIn the... | {
"code_size": 402,
"language": "C",
"problem_id": "p02418",
"submission_id": "s464160728"
} |
[
{
"content": "You are a helpful coding 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 planted $N$ flower seeds, all of which come into different flo... | {
"code_size": 779,
"language": "C",
"problem_id": "p01704",
"submission_id": "s607076685"
} |
[
{
"content": "You are a helpful coding 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 grid with\n2\nrows and\n3\ncolumns of squares.\nThe co... | {
"code_size": 247,
"language": "C",
"problem_id": "p03555",
"submission_id": "s733795215"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nIroha is very particular about numbers. There are\nK\ndigits that she ... | {
"code_size": 521,
"language": "C",
"problem_id": "p04039",
"submission_id": "s484580045"
} |
[
{
"content": "You are a helpful coding 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 made\nN\nproblems for competitive programming.\nThe problems... | {
"code_size": 409,
"language": "C++",
"problem_id": "p02989",
"submission_id": "s516838145"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Exploring Caves\nThere are many caves deep in mountains found in the countryside. In lege... | {
"code_size": 622,
"language": "C++",
"problem_id": "p00700",
"submission_id": "s662716228"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Revenge of the Endless BFS\nMr. Endo wanted to write the code that performs breadth-first... | {
"code_size": 2057,
"language": "C++",
"problem_id": "p01964",
"submission_id": "s515892778"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given an integer\nN\nthat has exactly four digits in base ten.... | {
"code_size": 215,
"language": "C",
"problem_id": "p03192",
"submission_id": "s336022784"
} |
[
{
"content": "You are a helpful coding 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": "Strongly Connected Components\nA direced graph is strongly connected if every two nodes a... | {
"code_size": 2058,
"language": "C++",
"problem_id": "p02368",
"submission_id": "s745681210"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Shortest Common Non-Subsequence\nA subsequence of a sequence $P$ is a sequence that can b... | {
"code_size": 1933,
"language": "C++",
"problem_id": "p00971",
"submission_id": "s572856875"
} |
[
{
"content": "You are a helpful coding 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\nbalancing network\nis an abstract device built up of\nN\nwires, tho... | {
"code_size": 2289,
"language": "C++",
"problem_id": "p02827",
"submission_id": "s676440301"
} |
[
{
"content": "You are a helpful coding 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 an integer\nK\nand integers\na_1,\\dots, a_K\n. Determine wh... | {
"code_size": 2566,
"language": "C++",
"problem_id": "p02637",
"submission_id": "s686546205"
} |
[
{
"content": "You are a 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 Sequence\nAlice is spending his time on an independent study to apply to the Na... | {
"code_size": 530,
"language": "C",
"problem_id": "p00393",
"submission_id": "s001801491"
} |
[
{
"content": "You are a helpful coding 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\nA\ncards, each of which has an integer\n1\nwritten on it. Sim... | {
"code_size": 452,
"language": "C++",
"problem_id": "p02682",
"submission_id": "s102151371"
} |
[
{
"content": "You are a helpful coding 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 grill\nN\npieces of meat on a grilling net, which c... | {
"code_size": 2464,
"language": "C",
"problem_id": "p02764",
"submission_id": "s995824423"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have a sequence\nA\nof length\nN\n.\nOn this sequence, we can perfo... | {
"code_size": 1785,
"language": "C++",
"problem_id": "p03522",
"submission_id": "s682455223"
} |
[
{
"content": "You are a helpful coding 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 doing a research on sets of points in a plane.\nTakahashi... | {
"code_size": 1182,
"language": "C",
"problem_id": "p03334",
"submission_id": "s699600017"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\n2N\npeople numbered\n1\nthrough\n2N\n.\nThe height of Perso... | {
"code_size": 4547,
"language": "C++",
"problem_id": "p02539",
"submission_id": "s106529900"
} |
[
{
"content": "You are a helpful 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:\nRevenge of Champernowne Constant\nChampernowne constant is an irrational numb... | {
"code_size": 2568,
"language": "C++",
"problem_id": "p01440",
"submission_id": "s536890156"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nHaving learned the multiplication table, Takahashi can multiply two in... | {
"code_size": 305,
"language": "C",
"problem_id": "p02880",
"submission_id": "s431667564"
} |
[
{
"content": "You are a helpful 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:\nNo Story\nSince I got tired to write long problem statements, I decided to ma... | {
"code_size": 805,
"language": "C",
"problem_id": "p00646",
"submission_id": "s437407866"
} |
[
{
"content": "You are a helpful coding 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\nblue cards and\nM\nred cards.\nA string is written o... | {
"code_size": 660,
"language": "C++",
"problem_id": "p03408",
"submission_id": "s045699022"
} |
[
{
"content": "You are a helpful coding 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 grid of squares with\nN\nrows and\nM\ncolumns. Let\n(i, j)\n... | {
"code_size": 1749,
"language": "C++",
"problem_id": "p03039",
"submission_id": "s727398809"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Equivalent Deformation\nTwo triangles\nT\n1\nand\nT\n2\nwith the same area are on a plane... | {
"code_size": 3355,
"language": "C++",
"problem_id": "p01108",
"submission_id": "s229255823"
} |
[
{
"content": "You are a helpful coding 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 maze which can be described as a\nW \\times H\ngrid.\nThe u... | {
"code_size": 1946,
"language": "C",
"problem_id": "p01650",
"submission_id": "s464264082"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have a sequence of\nN\nintegers:\nA_1, A_2, \\cdots, A_N\n.\nYou ca... | {
"code_size": 1233,
"language": "C",
"problem_id": "p02955",
"submission_id": "s880398456"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Reading Brackets in English\nShun and his professor are studying Lisp and S-expressions. ... | {
"code_size": 4439,
"language": "C++",
"problem_id": "p01190",
"submission_id": "s048102728"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nOne day, Snuke was given a permutation of length\nN\n,\na_1, a_2, ...,... | {
"code_size": 1711,
"language": "C",
"problem_id": "p03987",
"submission_id": "s256303519"
} |
[
{
"content": "You are a helpful 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:\nHidden Tree\nConsider a binary tree whose leaves are assigned integer weights... | {
"code_size": 1461,
"language": "C++",
"problem_id": "p00922",
"submission_id": "s514459083"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Reservation System\nThe supercomputer system L in the PCK Research Institute performs a v... | {
"code_size": 417,
"language": "C++",
"problem_id": "p00355",
"submission_id": "s566563460"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nRingo is giving a present to Snuke.\nRingo has found out that Snuke lo... | {
"code_size": 366,
"language": "C++",
"problem_id": "p03591",
"submission_id": "s168022530"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Height of a Tree\nGiven a tree\nT\nwith non-negative weight, find the height of each node... | {
"code_size": 1656,
"language": "C++",
"problem_id": "p02372",
"submission_id": "s164163315"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThis contest is\nCODE FESTIVAL\n.\nHowever, Mr. Takahashi always write... | {
"code_size": 217,
"language": "C",
"problem_id": "p03992",
"submission_id": "s713094021"
} |
[
{
"content": "You are a helpful 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:\nDance Dance Revolution\nDance Dance Revolution\nis one of the most popular ar... | {
"code_size": 836,
"language": "C++",
"problem_id": "p01202",
"submission_id": "s019112237"
} |
[
{
"content": "You are a helpful coding 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 an integer sequence\nA\nof length\nN\n, where\nA_1 = X, A_{i+1... | {
"code_size": 1718,
"language": "C++",
"problem_id": "p02840",
"submission_id": "s432531185"
} |
[
{
"content": "You are a helpful coding 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 string\nS\nof length\nN\nconsisting of digits from\n0\... | {
"code_size": 1288,
"language": "C",
"problem_id": "p02757",
"submission_id": "s907149979"
} |
[
{
"content": "You are a 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 Flag\nA state with $n$ flags of ON or OFF can be represented by a sequence of bits wh... | {
"code_size": 1212,
"language": "C++",
"problem_id": "p02425",
"submission_id": "s320181149"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "White Bird\nAngry Birds is a mobile game of a big craze all over the world.\nYou were c... | {
"code_size": 1803,
"language": "C",
"problem_id": "p01425",
"submission_id": "s301634045"
} |
[
{
"content": "You are a helpful coding 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 having another barbeque party.\nThis time, he will make one s... | {
"code_size": 1195,
"language": "C",
"problem_id": "p04051",
"submission_id": "s833376209"
} |
[
{
"content": "You are a helpful coding 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\nconsisting of lowercase English lett... | {
"code_size": 1202,
"language": "C",
"problem_id": "p02937",
"submission_id": "s876940607"
} |
[
{
"content": "You are a helpful 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:\nMolecular Formula\nYour mission in this problem is to write a computer progra... | {
"code_size": 1465,
"language": "C",
"problem_id": "p00823",
"submission_id": "s804057070"
} |
[
{
"content": "You are a helpful coding 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 integer\nN\n.\nWe will choose an integer\nK\nbetwe... | {
"code_size": 644,
"language": "C",
"problem_id": "p02722",
"submission_id": "s654505936"
} |
[
{
"content": "You are a helpful coding 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\ngems. The value of the\ni\n-th gem is\nV_i\n.\nYou will ... | {
"code_size": 343,
"language": "C",
"problem_id": "p03060",
"submission_id": "s697192017"
} |
[
{
"content": "You are a helpful 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\nInfallibly Crack Perplexing Cryptarithm\nYou are asked to crack an encrypted e... | {
"code_size": 2238,
"language": "C",
"problem_id": "p00950",
"submission_id": "s637948149"
} |
[
{
"content": "You are a helpful 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:\nRepeated Substitution with Sed\nDo you know \"sed,\" a tool provided with Uni... | {
"code_size": 1181,
"language": "C",
"problem_id": "p00875",
"submission_id": "s752836403"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Sleeping Time\nMiki is a high school student.\nShe has a part time job, so she cannot ta... | {
"code_size": 597,
"language": "C",
"problem_id": "p01418",
"submission_id": "s907726293"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Scores of Final Examination\nI am a junior high school teacher.\nThe final examination ha... | {
"code_size": 521,
"language": "C",
"problem_id": "p01117",
"submission_id": "s735042509"
} |
[
{
"content": "You are a helpful coding 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 define the\nbeauty\nof a sequence\n(a_1,... ,a_n)\nas the numbe... | {
"code_size": 621,
"language": "C++",
"problem_id": "p03304",
"submission_id": "s783755909"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nHaving learned the multiplication table, Takahashi can multiply two in... | {
"code_size": 248,
"language": "C++",
"problem_id": "p02879",
"submission_id": "s498516120"
} |
[
{
"content": "You are a helpful 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:\nRevenge of the Round Table\nTwo contries A and B have decided to make a meeti... | {
"code_size": 2140,
"language": "C++",
"problem_id": "p01282",
"submission_id": "s503292736"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSmeke has decided to participate in AtCoder Beginner Contest (ABC) if ... | {
"code_size": 145,
"language": "C",
"problem_id": "p03813",
"submission_id": "s325419952"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Finding a Word\nWrite a program which reads a word\nW\nand a text\nT\n, and prints the nu... | {
"code_size": 468,
"language": "C++",
"problem_id": "p02419",
"submission_id": "s077155232"
} |
[
{
"content": "You are a helpful coding 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": 747,
"language": "C",
"problem_id": "p03252",
"submission_id": "s902541574"
} |
[
{
"content": "You are a 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": 394,
"language": "C",
"problem_id": "p00101",
"submission_id": "s862502376"
} |
[
{
"content": "You are a helpful 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:\nDouble Sorting\nHere we describe a typical problem. There are\nn\nballs and\n... | {
"code_size": 3841,
"language": "C++",
"problem_id": "p01276",
"submission_id": "s159814063"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.