id stringlengths 11 45 | domain stringclasses 5
values | language stringclasses 2
values | source stringclasses 6
values | license stringclasses 5
values | group_id stringlengths 8 35 | task stringclasses 77
values | attribution stringlengths 0 758 | messages listlengths 2 2 | grading dict | split stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|
reason2-fair_slots-019 | reasoning | ru | Original | CC0-1.0 | reason2-fair_slots | workshop_fair_slots | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Клуб делит часы студии по одному. Веса секций: E=13, F=31, J=19, P=23, V=22. Следующий час получает секция с наибольшим отношением «вес / (1 + число уже выделенных часов)». При равенстве выбирают первый код по алфавиту. Какой секции достанется час номер 4, если сначала ни у ког... | {
"type": "exact",
"value": "J",
"tests": []
} | train |
gsm-train-829 | math | en | GSM8K | MIT | gsm8k-8db10ee3106c5babbc4b | word_problem_3_steps | OpenAI (2021), GSM8K, original train row 829 | [
{
"role": "user",
"content": "Tim gets 6 hours of sleep 2 days in a row. To make up for it he sleeps 10 hours the next 2 days. How much sleep did he get?\nShow a short calculation. Put the final number alone on the last line."
},
{
"role": "assistant",
"content": "He got 2*6=12 hours the first... | {
"type": "number",
"value": "32",
"tests": []
} | train |
wiki-read-ru-0b7f5c45896629b8b1e6 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-3a7bd3e2360a3d29eea436 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--4790155612597746656-5 (Apache-2.0). Wikipedia contributors, “Apple” (https://ru.wikipedia.org/wiki/Apple), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Apple\n\nКомпания основана в Калифорнии Стивом Джобсом, Рональдом Уэйном и Стивом Возняком, собравшими в середине 1970-х годов свой первый персональный компьютер на базе процессора «MOS Technology 6502». Продав несколько десятков таких компьютеров, молодые предприниматели получ... | {
"type": "exact",
"value": "1976-04-01",
"tests": []
} | train |
gsm-train-6465 | math | en | GSM8K | MIT | gsm8k-ea8809d13d09394f4e2a | word_problem_6_steps | OpenAI (2021), GSM8K, original train row 6465 | [
{
"role": "user",
"content": "Bea's mom planted 50 Mahogany and 30 Narra trees on their farm. Due to a typhoon, a total of 5 trees fell. One more Mahogany tree fell than the number of Narra trees that fell. A month after the typhoon, Bea's mom planted twice as much as the number of the Narra and thrice the ... | {
"type": "number",
"value": "88",
"tests": []
} | train |
math-verified-quadratic_samples-007 | math | ru | Original | CC0-1.0 | math-verified-quadratic_samples | verified_math_quadratic_samples | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Известно, что f — квадратный многочлен. Даны значения f(0) = -10, f(4) = 38, f(8) = 182. Чему равно f(16)?\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью."
},
{
"role": "assistant",
"content": "Аргументы идут с шагом 4. Две соседние р... | {
"type": "number",
"value": "758",
"tests": []
} | train |
wiki-read-ru-f99c4e25c333c9915810 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-de5cfd7cf0f74f9ae81488 | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--7517759935843708813-7 (Apache-2.0). Wikipedia contributors, “Общество Тямпы” (https://ru.wikipedia.org/wiki/%D0%9E%D0%B1%D1%89%D0%B5%D1%81%D1%82%D0%B2%D0%BE_%D0%A2%D1%8F%D0%BC%D0%BF%D1%8B), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference marke... | [
{
"role": "user",
"content": "Общество Тямпы\n\nДревние тямы являлись австронезийским народом, который в начале нашей эры заселил приморские долины центрального Вьетнама и создал там несколько царств. Предшественниками тямов на этой территории были люди культуры Сахюинь, но насколько они повлияли на состав,... | {
"type": "exact",
"value": "который в начале нашей эры заселил приморские долины центрального Вьетнама и создал там несколько царств",
"tests": []
} | train |
algpy-044e8da2b2ce81dc-trace | code | ru | TheAlgorithms/Python | MIT | algpy-044e8da2b2ce81dc | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/wildcard_pattern_matching.py#match_pattern; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(input_string, pattern):\n len_string = len(input_string) + 1\n len_pattern = len(pattern) + 1\n dp = [[0 for i in range(len_pattern)] for j in range(len_string)]\n dp[0][0] = 1\n for i in range(1, len_string):\n dp[i][0] = 0\n for... | {
"type": "exact",
"value": "False",
"tests": []
} | train |
reason2-rotate_grid-051 | reasoning | ru | Original | CC0-1.0 | reason2-rotate_grid | workshop_rotate_grid | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Исходные строки табло сверху вниз: E M B / Z T H / K L S. Выполни циклические сдвиги по порядку: столбец 3 на 2 вниз; строка 2 на 1 вправо; столбец 1 на 1 вниз. Какой символ теперь в строке 3, столбце 1? Нумерация с единицы.\nКратко обоснуй ответ и запиши сам ответ на последней... | {
"type": "exact",
"value": "S",
"tests": []
} | train |
wiki-read-ru-34eaa6537267fa3b9a78 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-49d110c91e4a1f957cdeca | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-3827881455301865851-0 (Apache-2.0). Wikipedia contributors, “Linkin Park” (https://ru.wikipedia.org/wiki/Linkin_Park), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Linkin Park\n\nLinkin Park — американская мультиплатиновая рок-группа, основанная в 1996 году под названием Xero и исполняющая музыку преимущественно в стилях альтернативный метал, ню-метал и рэп-метал (раннее творчество), альтернативный рок, электроник-рок, поп и поп-рок (позд... | {
"type": "exact",
"value": "которые разошлись общим тиражом около 100 миллионов экземпляров",
"tests": []
} | train |
wiki-read-ru-7ba9b8462e469875ebed | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-aa55dc5d3aff083bcab3ca | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-1633655894406246053-57 (Apache-2.0). Wikipedia contributors, “Московский Кремль” (https://ru.wikipedia.org/wiki/%D0%9C%D0%BE%D1%81%D0%BA%D0%BE%D0%B2%D1%81%D0%BA%D0%B8%D0%B9_%D0%9A%D1%80%D0%B5%D0%BC%D0%BB%D1%8C), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespac... | [
{
"role": "user",
"content": "Московский Кремль\n\nВ 1485—1516 годах строительство стен Кремля возглавляли итальянские зодчие Антон Фрязин, Марко Фрязин, П. А. Солари и Алевиз Фрязин Старый. Кирпичные стены ставились по линии белокаменных, с небольшим отступлением наружу. Начиная от Спасской башни территори... | {
"type": "exact",
"value": "8 кг",
"tests": []
} | train |
wiki-read-en-ec6095c18f2ccb112c10 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-50ff4435fa013dd5f705da | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--3570199429347280598-1 (Apache-2.0). Wikipedia contributors, “Velcro” (https://en.wikipedia.org/wiki/Velcro), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Velcro\n\nSwiss electrical engineer George de Mestral invented his first touch fastener when, in 1941, he went for a walk in the woods and wondered why Burdock seeds clung to his coat and dog. He discovered it could be turned into something useful. He patented it in 1955 and su... | {
"type": "exact",
"value": "1941, 1955",
"tests": []
} | train |
reason2-join_catalogs-059 | reasoning | ru | Original | CC0-1.0 | reason2-join_catalogs | workshop_join_catalogs | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Каталог связывает код книги с полкой: B28=S8, B78=S8, B92=S5, B33=S8, B27=S9, B39=S5. Соответствие полок и залов: S9=A, S8=S, S5=H. Число выданных экземпляров по коду книги: B27=3, B39=10, B78=12, B33=14, B28=3, B92=11. В каком зале больше всего выдач?\nПриведи ход решения в не... | {
"type": "exact",
"value": "S",
"tests": []
} | train |
algpy-74382ecf71578f6a-trace | code | ru | TheAlgorithms/Python | MIT | algpy-74382ecf71578f6a | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/radians.py#radians; adapted exercises | [
{
"role": "user",
"content": "```python\nfrom math import pi\n\ndef compute(degree):\n return degree / (180 / pi)\n```\nЧто вернёт выражение round(compute(274), 6)? Запиши repr результата Python."
},
{
"role": "assistant",
"content": "4.782202"
}
] | {
"type": "exact",
"value": "4.782202",
"tests": []
} | train |
reason2-fair_slots-026 | reasoning | en | Original | CC0-1.0 | reason2-fair_slots | workshop_fair_slots | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A club allocates studio hours one by one. Section weights: F=36, K=32, L=12, R=20, Z=27. Each next hour goes to the largest weight / (1 + hours already awarded), ties to the alphabetically first code. Starting from zero, which section gets hour 5?\nShow a short check. Give the ... | {
"type": "exact",
"value": "F",
"tests": []
} | train |
reason2-editing_history-015 | reasoning | en | Original | CC0-1.0 | reason2-editing_history | workshop_editing_history | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "An editor field starts at P. Writing replaces its value and discards any redo history. Undo moves to the previous value, redo restores an undone edit, and an unavailable action has no effect. Commands: write T; write G; undo; undo; redo; undo; undo; undo; redo; write C; write F... | {
"type": "exact",
"value": "E",
"tests": []
} | train |
reason2-line_breaks-046 | reasoning | en | Original | CC0-1.0 | reason2-line_breaks | workshop_line_breaks | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A heading contains words of lengths 4, 7, 8, 6, 8, 3, 4, 2, 2, 2, in the given order. Each line holds 15 characters, with one space between adjacent words. Words cannot be split or reordered. What is the fewest lines needed?\nBriefly justify your result, then put the answer alo... | {
"type": "number",
"value": "4",
"tests": []
} | train |
wiki-read-en-0aab1c5e5bc21be68533 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-f6da34073574e74c5db84b | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-4224269439806515570-0 (Apache-2.0). Wikipedia contributors, “States and union territories of India” (https://en.wikipedia.org/wiki/States_and_union_territories_of_India), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New r... | [
{
"role": "user",
"content": "States and union territories of India\n\nIndia is a federal union comprising 29 states and 7 union territories, for a total of 36 entities. The states and union territories are further subdivided into districts and smaller administrative divisions.\n\nHow does the first sentenc... | {
"type": "exact",
"value": "a federal union comprising 29 states and 7 union territories, for a total of 36 entities",
"tests": []
} | train |
wiki-read-en-f538b0c43beb32629166 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-21f5ff77a8d9b774ff37d6 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7198518828808220915-0 (Apache-2.0). Wikipedia contributors, “Portland Loo” (https://en.wikipedia.org/wiki/Portland_Loo), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Portland Loo\n\nThe Portland Loo is a public toilet system built by Madden Fabrication in Portland, Oregon. It has been adopted by multiple other municipalities. The \"flagship toilet\" is in Portland's Old Town Chinatown neighborhood.\n\nHow does the first sentence define “The... | {
"type": "exact",
"value": "a public toilet system built by Madden Fabrication in Portland, Oregon",
"tests": []
} | train |
math-verified-three_clubs-018 | math | ru | Original | CC0-1.0 | math-verified-three_clubs | verified_math_three_clubs | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Численность трёх учебных групп: A — 45, B — 48, C — 30. На A и B записаны 26, на B и C — 12, на A и C — 15. Число участников всех трёх групп — 8; они включены в каждое парное пересечение. Сколько человек записалось ровно на одно занятие?\nЗапиши точное число в последней строке;... | {
"type": "number",
"value": "41",
"tests": []
} | train |
reason2-motif_growth-041 | reasoning | ru | Original | CC0-1.0 | reason2-motif_growth | workshop_motif_growth | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Начальный орнамент UU. За проход каждый исходный символ одновременно заменяют по правилам W→LU; U→LUL; L→LU; новые символы в том же проходе не заменяются. Сколько символов U будет после 3 проходов?\nПриведи ход решения в нескольких фразах. На последней строке оставь только отве... | {
"type": "number",
"value": "14",
"tests": []
} | train |
reason2-assembly_units-032 | reasoning | ru | Original | CC0-1.0 | reason2-assembly_units | workshop_assembly_units | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для сборки используются спецификации (правая часть — состав одной единицы): G = 3×J + 3×F; J = 3×Y + 2×V; F = 3×Y + 5×V. Заказ включает изделия G в количестве 7 и отдельно узлы J в количестве 5. Сколько отдельных деталей Y потребуется?\nПриведи ход решения в нескольких фразах. ... | {
"type": "number",
"value": "141",
"tests": []
} | train |
reason2-light_piece-045 | reasoning | ru | Original | CC0-1.0 | reason2-light_piece | workshop_light_piece | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Детали N, M, V, U, C, R, W, Y, E должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): V+R+N+C < E+M+Y+W; W+M+R = V+U+E; R+W+V+E > Y+U+M+N. Какая деталь легче?\nПокажи короткую проверку, ... | {
"type": "exact",
"value": "N",
"tests": []
} | train |
wiki-read-ru-9bdba00a3e85f373d8ec | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-17ff158cb5fd3c57a306f3 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--2185189364643788258-0 (Apache-2.0). Wikipedia contributors, “Туризм в Греции” (https://ru.wikipedia.org/wiki/%D0%A2%D1%83%D1%80%D0%B8%D0%B7%D0%BC_%D0%B2_%D0%93%D1%80%D0%B5%D1%86%D0%B8%D0%B8), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference mar... | [
{
"role": "user",
"content": "Туризм в Греции\n\nГрецию посещает более 20 млн. туристов ежегодно, принося, тем самым, около 15 % валового внутреннего продукта всей страны. Греция привлекает иностранных гостей своей богатой историей и традициями с давних времен. Но в последние десятилетия значительно вырос п... | {
"type": "exact",
"value": "15 %",
"tests": []
} | train |
algpy-9ed71ea0cfc15617-trace | code | en | TheAlgorithms/Python | MIT | algpy-9ed71ea0cfc15617 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/minimum_partition.py#find_min; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(numbers):\n n = len(numbers)\n s = sum(numbers)\n dp = [[False for x in range(s + 1)] for y in range(n + 1)]\n for i in range(n + 1):\n dp[i][0] = True\n for i in range(1, s + 1):\n dp[0][i] = False\n for i in range(1, n + ... | {
"type": "exact",
"value": "0",
"tests": []
} | train |
math-verified-skipped_payment-021 | math | ru | Original | CC0-1.0 | math-verified-skipped_payment | verified_math_skipped_payment | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "В первый день планировали отложить 17 руб., а в каждый следующий — на 4 руб. больше, чем было запланировано накануне. План рассчитан на 19 дней. Ровно в один день взнос пропустили; все остальные суммы внесли по расписанию. Всего отложили 982 руб. В какой по счёту день пропустил... | {
"type": "number",
"value": "3",
"tests": []
} | train |
reason2-assembly_units-029 | reasoning | en | Original | CC0-1.0 | reason2-assembly_units | workshop_assembly_units | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Each bill of materials lists the contents of one unit: T = 3×J + 3×M; J = 1×B + 2×D; M = 5×B + 5×D. The order requires 6 units of T plus 5 additional units of J. How many individual B parts are needed?\nExplain in a few sentences and use the final line for the answer alone."
... | {
"type": "number",
"value": "113",
"tests": []
} | train |
wiki-read-ru-18b005523efb9dad6fbd | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-0b58922c347dca7142760f | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7571138600837624637-2 (Apache-2.0). Wikipedia contributors, “Обыкновенная белка” (https://ru.wikipedia.org/wiki/%D0%9E%D0%B1%D1%8B%D0%BA%D0%BD%D0%BE%D0%B2%D0%B5%D0%BD%D0%BD%D0%B0%D1%8F_%D0%B1%D0%B5%D0%BB%D0%BA%D0%B0), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whi... | [
{
"role": "user",
"content": "Обыкновенная белка\n\nЭто мелкий зверек типично беличьего облика, с вытянутым стройным телом и пушистым хвостом с «расчёсом». Длина её тела 19,5—28 см, хвоста — 13—19 см (примерно 2/3 длины тела); вес 250—340 г. Голова округлая, с большими чёрными глазами. Уши длинные, с кисточ... | {
"type": "exact",
"value": "примерно 2/3 длины тела",
"tests": []
} | train |
reason2-rotate_grid-017 | reasoning | en | Original | CC0-1.0 | reason2-rotate_grid | workshop_rotate_grid | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "The board's original rows from top to bottom are K X Z N / Q J R G / Y M F U. Apply these cyclic shifts in order: column 4 down by 2; row 1 right by 2; column 1 down by 1; row 3 right by 1. Which symbol is now in row 3, column 1? Indices start at 1.\nExplain in a few sentences ... | {
"type": "exact",
"value": "N",
"tests": []
} | train |
wiki-read-ru-1851c9af43f9afa0b891 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-edc0b0a1ea40b5a0e37626 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-4014686726005724939-0 (Apache-2.0). Wikipedia contributors, “География Австрии” (https://ru.wikipedia.org/wiki/%D0%93%D0%B5%D0%BE%D0%B3%D1%80%D0%B0%D1%84%D0%B8%D1%8F_%D0%90%D0%B2%D1%81%D1%82%D1%80%D0%B8%D0%B8), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace... | [
{
"role": "user",
"content": "География Австрии\n\nАвстрия — государство в Центральной Европе. Площадь 83 871 км², из них площадь водоёмов — 1 426 км². Высочайшая точка — гора Гросглокнер (3 798 метров).\n\nКакое пояснение в скобках автор поместил сразу после слов «точка — гора Гросглокнер»? Выпиши его полн... | {
"type": "exact",
"value": "3 798 метров",
"tests": []
} | train |
wiki-read-en-e33178f6b8f01350bd14 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-0ec8d9fff6d50872ce905c | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7730447271715057569-0 (Apache-2.0). Wikipedia contributors, “Verdigris” (https://en.wikipedia.org/wiki/Verdigris), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Verdigris\n\nVerdigris is the common name for a green pigment obtained through the application of acetic acid to copper plates or the natural patina formed when copper, brass or bronze is weathered and exposed to air or seawater over a period of time. It is usually a basic copp... | {
"type": "exact",
"value": "but near the sea will be a basic copper chloride",
"tests": []
} | train |
reason2-line_breaks-058 | reasoning | en | Original | CC0-1.0 | reason2-line_breaks | workshop_line_breaks | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A heading contains words of lengths 7, 7, 8, 2, 5, 6, 8, 9, 3, 6, 9, in the given order. Each line holds 19 characters, with one space between adjacent words. Words cannot be split or reordered. What is the fewest lines needed?\nExplain in a few sentences and use the final line... | {
"type": "number",
"value": "5",
"tests": []
} | train |
gsm-train-469 | math | en | GSM8K | MIT | gsm8k-c2d3df4ceeac673532fd | word_problem_8_steps | OpenAI (2021), GSM8K, original train row 469 | [
{
"role": "user",
"content": "A shopping center sells T-shirts at $8 each, a sweater at $18, and a jacket at $80. The jacket is on sale with a 10% discount. The sales tax is 5%. Kevin wants to buy six T-shirts, four sweaters, and five jackets for his children. How much does Kevin have to pay for all the i... | {
"type": "number",
"value": "504",
"tests": []
} | train |
algpy-65f5b92b7df77f23-change-impact | code | en | TheAlgorithms/Python | MIT | algpy-65f5b92b7df77f23 | change-impact | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/arrays/median_two_array.py#find_median_sorted_arrays; adapted exercises | [
{
"role": "user",
"content": "Suppose `if total % 2 == 1:` is replaced by `if total % 2 != 1:` in the program below. Which expression changes its returned value? Briefly explain and write its letter on the last line.\n```python\ndef compute(nums1, nums2):\n if not nums1 and (not nums2):\n raise Va... | {
"type": "exact",
"value": "B",
"tests": []
} | train |
wiki-read-en-804983ba83c41d3cde15 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-ebb2033a04222a879acf42 | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-4005957769509066138-1 (Apache-2.0). Wikipedia contributors, “Spider-Man in film” (https://en.wikipedia.org/wiki/Spider-Man_in_film), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Spider-Man in film\n\nThe first live-action film based on Spider-Man was the unauthorized short Spider-Man by Donald F. Glut in 1969. This was followed by Spider-Man, an American made-for-television film that premiered on the CBS network in 1977. It starred Nicholas Hammond and... | {
"type": "exact",
"value": "1969, 1977",
"tests": []
} | train |
algpy-cb6dd10b81610b8a-trace | code | ru | TheAlgorithms/Python | MIT | algpy-cb6dd10b81610b8a | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/fast_walsh_hadamard_transform.py#fwht_or; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(sequence, inverse=False):\n sequence_length = len(sequence)\n if sequence_length == 0 or sequence_length & sequence_length - 1 != 0:\n raise ValueError('Length of sequence must be a positive power of 2.')\n result = list(sequence)\n hal... | {
"type": "exact",
"value": "[1, 3]",
"tests": []
} | train |
algpy-7999d17ceb3a4562-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-7999d17ceb3a4562 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, searches/linear_search.py#rec_linear_search; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(sequence, low, high, target):\n if not (0 <= high < len(sequence) an... | {
"type": "exact",
"value": "B: 0",
"tests": []
} | train |
wiki-read-en-0aa08ff3ba88b9ad373a | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-38c09b54483898f2aea7e6 | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-5215074044147384609-17 (Apache-2.0). Wikipedia contributors, “Cereal” (https://en.wikipedia.org/wiki/Cereal), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Cereal\n\nMaize, wheat, and rice together accounted for 89% of all cereal production worldwide in 2012, and 43% of all food calories in 2009, while the production of oats and triticale have drastically fallen from their 1960s levels.\n\nWhich four-digit calendar years does the ... | {
"type": "exact",
"value": "2009, 2012",
"tests": []
} | train |
reason2-balanced_load-065 | reasoning | ru | Original | CC0-1.0 | reason2-balanced_load | workshop_balanced_load | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Две тележки должны увезти все ящики без деления содержимого. Масса каждого ящика: F=16, W=92, B=84, R=56, L=100. Какой наименьшей разницы масс между тележками можно добиться?\nПриведи ход решения в нескольких фразах. На последней строке оставь только ответ."
},
{
"role"... | {
"type": "number",
"value": "4",
"tests": []
} | train |
algpy-54e3794371e477a7-trace | code | en | TheAlgorithms/Python | MIT | algpy-54e3794371e477a7 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/longest_common_subsequence.py#longest_common_subsequence; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(x, y):\n assert x is not None\n assert y is not None\n m = len(x)\n n = len(y)\n dp = [[0] * (n + 1) for _ in range(m + 1)]\n for i in range(1, m + 1):\n for j in range(1, n + 1):\n match = 1 if x[i - 1] == y[j - 1] els... | {
"type": "exact",
"value": "(3, 'abc')",
"tests": []
} | train |
gsm-train-4738 | math | en | GSM8K | MIT | gsm8k-f43e9d1e5e76958e36d9 | word_problem_6_steps | OpenAI (2021), GSM8K, original train row 4738 | [
{
"role": "user",
"content": "Cristian has 50 more black cookies in his cookie jar than white cookies. He eats half of the black cookies and 3/4 of the white cookies. If he initially had 80 white cookies, how many cookies are remaining within the cookie jar altogether?\nShow a short calculation. Put the fin... | {
"type": "number",
"value": "85",
"tests": []
} | train |
wiki-read-ru-9db11a82357edbcbc8c4 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-f2b07607894fe4d88fbee8 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-2109955689818730597-4 (Apache-2.0). Wikipedia contributors, “Восстановление Варшавы” (https://ru.wikipedia.org/wiki/%D0%92%D0%BE%D1%81%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_%D0%92%D0%B0%D1%80%D1%88%D0%B0%D0%B2%D1%8B), snapshot 2019-02-01 ... | [
{
"role": "user",
"content": "Восстановление Варшавы\n\nПринимая во внимание существенные разрушения, был даже поставлен вопрос о временном, а поздней о фактическом переносе столицы в Краков (Лодзь или Познань), но при доскональном изучении исторических, культурных, экономических и прочих факторов, было при... | {
"type": "exact",
"value": "1945-02-14",
"tests": []
} | train |
wiki-read-en-11a4e5dda07e6969db8e | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-e74178c1adb15a4bdec31f | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-5457036716886088273-4 (Apache-2.0). Wikipedia contributors, “HGTV” (https://en.wikipedia.org/wiki/HGTV), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "HGTV\n\nUsing local Scripps cable franchises (since divested), the Federal Communications Commission \"must carry\" provisions of Scripps medium-market television stations, and other small television operators to gain cable carriage, the channel launched on December 1, 1994. Th... | {
"type": "exact",
"value": "since divested",
"tests": []
} | train |
wiki-read-en-21c210403426fe1e8913 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-7135a1777771503754da23 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--8116717799625353003-0 (Apache-2.0). Wikipedia contributors, “History of the Latin script” (https://en.wikipedia.org/wiki/History_of_the_Latin_script), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "History of the Latin script\n\nThe Latin script is the most widely used alphabetic writing system in the world. It is the standard script of the English language and is often referred to simply as \"the alphabet\" in English. It is a true alphabet which originated in the 7th ce... | {
"type": "exact",
"value": "the most widely used alphabetic writing system in the world",
"tests": []
} | train |
algpy-27c454ce52335287-trace | code | en | TheAlgorithms/Python | MIT | algpy-27c454ce52335287 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/area.py#surface_area_sphere; adapted exercises | [
{
"role": "user",
"content": "```python\nfrom math import pi\n\ndef compute(radius):\n if radius < 0:\n raise ValueError('compute() only accepts non-negative values')\n return 4 * pi * radius ** 2\n```\nWhat does round(compute(0), 6) return? Give the Python repr of the value."
},
{
"rol... | {
"type": "exact",
"value": "0.0",
"tests": []
} | train |
reason2-order_count-002 | reasoning | en | Original | CC0-1.0 | reason2-order_count | workshop_order_count | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Display items Z, L, A, X, F must be brought in one at a time, each exactly once. X→Y requires X before Y. Given L→X, Z→X, L→F, X→F, Z→F, Z→L, how many complete orders are possible?\nShow a short check. Give the final answer on a separate line."
},
{
"role": "assistant",... | {
"type": "number",
"value": "5",
"tests": []
} | train |
reason2-connected_groups-000 | reasoning | ru | Original | CC0-1.0 | reason2-connected_groups | workshop_connected_groups | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Сначала у каждого кода из списка S, L, R, H, B, D, W, F, P, K, A свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: H–W, L–K, P–R, K–A, S–F, B–H, W–B, A–L, D–L, K–D. Добавляют связь K–H. Сколько кодов будет... | {
"type": "number",
"value": "7",
"tests": []
} | train |
reason2-event_selection-063 | reasoning | en | Original | CC0-1.0 | reason2-event_selection | workshop_event_selection | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "One photographer wants to cover as many entire demonstrations as possible. Their start and end times are S 3–5; X 1–6; J 9–17; P 5–8; R 13–18; L 4–11; W 12–19. Finishing one at the instant another starts is allowed. What is the maximum count?\nExplain in a few sentences and use... | {
"type": "number",
"value": "3",
"tests": []
} | train |
reason2-critical_path-043 | reasoning | en | Original | CC0-1.0 | reason2-critical_path | workshop_critical_path | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A workshop has unlimited workstations. Step durations in minutes: P=2, V=6, F=9, Z=8, Y=2, R=9, M=2. X→Y means Y may start only after X finishes. The full list of dependencies is Y→F, Z→F, M→Z, M→V, M→R, Z→R, Z→Y, F→P, M→P, Y→P. Starting at minute zero, when can the whole job f... | {
"type": "number",
"value": "23",
"tests": []
} | train |
algpy-b4a43a4d77faa14d-repair | code | en | TheAlgorithms/Python | MIT | algpy-b4a43a4d77faa14d | repair | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/hex_to_rgb.py#hex_to_rgb; adapted exercises | [
{
"role": "user",
"content": "Repair this Python function. Given a six-digit RGB color prefixed by #, return the literal string 'rgb(r, g, b)' with decimal 0–255 components and a single space after each comma.\nFor hex_to_rgb('#01A30F') it should return 'rgb(1, 163, 15)', but returns 'rgb(0, 17, 170)'. Keep... | {
"type": "code",
"value": "",
"tests": [
"assert hex_to_rgb('#000000') == 'rgb(0, 0, 0)'",
"assert hex_to_rgb('#ffffff') == 'rgb(255, 255, 255)'",
"assert hex_to_rgb('#01A30F') == 'rgb(1, 163, 15)'",
"assert hex_to_rgb('#80aB00') == 'rgb(128, 171, 0)'",
"assert hex_to_rgb('#F901EF') == 'rgb(2... | train |
reason2-event_selection-012 | reasoning | ru | Original | CC0-1.0 | reason2-event_selection | workshop_event_selection | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: J 6–11; P 12–20; M 19–21; U 10–16; N 11–14. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nПриведи ход решения в нескольких фразах. На по... | {
"type": "number",
"value": "3",
"tests": []
} | train |
wiki-read-en-81c60f950443c1653531 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-9121b09ccdbc8ac51cef45 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-6413566052133482251-0 (Apache-2.0). Wikipedia contributors, “Super Bowl XL” (https://en.wikipedia.org/wiki/Super_Bowl_XL), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Super Bowl XL\n\nSuper Bowl XL was an American football game between the National Football Conference (NFC) champion Seattle Seahawks and the American Football Conference (AFC) champion Pittsburgh Steelers to decide the National Football League (NFL) champion for the 2005 seaso... | {
"type": "exact",
"value": "2006-02-05",
"tests": []
} | train |
algpy-f2b471396ab00ad8-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-f2b471396ab00ad8 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/volume.py#vol_hollow_circular_cylinder; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\nfrom math import pi\n\ndef compute(inner_radius, outer_radius, height):\n if inn... | {
"type": "exact",
"value": "B: 28.274334",
"tests": []
} | train |
wiki-read-en-cc20c4bfbf9ed5a1a939 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-98b7a845825459ef6acf82 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--8015082360492693852-21 (Apache-2.0). Wikipedia contributors, “Autobahn” (https://en.wikipedia.org/wiki/Autobahn), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Autobahn\n\nMost sections of Germany's autobahns are modern, containing two or three, sometimes four lanes in addition to an emergency lane (hard shoulder). A few other sections remain in an old state, with two lanes, no emergency lane, and short slip-roads and ramps.\n\nWhat p... | {
"type": "exact",
"value": "hard shoulder",
"tests": []
} | train |
reason2-pareto-029 | reasoning | ru | Original | CC0-1.0 | reason2-pareto | workshop_pareto | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для печати плаката доступны заказы (дни, цена): X (7, 45); N (19, 24); D (26, 18); L (16, 29); F (24, 62); E (21, 54). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядке через пробел.\nПокажи короткую п... | {
"type": "exact",
"value": "D L N X",
"tests": []
} | train |
algpy-234eb856b849fa23-trace | code | en | TheAlgorithms/Python | MIT | algpy-234eb856b849fa23 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, scheduling/round_robin.py#calculate_waiting_times; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(burst_times):\n quantum = 2\n rem_burst_times = list(burst_times)\n waiting_times = [0] * len(burst_times)\n t = 0\n while True:\n done = True\n for i, burst_time in enumerate(burst_times):\n if rem_burst_times[i] >... | {
"type": "exact",
"value": "[13, 10, 13]",
"tests": []
} | train |
gsm-train-6157 | math | en | GSM8K | MIT | gsm8k-1dbf37979026a1dacca9 | word_problem_4_steps | OpenAI (2021), GSM8K, original train row 6157 | [
{
"role": "user",
"content": "A man drives 60 mph for 3 hours. How fast would he have to drive over the next 2 hours to get an average speed of 70 mph?\nShow a short calculation. Put the final number alone on the last line."
},
{
"role": "assistant",
"content": "To have an average speed of 70 m... | {
"type": "number",
"value": "85",
"tests": []
} | train |
algpy-a0579eb3880048d4-trace | code | ru | TheAlgorithms/Python | MIT | algpy-a0579eb3880048d4 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/anagrams.py#signature; adapted exercises | [
{
"role": "user",
"content": "```python\nimport collections\n\ndef signature(word):\n frequencies = collections.Counter(word)\n return ''.join((f'{char}{frequency}' for char, frequency in sorted(frequencies.items())))\n```\nЧто вернёт выражение signature('finaltest')? Запиши repr результата Python."
... | {
"type": "exact",
"value": "'a1e1f1i1l1n1s1t2'",
"tests": []
} | train |
reason2-line_breaks-000 | reasoning | ru | Original | CC0-1.0 | reason2-line_breaks | workshop_line_breaks | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Длины слов заголовка в символах, от первого слова к последнему: 7, 8, 6, 3, 3, 4, 8, 2. Предельная длина строки — 19. Между соседними словами ровно один пробел. Менять порядок и переносить часть слова нельзя. Каково наименьшее число строк?\nКратко обоснуй ответ и запиши сам отв... | {
"type": "number",
"value": "3",
"tests": []
} | train |
wiki-read-en-8a41d7da5e9351e369ae | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-0e0a3581a49bb0328852cb | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7034848681953329066-0 (Apache-2.0). Wikipedia contributors, “Ganymede (moon)” (https://en.wikipedia.org/wiki/Ganymede_(moon)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Ganymede (moon)\n\nGanymede /ˈɡænɪmiːd/ (Jupiter III) is the largest and most massive moon of Jupiter and in the Solar System. The ninth largest object in the Solar System, it is the largest without a substantial atmosphere. It has a diameter of 5,268km (3,273mi) and is 8% larg... | {
"type": "exact",
"value": "5,268km",
"tests": []
} | train |
wiki-read-en-516d4c7a323afb1d1879 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-4a68a797271917edeecf58 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3065779129988569780-0 (Apache-2.0). Wikipedia contributors, “List of heaviest land mammals” (https://en.wikipedia.org/wiki/List_of_heaviest_land_mammals), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "List of heaviest land mammals\n\nThe heaviest land mammal has a weight up to 10 short tons (9.1t), the African bush elephant. This enormous mammal measures approximately 24 feet (7.3m), and eats 500 pounds (230kg) of vegetation like grasses and leaves a day. Their two elongated... | {
"type": "exact",
"value": "230kg",
"tests": []
} | train |
reason2-missing_cells-052 | reasoning | en | Original | CC0-1.0 | reason2-missing_cells | workshop_missing_cells | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "In a tally table the columns are G, A, M, in that order. A vertical bar precedes the row total. Rows: R6: 14 / 3 / 3 | 20; R5: ? / 15 / 14 | 33; R4: 5 / 12 / 13 | 30; R10: ? / 6 / ? | 18; R8: 4 / 4 / 4 | 12. Column totals: G=30, A=40, M=43. What is the missing entry in row R10,... | {
"type": "number",
"value": "3",
"tests": []
} | train |
wiki-read-ru-59b860b22747d115efdd | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-45e8bf464dbc6a9587fba2 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7034484548975950110-17 (Apache-2.0). Wikipedia contributors, “История почты и почтовых марок Великобритании” (https://ru.wikipedia.org/wiki/%D0%98%D1%81%D1%82%D0%BE%D1%80%D0%B8%D1%8F_%D0%BF%D0%BE%D1%87%D1%82%D1%8B_%D0%B8_%D0%BF%D0%BE%D1%87%D1%82%D0%BE%D0%B2%D1%8B%D1... | [
{
"role": "user",
"content": "История почты и почтовых марок Великобритании\n\nФиксированные тарифы означали, что для отправки письма становилось целесообразным не иметь дела с деньгами, а использовать . Соответственно, 6 мая 1840 года «Чёрный пенни» стал первой поступившей в обращение наклеиваемой почтовой... | {
"type": "exact",
"value": "1840-05-06",
"tests": []
} | train |
wiki-read-en-39427b543778e4fb364a | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-cb6a11c8742709ccc758d2 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--5056243118238434340-0 (Apache-2.0). Wikipedia contributors, “Justin Morgan (Home and Away)” (https://en.wikipedia.org/wiki/Justin_Morgan_(Home_and_Away)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise... | [
{
"role": "user",
"content": "Justin Morgan (Home and Away)\n\nJustin Morgan is a fictional character from the Australian television soap opera Home and Away, played by James Stewart. The actor was contacted by his agent and the head of drama at Seven Network about the role. After hearing their pitch, Stewa... | {
"type": "exact",
"value": "2016-06-07",
"tests": []
} | train |
wiki-read-ru-5ec5c8083e50e666480c | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-189a2a74616ba0d7c7029f | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--2271119863456612451-3 (Apache-2.0). Wikipedia contributors, “Символика Одессы” (https://ru.wikipedia.org/wiki/%D0%A1%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D0%B8%D0%BA%D0%B0_%D0%9E%D0%B4%D0%B5%D1%81%D1%81%D1%8B), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and r... | [
{
"role": "user",
"content": "Символика Одессы\n\nФлаг города представляет собой прямоугольное полотнище с упрощённым гербом по центру, разделённое по вертикали на три части — красную, белую и жёлтую. Утверждён 29 июня 1999 года.\n\nНайди полную календарную дату, у которой месяц написан словом, и запиши её ... | {
"type": "exact",
"value": "1999-06-29",
"tests": []
} | train |
reason2-line_breaks-062 | reasoning | en | Original | CC0-1.0 | reason2-line_breaks | workshop_line_breaks | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A heading contains words of lengths 4, 4, 8, 5, 5, 3, 5, 5, 6, 9, 9, in the given order. Each line holds 15 characters, with one space between adjacent words. Words cannot be split or reordered. What is the fewest lines needed?\nExplain in a few sentences and use the final line... | {
"type": "number",
"value": "6",
"tests": []
} | train |
math-verified-quadratic_samples-018 | math | ru | Original | CC0-1.0 | math-verified-quadratic_samples | verified_math_quadratic_samples | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Известно, что f — квадратный многочлен. Даны значения f(-2) = -7, f(-1) = -4, f(0) = 1. Чему равно f(3)?\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью."
},
{
"role": "assistant",
"content": "Аргументы идут с шагом 1. Две соседние раз... | {
"type": "number",
"value": "28",
"tests": []
} | train |
reason2-critical_path-028 | reasoning | ru | Original | CC0-1.0 | reason2-critical_path | workshop_critical_path | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Число рабочих мест в мастерской не ограничено. Время выполнения каждого этапа в минутах: A=2, J=6, U=4, L=5, Z=5, S=4, X=3. Стрелка X→Y означает, что Y начинает работу после завершения X. Все зависимости: A→Z, L→Z, S→U, Z→U, A→S. Время отсчитывают с нуля. Когда раньше всего мож... | {
"type": "number",
"value": "14",
"tests": []
} | train |
algpy-54bdc0dfed290436-trace | code | ru | TheAlgorithms/Python | MIT | algpy-54bdc0dfed290436 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/next_prime_number.py#is_prime; adapted exercises | [
{
"role": "user",
"content": "```python\ndef is_prime(number):\n if number <= 1:\n return False\n if number <= 3:\n return True\n if number % 2 == 0 or number % 3 == 0:\n return False\n factor = 5\n while factor * factor <= number:\n if number % factor == 0 or numb... | {
"type": "exact",
"value": "False",
"tests": []
} | train |
wiki-read-en-2e885fa2edea8f409f37 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-307c0ac9cb9c9a6d5e3c54 | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7211187791053117461-21 (Apache-2.0). Wikipedia contributors, “D.Gray-man” (https://en.wikipedia.org/wiki/D.Gray-man), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "D.Gray-man\n\nIn June 2006, Shueisha announced that the D.Gray-man manga would be adapted as an anime. Its first episodes were directed by Osamu Nabeshima and produced by Dentsu, TMS Entertainment, Aniplex, and TV Tokyo. TMS Entertainment provided the animation, while Aniplex p... | {
"type": "exact",
"value": "while Aniplex provided the music",
"tests": []
} | train |
reason2-room_peak-019 | reasoning | ru | Original | CC0-1.0 | reason2-room_peak | workshop_room_peak | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Репетиции занимают отдельные комнаты в такие минуты: A [9,11); M [12,14); Y [12,17); R [4,11); Z [6,14). Конец интервала уже свободен; одна комната подходит любой группе. Сколько комнат как минимум требуется одновременно?\nПокажи короткую проверку, а в конце на отдельной строке... | {
"type": "number",
"value": "3",
"tests": []
} | train |
reason2-order_count-061 | reasoning | ru | Original | CC0-1.0 | reason2-order_count | workshop_order_count | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Экспонаты M, X, T, R выносят по одному, каждый ровно раз. Правило X→Y требует вынести X раньше Y. Правила: M→X, M→R, T→R. Сколько полных порядков допускают эти условия?\nКратко обоснуй ответ и запиши сам ответ на последней строке."
},
{
"role": "assistant",
"content... | {
"type": "number",
"value": "5",
"tests": []
} | train |
algpy-872576df9b40f20f-trace | code | en | TheAlgorithms/Python | MIT | algpy-872576df9b40f20f | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/series/hexagonal_numbers.py#hexagonal_numbers; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(length):\n if length <= 0 or not isinstance(length, int):\n raise ValueError('Length must be a positive integer.')\n return [n * (2 * n - 1) for n in range(length)]\n```\nWhat does compute(5) return? Give the Python repr of the value."
},
... | {
"type": "exact",
"value": "[0, 1, 6, 15, 28]",
"tests": []
} | train |
algpy-2e02c48e48f5a731-implement | code | en | TheAlgorithms/Python | MIT | algpy-2e02c48e48f5a731 | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/binary_multiplication.py#binary_multiply; adapted exercises | [
{
"role": "user",
"content": "Implement this Python function. Return the product of two nonnegative integers.\nSignature: def binary_multiply(a, b):\nExamples:\n```python\nassert binary_multiply(0, 0) == 0\nassert binary_multiply(3, 4) == 12\n```"
},
{
"role": "assistant",
"content": "```python\... | {
"type": "code",
"value": "",
"tests": [
"assert binary_multiply(0, 5) == 0",
"assert binary_multiply(7, 0) == 0",
"assert binary_multiply(12, 17) == 204",
"assert binary_multiply(255, 1) == 255"
]
} | train |
wiki-read-ru-04209789c4c5990c86df | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-1012a916d50b897dd44f40 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7207623995609681483-0 (Apache-2.0). Wikipedia contributors, “Эльбрус” (https://ru.wikipedia.org/wiki/%D0%AD%D0%BB%D1%8C%D0%B1%D1%80%D1%83%D1%81), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Эльбрус\n\nЭльбру́с (Kabardian: Iуащхьэмахуэ, Karachay-Balkar: Минги-Тау) — стратовулкан на Кавказе (5642 метра над уровнем моря) — самая высокая горная вершина России и Европы (при проведении границы Европы и Азии по Главному Кавказскому хребту или южнее), входящая в список вы... | {
"type": "exact",
"value": "5642 метра",
"tests": []
} | train |
wiki-read-en-daeee3e807ca2a0f121f | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-5ed728c2fa5d767bc6c1ec | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-2559825252556596406-2 (Apache-2.0). Wikipedia contributors, “Tomato” (https://en.wikipedia.org/wiki/Tomato), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Tomato\n\nNumerous varieties of the tomato plant are widely grown in temperate climates across the world, with greenhouses allowing for the production of tomatoes throughout all seasons of the year. Tomato plants typically grow to 1–3 meters (3–10ft) in height. They are vines t... | {
"type": "exact",
"value": "but are cultivated as annuals",
"tests": []
} | train |
reason2-balanced_load-046 | reasoning | ru | Original | CC0-1.0 | reason2-balanced_load | workshop_balanced_load | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Две тележки должны увезти все ящики без деления содержимого. Масса каждого ящика: C=12, M=84, W=56, F=96, E=36, Z=64, L=32, G=40. Какой наименьшей разницы масс между тележками можно добиться?\nКратко обоснуй ответ и запиши сам ответ на последней строке."
},
{
"role": "a... | {
"type": "number",
"value": "4",
"tests": []
} | train |
reason2-fair_slots-061 | reasoning | ru | Original | CC0-1.0 | reason2-fair_slots | workshop_fair_slots | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Клуб делит часы студии по одному. Веса секций: B=35, E=16, H=31, K=21, W=30. Следующий час получает секция с наибольшим отношением «вес / (1 + число уже выделенных часов)». При равенстве выбирают первый код по алфавиту. Какой секции достанется час номер 6, если сначала ни у ког... | {
"type": "exact",
"value": "E",
"tests": []
} | train |
algpy-8474d29b0130a22c-trace | code | ru | TheAlgorithms/Python | MIT | algpy-8474d29b0130a22c | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/decimal_to_fraction.py#decimal_to_fraction; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(decimal):\n try:\n decimal = float(decimal)\n except ValueError:\n raise ValueError('Please enter a valid number')\n fractional_part = decimal - int(decimal)\n if fractional_part == 0:\n return (int(decimal), 1)\n else:... | {
"type": "exact",
"value": "(3, 2)",
"tests": []
} | train |
wiki-read-en-08f56c63c9da75352cc6 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-b9a9b2bfb82784edd03fe8 | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--85208755288249731-8 (Apache-2.0). Wikipedia contributors, “Llantrisant and Taff Vale Junction Railway” (https://en.wikipedia.org/wiki/Llantrisant_and_Taff_Vale_Junction_Railway), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normaliz... | [
{
"role": "user",
"content": "Llantrisant and Taff Vale Junction Railway\n\nThomas Powell had extensive colliery interests in Monmouthshire and Glamorganshire, and he needed to get a transport link to pits he owned at Llantwit Fardre. Failing to generate interest elsewhere, he determined to build a railway ... | {
"type": "exact",
"value": "when a train of Powell's coal was taken to Cardiff",
"tests": []
} | train |
wiki-read-ru-93b152695c8634d392ff | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-7a73fc9db31cf1ac5e7b31 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7972981021394823193-8 (Apache-2.0). Wikipedia contributors, “Радужный флаг” (https://ru.wikipedia.org/wiki/%D0%A0%D0%B0%D0%B4%D1%83%D0%B6%D0%BD%D1%8B%D0%B9_%D1%84%D0%BB%D0%B0%D0%B3), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers norma... | [
{
"role": "user",
"content": "Радужный флаг\n\n«Флаг мира» (Italian: Bandiera della Pace) является одним из символов международного движения за мир. Его автором считается итальянский философ, теолог и гуманист Альдо Капитини, продемонстрировавший радужное знамя на первом марше за мир из Перуджи в Ассизи 24 ... | {
"type": "exact",
"value": "1961-09-24",
"tests": []
} | train |
reason2-connected_groups-058 | reasoning | ru | Original | CC0-1.0 | reason2-connected_groups | workshop_connected_groups | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Сначала у каждого кода из списка E, C, P, B, K, Z, G свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: B–E, G–B, C–B, C–E, E–G, Z–G. Добавляют связь P–C. Сколько кодов будет в образовавшемся архиве?\nПокаж... | {
"type": "number",
"value": "6",
"tests": []
} | train |
math-verified-tickets-012 | math | ru | Original | CC0-1.0 | math-verified-tickets | verified_math_tickets | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "За групповой заказ на 43 билета заплатили 754 руб., включая один сбор 9 руб. за весь заказ. Обычный билет стоил 20 руб., льготный — 15 руб. Сколько обычных билетов купили?\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью."
},
{
"role": "ass... | {
"type": "number",
"value": "20",
"tests": []
} | train |
wiki-read-ru-fe808705b48afb4b7781 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-6bcad803708d1f2efc555e | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--3897851022068893146-0 (Apache-2.0). Wikipedia contributors, “Гобустан (заповедник)” (https://ru.wikipedia.org/wiki/%D0%93%D0%BE%D0%B1%D1%83%D1%81%D1%82%D0%B0%D0%BD_(%D0%B7%D0%B0%D0%BF%D0%BE%D0%B2%D0%B5%D0%B4%D0%BD%D0%B8%D0%BA)), snapshot 2019-02-01 (CC-BY-SA-3.0). ... | [
{
"role": "user",
"content": "Гобустан (заповедник)\n\nГобустан (Azerbaijani: Qobustan), или Гобустанский государственный историко-художественный заповедник (Azerbaijani: Qobustan dövlət tarixi-bədii qoruğu) — археологический заповедник в Азербайджане, к югу от Баку, на территории Карадагского и Апшеронског... | {
"type": "exact",
"value": "537 гектаров",
"tests": []
} | train |
reason2-editing_history-029 | reasoning | ru | Original | CC0-1.0 | reason2-editing_history | workshop_editing_history | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В редакторе поле сначала содержит P. Запись заменяет значение и стирает возможность повтора отменённых записей. «Отмена» возвращает предыдущее значение, «повтор» восстанавливает отменённую запись. Если действие недоступно, поле не меняется. Команды: записать G; записать C; отме... | {
"type": "exact",
"value": "S",
"tests": []
} | train |
math-verified-stock-001 | math | ru | Original | CC0-1.0 | math-verified-stock | verified_math_stock | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Утром со склада отгрузили 1/4 всех коробок. Затем привезли ещё 30 коробок и отгрузили 1/5 нового запаса. Остаток к вечеру — 168 коробок. Сколько коробок было до первой отгрузки?\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью."
},
{
"role"... | {
"type": "number",
"value": "240",
"tests": []
} | train |
reason2-pareto-023 | reasoning | en | Original | CC0-1.0 | reason2-pareto | workshop_pareto | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Poster printing options are listed as (days, price): G (13, 15); Y (25, 37); B (23, 52); A (6, 62); E (9, 64); J (18, 63). Discard any option if another is both faster and cheaper. Give the surviving codes alphabetically, separated by spaces.\nExplain in a few sentences and use... | {
"type": "exact",
"value": "A G",
"tests": []
} | train |
algpy-3fc011d3d14b478b-trace | code | en | TheAlgorithms/Python | MIT | algpy-3fc011d3d14b478b | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/ear_clipping_polygon_triangulation.py#is_convex; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(point, prev_p, next_p, direction):\n if direction == 'counter-clockwise':\n cross_product = (next_p[0] - point[0]) * (prev_p[1] - point[1]) - (prev_p[0] - point[0]) * (next_p[1] - point[1])\n else:\n cross_product = (prev_p[0] - point[... | {
"type": "exact",
"value": "True",
"tests": []
} | train |
wiki-read-ru-ed513d454910e5d6c2a8 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-eb6681d187ab0ce2535f49 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--8895893198597281288-0 (Apache-2.0). Wikipedia contributors, “Гимн Аргентины” (https://ru.wikipedia.org/wiki/%D0%93%D0%B8%D0%BC%D0%BD_%D0%90%D1%80%D0%B3%D0%B5%D0%BD%D1%82%D0%B8%D0%BD%D1%8B), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference marke... | [
{
"role": "user",
"content": "Гимн Аргентины\n\nНациональный гимн Аргентины (Spanish: Himno Nacional Argentino) — государственный гимн Аргентины. Слова аргентинского национального гимна были написаны Висенте Лопес и Планесом, музыка — Бласом Парерой. Песня была принята в качестве национального гимна 11 мая ... | {
"type": "exact",
"value": "1813-05-11",
"tests": []
} | train |
wiki-read-en-0cc31bab67561a80bed9 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-b1dbe47d5bceaf4900f1c5 | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--3672077892930396529-1 (Apache-2.0). Wikipedia contributors, “Cobalt blue” (https://en.wikipedia.org/wiki/Cobalt_blue), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Cobalt blue\n\nCobalt blue in impure forms had long been used in Chinese porcelain, but it was independently discovered as a pure alumina-based pigment by Louis Jacques Thénard in 1802. Commercial production began in France in 1807. The first recorded use of cobalt blue as a co... | {
"type": "exact",
"value": "1777, 1802, 1807",
"tests": []
} | train |
reason2-connected_groups-066 | reasoning | ru | Original | CC0-1.0 | reason2-connected_groups | workshop_connected_groups | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Сначала у каждого кода из списка T, H, G, K, B, V, U свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: H–U, K–B, T–V, K–T, G–B, V–B. Добавляют связь U–B. Сколько кодов будет в образовавшемся архиве?\nКратк... | {
"type": "number",
"value": "7",
"tests": []
} | train |
reason2-ballot_points-067 | reasoning | ru | Original | CC0-1.0 | reason2-ballot_points | workshop_ballot_points | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Жюри оценивает макеты G, F, R. Баллы за места, начиная с первого: 2, 1, 0. Бюллетени записаны как число одинаковых голосов × порядок от лучшего к худшему: 3 × G>F>R; 7 × R>G>F; 9 × G>R>F; 9 × F>G>R. У какого макета больше всего баллов?\nПокажи короткую проверку, а в конце на от... | {
"type": "exact",
"value": "G",
"tests": []
} | train |
verified-code-nearby_nodes-repair | code | en | Original | CC0-1.0 | verified-code-hops | verified_repair | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Correct one line. nearby_nodes(4, [(0, 1), (1, 2)], 1) returns [0]; expected [0, 1]. Directed graph on 0..n-1 with n ≥ 1, edges as (source, destination), and k ≥ 0. Return reachable vertices whose shortest distance from 0 is at most k, sorted numerically. Vertex 0 has distance ... | {
"type": "code",
"value": "",
"tests": [
"assert nearby_nodes(1, [], 0) == [0]",
"assert nearby_nodes(5, [(1, 0), (0, 2), (2, 3), (3, 2)], 2) == [0, 2, 3]",
"assert nearby_nodes(6, [(0, 3), (0, 1), (1, 2), (2, 3), (3, 4)], 1) == [0, 1, 3]",
"assert nearby_nodes(3, [], 8) == [0]",
"assert near... | train |
math-verified-spaced_seats-005 | math | ru | Original | CC0-1.0 | math-verified-spaced_seats | verified_math_spaced_seats | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "В ряду места пронумерованы от 1 до 14. Место 11 закрыто. Сколькими способами можно выбрать набор из 4 свободных мест так, чтобы никакие два выбранных номера не были соседними? Учитывается только набор номеров.\nЗапиши точное число в последней строке; нецелый ответ дай несократи... | {
"type": "number",
"value": "239",
"tests": []
} | train |
wiki-read-en-ad1c448b44d0c63e9a94 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-c1f856e19b8d4ebd8cc8b1 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--476093762994437789-0 (Apache-2.0). Wikipedia contributors, “2017 Mexico City ePrix” (https://en.wikipedia.org/wiki/2017_Mexico_City_ePrix), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "2017 Mexico City ePrix\n\nThe 2017 Mexico City ePrix (officially the 2017 FIA Formula E Julius Baer Mexico City ePrix) was a Formula E electric car race held on 1 April 2017 before a crowd of 36,000 people at the Autódromo Hermanos Rodríguez in Mexico City, Mexico. It was the f... | {
"type": "exact",
"value": "2017-04-01",
"tests": []
} | train |
reason2-missing_cells-064 | reasoning | en | Original | CC0-1.0 | reason2-missing_cells | workshop_missing_cells | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "In a tally table the columns are J, E, A, in that order. A vertical bar precedes the row total. Rows: R11: ? / 2 / ? | 11; R6: 8 / 11 / 2 | 21; R1: 4 / 3 / ? | 20. Column totals: J=17, E=16, A=19. What is the missing entry in row R11, column A?\nShow a short check. Give the fin... | {
"type": "number",
"value": "4",
"tests": []
} | train |
reason2-frequency_median-029 | reasoning | ru | Original | CC0-1.0 | reason2-frequency_median | workshop_frequency_median | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В журнале длительности занятий записаны парами «минуты × число занятий»: 30×7; 35×3; 8×9; 22×6; 28×7; 32×5. Какова медианная длительность одного занятия?\nПриведи ход решения в нескольких фразах. На последней строке оставь только ответ."
},
{
"role": "assistant",
"c... | {
"type": "number",
"value": "28",
"tests": []
} | train |
algpy-c7f2ce4d6a10d4ef-trace | code | en | TheAlgorithms/Python | MIT | algpy-c7f2ce4d6a10d4ef | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/binomial_coefficient.py#binomial_coefficient; adapted exercises | [
{
"role": "user",
"content": "```python\ndef binomial_coefficient(n, r):\n if n < 0 or r < 0:\n raise ValueError('n and r must be non-negative integers')\n if 0 in (n, r):\n return 1\n c = [0 for i in range(r + 1)]\n c[0] = 1\n for i in range(1, n + 1):\n j = min(i, r)\n ... | {
"type": "exact",
"value": "1",
"tests": []
} | train |
reason2-missing_cells-041 | reasoning | ru | Original | CC0-1.0 | reason2-missing_cells | workshop_missing_cells | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В таблице учёта столбцы идут в порядке E, G, T. После вертикальной черты указан итог строки. Строки: R11: 15 / 2 / 6 | 23; R1: ? / 9 / 15 | 37; R8: 8 / 7 / 14 | 29; R7: ? / ? / 4 | 19; R2: 10 / 11 / 15 | 36. Итоги столбцов: E=48, G=42, T=54. Какое число скрыто в строке R7, стол... | {
"type": "number",
"value": "2",
"tests": []
} | train |
wiki-read-en-c64f011a3ef8650a454c | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-bb3c78a5ebceae972f96ce | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--77184405967689071-6 (Apache-2.0). Wikipedia contributors, “Orange juice” (https://en.wikipedia.org/wiki/Orange_juice), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Orange juice\n\nA cup serving of raw, fresh orange juice, amounting to 248 grams or 8 ounces, has 124mg of vitamin C (>100% RDI). It has 20.8g of sugars, 112Calories and almost 26 grams of carbohydrates.It also supplies potassium, thiamin, and folate.\n\nWhich value is expresse... | {
"type": "exact",
"value": "100%",
"tests": []
} | train |
algpy-3f03c4c38d8f664f-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-3f03c4c38d8f664f | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/minimum_cost_path.py#minimum_cost_path; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(matrix):\n for i in range(1, len(matrix[0])):\n matrix[0][i] ... | {
"type": "exact",
"value": "A: 6",
"tests": []
} | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.