messages listlengths 3 3 | metadata dict |
|---|---|
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem J:\nCastle Wall\nA new lord assumed the position by the death of the previous lor... | {
"code_size": 8000,
"language": "C++",
"problem_id": "p01243",
"submission_id": "s323936408"
} |
[
{
"content": "You are a helpful coding 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\nK-city\n, there are\nn\nstreets running east-west, and\nm\nstreets... | {
"code_size": 124,
"language": "C",
"problem_id": "p03635",
"submission_id": "s547028041"
} |
[
{
"content": "You are a helpful coding 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 arranged in a row from left to right. The height... | {
"code_size": 572,
"language": "C++",
"problem_id": "p02953",
"submission_id": "s579182794"
} |
[
{
"content": "You are a 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": 1046,
"language": "C++",
"problem_id": "p00593",
"submission_id": "s511895588"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Coin Combination Problem II\nYou have\nN\ncoins each of which has a value\na\ni\n.\nFind ... | {
"code_size": 2479,
"language": "C",
"problem_id": "p02330",
"submission_id": "s287974561"
} |
[
{
"content": "You are a helpful 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:\nLet There Be Light\nSuppose that there are some light sources and many spheri... | {
"code_size": 2911,
"language": "C++",
"problem_id": "p00910",
"submission_id": "s924849491"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nHow many hours do we have until New Year at\nM\no'clock (24-hour notat... | {
"code_size": 107,
"language": "C",
"problem_id": "p03473",
"submission_id": "s168061506"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Party Dress\nYae joins a journey plan, in which parties will be held several times during... | {
"code_size": 179,
"language": "C",
"problem_id": "p00387",
"submission_id": "s313139738"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "3D Printing\nWe are designing an installation art piece consisting of\na number of cubes ... | {
"code_size": 1679,
"language": "C",
"problem_id": "p01097",
"submission_id": "s439701276"
} |
[
{
"content": "You are a helpful coding 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 tree with\nN\nvertices, numbered\n1, 2, \\ldots, N\n.\nFor ... | {
"code_size": 821,
"language": "C",
"problem_id": "p03181",
"submission_id": "s572149476"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Small, Large, or Equal\nWrite a program which prints small/large/equal relation of given ... | {
"code_size": 202,
"language": "C",
"problem_id": "p02391",
"submission_id": "s645722198"
} |
[
{
"content": "You are a helpful coding 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 arithmetic progression with\nL\nterms:\ns_0, s_1, s_2, ...... | {
"code_size": 3157,
"language": "C++",
"problem_id": "p03016",
"submission_id": "s433894092"
} |
[
{
"content": "You are a helpful coding 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. De... | {
"code_size": 334,
"language": "C",
"problem_id": "p03698",
"submission_id": "s009835886"
} |
[
{
"content": "You are a 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/B Problem\nWrite a program which reads two integers\na\nand\nb\n, and calculates the fo... | {
"code_size": 218,
"language": "C++",
"problem_id": "p02399",
"submission_id": "s849199697"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere is a grid with infinitely many rows and columns. In this grid, t... | {
"code_size": 321,
"language": "C",
"problem_id": "p03417",
"submission_id": "s561338100"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Playing with Stones\nKoshiro and Ukiko are playing a game with black and white stones. Th... | {
"code_size": 874,
"language": "C++",
"problem_id": "p00396",
"submission_id": "s945421289"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Let's Move Tiles!\nYou have a framed square board forming a grid of square cells.\nEach o... | {
"code_size": 3972,
"language": "C++",
"problem_id": "p01123",
"submission_id": "s314554791"
} |
[
{
"content": "You are a helpful coding 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 is an interactive task.\nWe have\n2N\nballs arranged in a row, nu... | {
"code_size": 6311,
"language": "C",
"problem_id": "p02857",
"submission_id": "s688898450"
} |
[
{
"content": "You are a helpful 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:\nBalloon Collecting\n\"Balloons should be captured efficiently\", the game des... | {
"code_size": 1422,
"language": "C",
"problem_id": "p00885",
"submission_id": "s343902066"
} |
[
{
"content": "You are a helpful 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:\nVampirish Night\nThere is a vampire family of\nN\nmembers. Vampires are also... | {
"code_size": 515,
"language": "C++",
"problem_id": "p00605",
"submission_id": "s594977453"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Building a Space Station\nYou are a member of the space station engineering team,\nand ar... | {
"code_size": 1874,
"language": "C++",
"problem_id": "p00708",
"submission_id": "s932448183"
} |
[
{
"content": "You are a helpful 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": "Grated Radish\nGrated radish (daikon-oroshi) is one of the essential spices in Japanese c... | {
"code_size": 7220,
"language": "C++",
"problem_id": "p01191",
"submission_id": "s531904912"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Areas on the Cross-Section Diagram\nYour task is to simulate a flood damage.\nFor a given... | {
"code_size": 1409,
"language": "C",
"problem_id": "p02266",
"submission_id": "s152980505"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Prime Factorization\nFactorize a given integer\nn\n.\nInput\nn\nAn integer\nn\nis given i... | {
"code_size": 691,
"language": "C++",
"problem_id": "p02467",
"submission_id": "s202801422"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke stands on a number line. He has\nL\nears, and he will walk along... | {
"code_size": 1333,
"language": "C",
"problem_id": "p03132",
"submission_id": "s059902227"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have\nN\nsticks with negligible thickness.\nThe length of the\ni\n-... | {
"code_size": 685,
"language": "C",
"problem_id": "p03625",
"submission_id": "s205206318"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Greatest Common Divisor\nWrite a program which finds the greatest common divisor of two n... | {
"code_size": 291,
"language": "C++",
"problem_id": "p02256",
"submission_id": "s602757708"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Diameter of a Tree\nGiven a tree\nT\nwith non-negative weight, find the diameter of the t... | {
"code_size": 1430,
"language": "C++",
"problem_id": "p02371",
"submission_id": "s925697678"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Bozosort\nBozosort, as well as Bogosort, is a very inefficient sort algorithm. It is a ra... | {
"code_size": 1052,
"language": "C",
"problem_id": "p00380",
"submission_id": "s724489795"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke loves working out. He is now exercising\nN\ntimes.\nBefore he st... | {
"code_size": 300,
"language": "C++",
"problem_id": "p03796",
"submission_id": "s127961267"
} |
[
{
"content": "You are a helpful coding 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 an integer\nN\n.\nHow many permutations\n(P_0,P_1,\\cdots,P_{... | {
"code_size": 1510,
"language": "C++",
"problem_id": "p02968",
"submission_id": "s367017142"
} |
[
{
"content": "You are a helpful coding 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\ncomputers and\nN\nsockets in a one-dimensional world.\nT... | {
"code_size": 1161,
"language": "C++",
"problem_id": "p03878",
"submission_id": "s614709485"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "F - Polygon Guards\nProblem Statement\nYou are an IT system administrator in the Ministry... | {
"code_size": 3906,
"language": "C++",
"problem_id": "p01785",
"submission_id": "s685684729"
} |
[
{
"content": "You are a helpful coding 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 positive integers\nA\nand\nB\n. Compare the magnitud... | {
"code_size": 471,
"language": "C",
"problem_id": "p03738",
"submission_id": "s737978545"
} |
[
{
"content": "You are a helpful coding 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. The vertices are numbered\n1, 2, ...... | {
"code_size": 2329,
"language": "C",
"problem_id": "p03949",
"submission_id": "s187816814"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem C\nMedical Checkup\nStudents of the university have to go for a medical checkup, ... | {
"code_size": 782,
"language": "C++",
"problem_id": "p00959",
"submission_id": "s083279465"
} |
[
{
"content": "You are a 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 are given $n$ packages of $w_i$ kg from a belt conveyor in order ($i = 0, 1, ... n-1$... | {
"code_size": 809,
"language": "C++",
"problem_id": "p02270",
"submission_id": "s392412631"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Taro's Shopping\nMammy decided to give Taro his first shopping experience.\nMammy tells h... | {
"code_size": 583,
"language": "C",
"problem_id": "p01101",
"submission_id": "s062429133"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nWe have\nN\nvoting papers. The\ni\n-th vote\n(1 \\leq i \\leq N)\nhas ... | {
"code_size": 910,
"language": "C",
"problem_id": "p02773",
"submission_id": "s874411564"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Daruma Otoshi\nYou are playing a variant of a game called \"Daruma Otoshi (Dharma Block S... | {
"code_size": 867,
"language": "C",
"problem_id": "p01096",
"submission_id": "s530942985"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nN\nSnukes\ncalled Snuke\n1\n, Snuke\n2\n, ..., Snuke\nN\nlive in a tow... | {
"code_size": 550,
"language": "C++",
"problem_id": "p02688",
"submission_id": "s800186266"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere is an integer sequence of length\n2^N\n:\nA_0, A_1, ..., A_{2^N-... | {
"code_size": 1183,
"language": "C++",
"problem_id": "p03313",
"submission_id": "s470572383"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nA biscuit making machine produces\nB\nbiscuits at the following moment... | {
"code_size": 152,
"language": "C",
"problem_id": "p03059",
"submission_id": "s626868390"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nFind the number of the possible tuples of sequences\n(A_0,A_1,...,A_N)... | {
"code_size": 957,
"language": "C++",
"problem_id": "p03349",
"submission_id": "s599826491"
} |
[
{
"content": "You are a helpful 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:\nButterfly\nClaire is a man-eater. She's a real man-eater. She's going around ... | {
"code_size": 758,
"language": "C",
"problem_id": "p01438",
"submission_id": "s587443331"
} |
[
{
"content": "You are a helpful coding 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\nsightseeing spots on the\nx\n-axis, numbered\n1, 2, ...,... | {
"code_size": 723,
"language": "C++",
"problem_id": "p03403",
"submission_id": "s194749278"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nTakahashi and Aoki will play a game using a grid with\nH\nrows and\nW\... | {
"code_size": 856,
"language": "C",
"problem_id": "p03203",
"submission_id": "s483961188"
} |
[
{
"content": "You are a helpful coding 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\ncomputers and\nN\nsockets in a one-dimensional world.\nT... | {
"code_size": 972,
"language": "C++",
"problem_id": "p03868",
"submission_id": "s762258389"
} |
[
{
"content": "You are a helpful coding 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 two sequences\nS\nand\nT\nof length\nN\nconsisting of\n0\nand\n1\n... | {
"code_size": 1202,
"language": "C",
"problem_id": "p02815",
"submission_id": "s004056979"
} |
[
{
"content": "You are a helpful 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:\nBlack Force\nA dam construction project was designed around an area called Bl... | {
"code_size": 2480,
"language": "C++",
"problem_id": "p01206",
"submission_id": "s276453355"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Set: Range Search\nFor a set $S$ of integers, perform a sequence of the following operati... | {
"code_size": 2388,
"language": "C",
"problem_id": "p02457",
"submission_id": "s763459263"
} |
[
{
"content": "You are a helpful coding 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 Statement\nYou are given\nN\nintegers. The\ni\n-th integer is\na_i\n.\nFind the n... | {
"code_size": 1254,
"language": "C",
"problem_id": "p03064",
"submission_id": "s356394533"
} |
[
{
"content": "You are a helpful 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:\nTurn Left\nTaro got a driver’s license with a great effort in his campus days... | {
"code_size": 2810,
"language": "C++",
"problem_id": "p01208",
"submission_id": "s229317292"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Bange Hills Tower\nA project is underway to build a new viewing tower in Bange town calle... | {
"code_size": 341,
"language": "C",
"problem_id": "p00364",
"submission_id": "s861459921"
} |
[
{
"content": "You are a helpful coding 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, Aoki and Snuke love cookies. They have\nA\n,\nB\nand\nC\nco... | {
"code_size": 680,
"language": "C++",
"problem_id": "p03723",
"submission_id": "s637980068"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem C:\nAdaptive Time Slicing Quantization\nNathan O. Davis is a student at the depar... | {
"code_size": 1791,
"language": "C++",
"problem_id": "p01262",
"submission_id": "s682430477"
} |
[
{
"content": "You are a helpful 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:\nHeavenly Jewels\nThere is a flat island whose shape is a perfect square. On t... | {
"code_size": 3172,
"language": "C++",
"problem_id": "p00793",
"submission_id": "s219412153"
} |
[
{
"content": "You are a helpful coding 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 introducing a\nrobot arm\nwith the following properties to hi... | {
"code_size": 1285,
"language": "C",
"problem_id": "p03247",
"submission_id": "s866892937"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Sum of Numbers\nWrite a program which reads an integer and prints sum of its digits.\nInp... | {
"code_size": 321,
"language": "C++",
"problem_id": "p02416",
"submission_id": "s988883013"
} |
[
{
"content": "You are a helpful 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:\nTraffic\nYou are a resident of Kyoot (oh, well, it’s not a misspelling!) city... | {
"code_size": 4543,
"language": "C++",
"problem_id": "p01161",
"submission_id": "s960698818"
} |
[
{
"content": "You are a helpful 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: It's our delight!!\nYou are a student of University of Aizu.\nAnd you work par... | {
"code_size": 867,
"language": "C",
"problem_id": "p00647",
"submission_id": "s594172766"
} |
[
{
"content": "You are a helpful coding 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 gain muscle, and decides to work out at AtCoder Gym... | {
"code_size": 493,
"language": "C++",
"problem_id": "p03680",
"submission_id": "s815443730"
} |
[
{
"content": "You are a 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 Update Query (RUQ)\nWrite a program which manipulates a sequence\nA\n= {\na\n0\n, a... | {
"code_size": 1451,
"language": "C",
"problem_id": "p02348",
"submission_id": "s214628834"
} |
[
{
"content": "You are a helpful 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:\nThe Teacher’s Side of Math\nOne of the tasks students routinely carry out in ... | {
"code_size": 2149,
"language": "C++",
"problem_id": "p00863",
"submission_id": "s343133714"
} |
[
{
"content": "You are a helpful coding 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 stones. The\ni\n-th pile has\nA_i\nstones.\nAok... | {
"code_size": 3674,
"language": "C",
"problem_id": "p02626",
"submission_id": "s452548824"
} |
[
{
"content": "You are a helpful 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:\nSpirograph\nSome of you might have seen instruments like the figure below.\nF... | {
"code_size": 912,
"language": "C",
"problem_id": "p01211",
"submission_id": "s173779755"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem C:\nFinding the Largest Carbon Compound Given Its Longest Chain\nAn bydrocarbon i... | {
"code_size": 267,
"language": "C",
"problem_id": "p00597",
"submission_id": "s974646299"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSig has built his own keyboard. Designed for ultimate simplicity, this... | {
"code_size": 1002,
"language": "C",
"problem_id": "p04028",
"submission_id": "s936706776"
} |
[
{
"content": "You are a helpful 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:\nGreatest Common Divisor\nPlease find the greatest common divisor of two natur... | {
"code_size": 252,
"language": "C",
"problem_id": "p00595",
"submission_id": "s791848517"
} |
[
{
"content": "You are a helpful coding 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:\nx=(x_0,x_1,\\cdots,x_{N-1})\n.\nI... | {
"code_size": 6265,
"language": "C",
"problem_id": "p02965",
"submission_id": "s920665989"
} |
[
{
"content": "You are a helpful coding 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\n, of length\nN\n. The\ni\n-th eleme... | {
"code_size": 1239,
"language": "C",
"problem_id": "p03496",
"submission_id": "s254888264"
} |
[
{
"content": "You are a 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 II\nYou are given a set $T$, which is a subset of $U$. The set $U$... | {
"code_size": 796,
"language": "C++",
"problem_id": "p02428",
"submission_id": "s586834546"
} |
[
{
"content": "You are a helpful coding 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 and Raccoon have a heap of\nN\ncards. The\ni\n-th card from the ... | {
"code_size": 470,
"language": "C",
"problem_id": "p03661",
"submission_id": "s490673135"
} |
[
{
"content": "You are a helpful coding 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 rooted binary tree with\nN\nvertices, where the vertices are... | {
"code_size": 2147,
"language": "C++",
"problem_id": "p02648",
"submission_id": "s408575512"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nTak performed the following action\nN\ntimes: rolling two dice.\nThe r... | {
"code_size": 639,
"language": "C++",
"problem_id": "p02547",
"submission_id": "s536587495"
} |
[
{
"content": "You are a helpful coding 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. The vertices are numbered\n1\nto\nN\... | {
"code_size": 2371,
"language": "C++",
"problem_id": "p02749",
"submission_id": "s701799572"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given three words\ns_1\n,\ns_2\nand\ns_3\n, each composed of l... | {
"code_size": 292,
"language": "C++",
"problem_id": "p03737",
"submission_id": "s704073385"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nOn the\nx\ny\n-plane, Snuke is going to travel from the point\n(x_s, y... | {
"code_size": 1783,
"language": "C",
"problem_id": "p03866",
"submission_id": "s700803634"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nSnuke has a rooted tree with\nN\nvertices, numbered\n1\nthrough\nN\n.\... | {
"code_size": 1364,
"language": "C++",
"problem_id": "p03368",
"submission_id": "s781098647"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Short Phrase\nA\nShort Phrase\n(aka. Tanku) is a fixed verse, inspired by Japanese poetry... | {
"code_size": 185,
"language": "C",
"problem_id": "p01086",
"submission_id": "s007364856"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nGiven are a sequence of\nN\npositive integers\nA_1\n,\nA_2\n,\n\\ldots... | {
"code_size": 692,
"language": "C",
"problem_id": "p02662",
"submission_id": "s724525384"
} |
[
{
"content": "You are a helpful coding 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 very long bench.\nThe bench is divided into\nM\nsections, w... | {
"code_size": 6074,
"language": "C",
"problem_id": "p03124",
"submission_id": "s453675928"
} |
[
{
"content": "You are a helpful coding 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\napples and\nP\npieces of apple.\nWe can cut an apple into ... | {
"code_size": 132,
"language": "C",
"problem_id": "p03029",
"submission_id": "s422604961"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nAt an arcade, Takahashi is playing a game called\nRPS Battle\n, which ... | {
"code_size": 782,
"language": "C",
"problem_id": "p02820",
"submission_id": "s341837617"
} |
[
{
"content": "You are a 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": 1626,
"language": "C",
"problem_id": "p01112",
"submission_id": "s594832640"
} |
[
{
"content": "You are a helpful coding 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.\nThe vertices are numbered\n0\nthrou... | {
"code_size": 1383,
"language": "C++",
"problem_id": "p03441",
"submission_id": "s741991772"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nConsider a string of length\nN\nconsisting of\n0\nand\n1\n.\nThe score... | {
"code_size": 1529,
"language": "C",
"problem_id": "p03182",
"submission_id": "s819017788"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nYou are given an integer sequence\na\nof length\nN\n.\nHow many permut... | {
"code_size": 2356,
"language": "C++",
"problem_id": "p03842",
"submission_id": "s051264561"
} |
[
{
"content": "You are a helpful coding 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 blackboard on which all integers from\n-10^{18}\nthrough\n1... | {
"code_size": 1876,
"language": "C++",
"problem_id": "p02979",
"submission_id": "s450505259"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere are\nN\ncards. The two sides of each of these cards are distingu... | {
"code_size": 2570,
"language": "C++",
"problem_id": "p03750",
"submission_id": "s727205404"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Partition\nQuick sort is based on the Divide-and-conquer approach. In QuickSort(A, p, r),... | {
"code_size": 619,
"language": "C",
"problem_id": "p02276",
"submission_id": "s762716359"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Balls and Boxes 4\nBalls\nBoxes\nAny way\nAt most one ball\nAt least one ball\nDistinguis... | {
"code_size": 1909,
"language": "C++",
"problem_id": "p02334",
"submission_id": "s886123145"
} |
[
{
"content": "You are a helpful 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:\nInfnity Maze\nDr. Fukuoka has placed a simple robot in a two-dimensional maze... | {
"code_size": 1058,
"language": "C",
"problem_id": "p01437",
"submission_id": "s295084133"
} |
[
{
"content": "You are a helpful coding 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 function\nf(x)\n, which is initially a constant function\nf... | {
"code_size": 2003,
"language": "C++",
"problem_id": "p03040",
"submission_id": "s390113146"
} |
[
{
"content": "You are a helpful coding 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 some goats on a grid with\nH\nrows and\nW\ncolumns.\nAlice w... | {
"code_size": 3976,
"language": "C",
"problem_id": "p03979",
"submission_id": "s088703506"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate fully functional and secure code which follows best security practices.",
"role": "system"
},
{
"content": "Problem Statement\nThere is a grid of square cells with\nH\nhorizontal rows and\nW\nverti... | {
"code_size": 1380,
"language": "C++",
"problem_id": "p03263",
"submission_id": "s053470909"
} |
[
{
"content": "You are a helpful coding 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 loves\nHaiku\n. Haiku is a short form of Japanese poetry. A Haik... | {
"code_size": 337,
"language": "C++",
"problem_id": "p04043",
"submission_id": "s470785734"
} |
[
{
"content": "You are a helpful 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\nRotating Cutter Bits\nThe machine tool technology never stops its development.... | {
"code_size": 5839,
"language": "C++",
"problem_id": "p00942",
"submission_id": "s411252834"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.