data_source large_stringclasses 10
values | prompt listlengths 1 1 | ability large_stringclasses 5
values | reward_model dict | extra_info dict |
|---|---|---|---|---|
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n4\\n0001\\n1000\\n0011\\n0111\\n3\\n010\\n101\\n0\\n2\\n00000\\n00001\\n4\\n01\\n001\\n0001\\n00001\\n\"\n ],\n \"outputs\": [\n \"1\\n3 \\n-1\\n0\\n\\n2\\n1 2 \\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 0,
"url": "https://codeforces.com/problemset/problem/1259/D"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n2 2 3\\n4 3 7\\n10 1 9\\n\"\n ],\n \"outputs\": [\n \"1\\n6\\n-1\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 1,
"url": "https://codeforces.com/problemset/problem/1036/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"5\\n3\\n1 1 1\\n2 2 2\\n3 3 3\\n4\\n1 2 1 2\\n2 1 2 1\\n3 4 3 4\\n7\\n1 3 3 1 1 1 1\\n2 4 4 3 2 2 4\\n4 2 2 2 4 4 2\\n3\\n1 2 1\\n2 3 3\\n3 1 2\\n10\\n1 1 1 2 2 2 3 3 3 1\\n2 2 2 3 3 3 1 1 1 2\\n3 3 3 1 1 1 2 2 2 3\\n\"\n ],\n \"outputs\": [\n \"1 2 3\\n1 2 1 2\\n1 3 ... | {
"difficulty": "interview",
"problem_id": 2,
"url": "https://codeforces.com/problemset/problem/1408/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"2\\n4 1\\n5 5 5 5\\n3 2\\n0 0 0\\n\"\n ],\n \"outputs\": [\n \"10\\n0\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 3,
"url": "https://codeforces.com/problemset/problem/1430/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n6\\n4 5 1 3 2 6\\n5\\n5 3 1 2 4\\n4\\n1 4 3 2\\n\"\n ],\n \"outputs\": [\n \"101011\\n11111\\n1001\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 4,
"url": "https://codeforces.com/problemset/problem/1265/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"6\\n5\\n1 4 3 2 1\\n6\\n2 4 1 3 2 1\\n4\\n2 1 1 3\\n4\\n1 3 3 1\\n12\\n2 1 3 4 5 6 7 8 9 1 10 2\\n3\\n1 1 1\\n\"\n ],\n \"outputs\": [\n \"2\\n1 4\\n4 1\\n1\\n4 2\\n0\\n0\\n1\\n2 10\\n0\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 5,
"url": "https://codeforces.com/problemset/problem/1330/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"2\\n4 6\\n1 2\\n1 3\\n2 3\\n2 4\\n3 4\\n3 4\\n7 6\\n1 2\\n1 3\\n2 4\\n2 5\\n3 6\\n3 7\\n\"\n ],\n \"outputs\": [\n \"2\\n3 4 \\n4\\n4 5 6 7 \\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 6,
"url": "https://codeforces.com/problemset/problem/1368/E"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n3\\n1 5\\n2 10\\n2 8\\n7\\n0 1\\n3 1\\n1 1\\n6 1\\n1 1\\n4 1\\n4 1\\n6\\n2 6\\n2 3\\n2 8\\n2 7\\n4 4\\n5 5\\n\"\n ],\n \"outputs\": [\n \"8\\n0\\n7\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 7,
"url": "https://codeforces.com/problemset/problem/1251/E2"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"8\\n5 2\\nWLWLL\\n6 5\\nLLLWWL\\n7 1\\nLWLWLWL\\n15 5\\nWWWLLLWWWLLLWWW\\n40 7\\nLLWLWLWWWLWLLWLWWWLWLLWLLWLLLLWLLWWWLWWL\\n1 0\\nL\\n1 1\\nL\\n6 1\\nWLLWLW\\n\"\n ],\n \"outputs\": [\n \"7\\n11\\n6\\n26\\n46\\n0\\n1\\n6\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 8,
"url": "https://codeforces.com/problemset/problem/1427/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"5\\n01111001\\n0000\\n111111\\n101010101\\n011011110111\\n\"\n ],\n \"outputs\": [\n \"4\\n0\\n6\\n3\\n6\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 9,
"url": "https://codeforces.com/problemset/problem/1398/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"2\\n3\\n3 2 1\\n4\\n1 3 4 2\\n\"\n ],\n \"outputs\": [\n \"2\\n3 1 \\n3\\n1 4 2 \\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 10,
"url": "https://codeforces.com/problemset/problem/1364/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\nDSAWWAW\\nD\\nWA\\n\"\n ],\n \"outputs\": [\n \"8\\n2\\n4\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 11,
"url": "https://codeforces.com/problemset/problem/1202/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"5\\n3\\n1 -1 0\\n1 1 -2\\n3\\n0 1 1\\n0 2 2\\n2\\n1 0\\n1 41\\n2\\n-1 0\\n-1 -41\\n5\\n0 1 -1 1 -1\\n1 1 -1 1 -1\\n\"\n ],\n \"outputs\": [\n \"YES\\nNO\\nYES\\nYES\\nNO\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 12,
"url": "https://codeforces.com/problemset/problem/1333/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n5 1 1\\n8 10 10\\n1000000 1 1000000\\n\"\n ],\n \"outputs\": [\n \"5\\n8\\n499999500000\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 13,
"url": "https://codeforces.com/problemset/problem/1303/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n2 3\\n3 1\\n3 2\\n1 3\\n3 3\\n1 3\\n\"\n ],\n \"outputs\": [\n \"Yes\\nYes\\nNo\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 14,
"url": "https://codeforces.com/problemset/problem/1351/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"6\\n8 8 0 0\\n1 10 0 3\\n17 31 10 4\\n2 1 0 0\\n5 10 3 9\\n10 10 4 8\\n\"\n ],\n \"outputs\": [\n \"56\\n6\\n442\\n1\\n45\\n80\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 15,
"url": "https://codeforces.com/problemset/problem/1315/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"2\\n4\\n1.000 31.000\\n12 3\\n20 6\\n30 1\\n5 1\\n3\\n1.000 30.000\\n1 10\\n10 10\\n20 8\\n\"\n ],\n \"outputs\": [\n \"7\\n20\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 16,
"url": "https://codeforces.com/problemset/problem/1056/F"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"2\\n5\\n2 2 2 2 2\\n6\\n1 3 3 1 2 3\\n\"\n ],\n \"outputs\": [\n \"5\\n2\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 17,
"url": "https://codeforces.com/problemset/problem/1400/D"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n4\\n200\\n\"], \"outputs\": [\"1.000000000\\n2.414213562\\n127.321336469\\n\"]}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 18,
"url": "https://codeforces.com/problemset/problem/1354/C1"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n5 2 2\\n1 2 1 2 1\\n9 3 3\\n3 3 3 2 2 2 1 1 1\\n4 10 4\\n10 8 6 4\\n16 9 8\\n3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3\\n\"\n ],\n \"outputs\": [\n \"2\\n1\\n4\\n5\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 19,
"url": "https://codeforces.com/problemset/problem/1225/B2"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n3 0\\n5 1 2\\n7 3 5\\n10 -1 0\\n2 12\\n5 7 10\\n10 16 20\\n3 -100\\n100 0 0\\n100 -50 50\\n200 100 100\\n1 100\\n99 -100 0\\n\"\n ],\n \"outputs\": [\n \"YES\\nNO\\nYES\\nNO\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 20,
"url": "https://codeforces.com/problemset/problem/1304/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"6\\n4\\n1 0 2 3\\n6\\n10 7 14 8 3 12\\n2\\n0 2\\n3\\n1 2 3\\n6\\n1 4 6 10 11 12\\n2\\n0 1023\\n\"\n ],\n \"outputs\": [\n \"1\\n4\\n2\\n-1\\n-1\\n1023\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 21,
"url": "https://codeforces.com/problemset/problem/1362/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"8\\n1 4\\n487 1\\n487 2\\n487 3\\n487 4\\n487 5\\n487 6\\n487 7\\n\"\n ],\n \"outputs\": [\n \"42\\n487\\n519\\n528\\n544\\n564\\n588\\n628\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 22,
"url": "https://codeforces.com/problemset/problem/1355/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n3\\n1 5\\n2 10\\n2 8\\n7\\n0 1\\n3 1\\n1 1\\n6 1\\n1 1\\n4 1\\n4 1\\n6\\n2 6\\n2 3\\n2 8\\n2 7\\n4 4\\n5 5\\n\"\n ],\n \"outputs\": [\n \"8\\n0\\n7\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 23,
"url": "https://codeforces.com/problemset/problem/1251/E1"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"7\\n69\\n0\\n1\\n4\\n5\\n999\\n1000\\n\"\n ],\n \"outputs\": [\n \"Y 67.985071301 1.014928699\\nY 0.000000000 0.000000000\\nN\\nY 2.000000000 2.000000000\\nY 3.618033989 1.381966011\\nY 997.998996990 1.001003010\\nY 998.998997995 1.001002005\\n\"\n ]\n}",
"style": ... | {
"difficulty": "interview",
"problem_id": 24,
"url": "https://codeforces.com/problemset/problem/1076/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n6\\n3 6 5\\n5 2 4\\n5 4 6\\n6 3 1\\n6\\n2 5 6\\n2 5 1\\n4 1 2\\n1 3 5\\n3\\n1 2 3\\n\"\n ],\n \"outputs\": [\n \"1 6 4 2 5 3 \\n4 2 3 1 \\n1 4 2 6 5 3 \\n3 4 2 1 \\n1 3 2 \\n1 \\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 25,
"url": "https://codeforces.com/problemset/problem/1282/E"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n1 3\\n100000 100000\\n2 2\\n\"\n ],\n \"outputs\": [\n \"YES\\nNO\\nYES\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 26,
"url": "https://codeforces.com/problemset/problem/1345/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n6\\n40 6 40 3 20 1\\n1\\n1024\\n4\\n2 4 8 16\\n3\\n3 1 7\\n\"\n ],\n \"outputs\": [\n \"4\\n10\\n4\\n0\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 27,
"url": "https://codeforces.com/problemset/problem/1259/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"6\\n7\\nabacaba\\n7\\n???????\\n11\\naba?abacaba\\n11\\nabacaba?aba\\n15\\nasdf???f???qwer\\n11\\nabacabacaba\\n\"\n ],\n \"outputs\": [\n \"Yes\\nabacaba\\nYes\\nabacaba\\nYes\\nabazabacaba\\nYes\\nabacabazaba\\nNo\\nNo\\n\"\n ]\n}\n",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 28,
"url": "https://codeforces.com/problemset/problem/1379/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n5\\n1 2 3 4 5\\n5\\n4 4 4 4 2\\n6\\n1 3 1 5 3 1\\n\"\n ],\n \"outputs\": [\n \"-1 -1 3 2 1 \\n-1 4 4 4 2 \\n-1 -1 1 1 1 1 \\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 29,
"url": "https://codeforces.com/problemset/problem/1417/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n2\\n10\\n4\\n0110\\n8\\n11101000\\n\"\n ],\n \"outputs\": [\n \"0\\n1\\n2\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 30,
"url": "https://codeforces.com/problemset/problem/1437/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"5\\nNNN\\nNS\\nWWEN\\nWWEE\\nNWNWS\\n\"\n ],\n \"outputs\": [\n \"15\\n6\\n16\\n12\\n25\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 31,
"url": "https://codeforces.com/problemset/problem/1351/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"2\\n5\\n6\\n\"\n ],\n \"outputs\": [\n \"2\\n4\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 32,
"url": "https://codeforces.com/problemset/problem/1425/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\"inputs\": [\"1\\n4\\n\"], \"outputs\": [\"2\\n4 3\\n4 2\\n3 1\\n\"]}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 33,
"url": "https://codeforces.com/problemset/problem/1430/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3\\n4\\n\"], \"outputs\": [\"7\\n11\\n\"]}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 34,
"url": "https://codeforces.com/problemset/problem/1295/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"2\\n3\\n1 1 1\\n5\\n2 3 1 2 2\\n\"\n ],\n \"outputs\": [\n \"3\\n2\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 35,
"url": "https://codeforces.com/problemset/problem/1355/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"5\\n2 7 3 4 9\\n3\\n1 25 11\\n\"\n ],\n \"outputs\": [\n \"1\\n5\\n3\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 36,
"url": "https://codeforces.com/problemset/problem/474/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"5\\n3 3\\n5 15\\n4 13\\n6 8\\n4 2\\n\"\n ],\n \"outputs\": [\n \"2 1 3 \\n3 1 2 5 4 \\n-1\\n1 2 6 3 4 5 \\n1 2 4 3 \\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 37,
"url": "https://codeforces.com/problemset/problem/1279/E"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"2\\n2 1 1\\n2\\n1\\n5 2 3\\n2 3\\n1 4 5\\n\"\n ],\n \"outputs\": [\n \"YES\\nNO\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 38,
"url": "https://codeforces.com/problemset/problem/1270/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"5\\n2 2 1\\nBB\\n1 1 1\\nAB\\n3 2 8\\nAABBBBAABB\\n5 3 4\\nBBBBB\\n2 1 1\\nABABAB\\n\"\n ],\n \"outputs\": [\n \"2\\n1\\n3\\n1\\n6\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 39,
"url": "https://codeforces.com/problemset/problem/1315/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n7\\n3 1 6 6 3 1 1\\n8\\n1 1 4 4 4 7 8 8\\n7\\n4 2 5 2 6 2 7\\n\"\n ],\n \"outputs\": [\n \"2\\n0\\n1\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 40,
"url": "https://codeforces.com/problemset/problem/1223/D"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n8 2\\n()(())()\\n10 3\\n))()()()((\\n2 1\\n()\\n2 1\\n)(\\n\"\n ],\n \"outputs\": [\n \"1\\n5 7\\n5\\n1 3\\n3 5\\n5 7\\n6 9\\n7 10\\n0\\n1\\n1 2\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 41,
"url": "https://codeforces.com/problemset/problem/1227/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n0110\\n0101\\n00001000\\n0001000\\n\"\n ],\n \"outputs\": [\n \"4\\n3\\n4\\n3\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 42,
"url": "https://codeforces.com/problemset/problem/1217/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n4\\n3 7 4 5\\n2 1 2 4\\n4\\n1 2 3 4\\n3 3 3 3\\n2\\n1 2\\n10 10\\n2\\n10 10\\n1 2\\n\"\n ],\n \"outputs\": [\n \"5\\n3\\n2\\n3\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 43,
"url": "https://codeforces.com/problemset/problem/1443/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n3\\n4\\n\"], \"outputs\": [\"8 6 \\n12 10 8 \\n16 14 12 10 \\n\"]}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 44,
"url": "https://codeforces.com/problemset/problem/1443/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n1\\n8\\n6\\n1000000000000000000\\n\"\n ],\n \"outputs\": [\n \"1\\n2\\n1\\n30\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 45,
"url": "https://codeforces.com/problemset/problem/1419/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\nRRRR\\nRSP\\nS\\n\"\n ],\n \"outputs\": [\n \"PPPP\\nPPP\\nR\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 46,
"url": "https://codeforces.com/problemset/problem/1380/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n3 0\\n1 3 2\\n2 0\\n1 2\\n7 0\\n1 2 5 4 3 6 7\\n\"\n ],\n \"outputs\": [\n \"3\\n2\\n9\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 47,
"url": "https://codeforces.com/problemset/problem/1420/C1"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"5\\n2 1 5\\n42 13 24\\n12 11 12\\n1000000000 1000000000 1000000000\\n2 1000000000 1000000000\\n\"\n ],\n \"outputs\": [\n \"14\\n33\\n25\\n2000000003\\n1000000001999999999\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 48,
"url": "https://codeforces.com/problemset/problem/1418/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n1 1000\\n1024 1024\\n65536 65536\\n999999 1000001\\n\"\n ],\n \"outputs\": [\n \"1000\\n1\\n0\\n2\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 49,
"url": "https://codeforces.com/problemset/problem/1036/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n6\\n1 1 1 2 2 1 2 1 2 1 1 2\\n2\\n1 2 1 2\\n3\\n1 1 1 1 1 1\\n2\\n2 1 1 1\\n\"\n ],\n \"outputs\": [\n \"6\\n0\\n6\\n2\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 50,
"url": "https://codeforces.com/problemset/problem/1278/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"5\\n3 0 0 0\\n3 3 0 0\\n6 4 1 0\\n6 3 3 0\\n3 3 3 2\\n\"\n ],\n \"outputs\": [\n \"yes\\nyes\\nyes\\nno\\nno\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 51,
"url": "https://codeforces.com/problemset/problem/451/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"2\\n1\\n3\\n\"\n ],\n \"outputs\": [\n \"6\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 52,
"url": "https://codeforces.com/problemset/problem/717/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n3 <<\\n7 >><>><\\n5 >>><\\n\"\n ],\n \"outputs\": [\n \"1 2 3\\n1 2 3\\n5 4 3 7 2 1 6\\n4 3 1 7 5 2 6\\n4 3 2 1 5\\n5 4 2 1 3\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 53,
"url": "https://codeforces.com/problemset/problem/1304/D"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"6\\n4\\n1024 512 64 512\\n1\\n2048\\n3\\n64 512 2\\n2\\n4096 4\\n7\\n2048 2 2048 2048 2048 2048 2048\\n2\\n2048 4096\\n\"\n ],\n \"outputs\": [\n \"YES\\nYES\\nNO\\nNO\\nYES\\nYES\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 54,
"url": "https://codeforces.com/problemset/problem/1221/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n1\\n2\\n3\\n4\\n\"\n ],\n \"outputs\": [\n \"1\\n1\\n2\\n2\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 55,
"url": "https://codeforces.com/problemset/problem/1371/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 2\\n3 8\\n1 0\\n4 16\\n\"], \"outputs\": [\"0\\n10\\n01\\n2\\n111\\n111\\n101\\n0\\n0\\n0\\n1111\\n1111\\n1111\\n1111\\n\"]}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 56,
"url": "https://codeforces.com/problemset/problem/1371/D"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n3\\n1 2 3\\n4\\n3 1 2 4\\n3\\n2 3 1\\n6\\n2 4 6 1 3 5\\n\"\n ],\n \"outputs\": [\n \"YES\\nYES\\nNO\\nYES\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 57,
"url": "https://codeforces.com/problemset/problem/1375/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"4\\n2 2 1\\n2 2 3\\n2 2 2\\n2 2 4\\n\"\n ],\n \"outputs\": [\n \"5\\n5\\n4\\n0\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 58,
"url": "https://codeforces.com/problemset/problem/598/E"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"7\\n5\\n-1 10 -1 12 -1\\n5\\n-1 40 35 -1 35\\n6\\n-1 -1 9 -1 3 -1\\n2\\n-1 -1\\n2\\n0 -1\\n4\\n1 -1 3 -1\\n7\\n1 -1 7 5 2 -1 5\\n\"\n ],\n \"outputs\": [\n \"1 11\\n5 37\\n3 6\\n0 0\\n0 0\\n1 2\\n3 4\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 59,
"url": "https://codeforces.com/problemset/problem/1301/B"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"6\\n6 12\\n4 9\\n59 832\\n28 14\\n4925 2912\\n1 1\\n\"\n ],\n \"outputs\": [\n \"10\\n13\\n891\\n18\\n6237\\n0\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 60,
"url": "https://codeforces.com/problemset/problem/1421/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n4\\n2 1 4 3\\n6\\n4 6 1 2 5 3\\n5\\n5 3 1 2 4\\n\"\n ],\n \"outputs\": [\n \"YES\\n2 3 4\\nYES\\n1 2 3\\nNO\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 61,
"url": "https://codeforces.com/problemset/problem/1380/A"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"5\\nababa\\ncodedoca\\nabcda\\nzxzytyz\\nabcdefghijklmnopqrstuvwxyza\\n\"\n ],\n \"outputs\": [\n \"YES\\nbacdefghijklmnopqrstuvwxyz\\nYES\\nedocabfghijklmnpqrstuvwxyz\\nNO\\nYES\\nxzytabcdefghijklmnopqrsuvw\\nNO\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 62,
"url": "https://codeforces.com/problemset/problem/1303/C"
} |
apps | [
{
"content": "You are given a programming problem statement.\n\nWrite a correct Python 3 solution.\n\nInstructions:\n- Return only one code block in Markdown.\n- The code block must start with ```python and end with ```.\n- Put the complete executable solution inside the code block.\n- The program must read fro... | code | {
"ground_truth": "{\n \"inputs\": [\n \"3\\n4 2\\n1 13 7 17\\n1 3\\n6 2\\n10 10 10 10 11 11\\n3 3\\n4 4\\n1000000000 1000000000 1000000000 1000000000\\n1 1 1 1\\n\"\n ],\n \"outputs\": [\n \"48\\n42\\n8000000000\\n\"\n ]\n}",
"style": "apps"
} | {
"difficulty": "interview",
"problem_id": 63,
"url": "https://codeforces.com/problemset/problem/1369/C"
} |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 11