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-order_count-051 | reasoning | ru | Original | CC0-1.0 | reason2-order_count | workshop_order_count | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Экспонаты F, C, L, G, W, S выносят по одному, каждый ровно раз. Правило X→Y требует вынести X раньше Y. Правила: L→G, G→W, L→W, C→L, G→S. Сколько полных порядков допускают эти условия?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ."
},
{
"role": "as... | {
"type": "number",
"value": "12",
"tests": []
} | train |
wiki-read-ru-94efa3b433a100cd8d21 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-a16e3ea4276f79c2b8cc55 | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-9013419343249718941-4 (Apache-2.0). Wikipedia contributors, “Крымское ханство” (https://ru.wikipedia.org/wiki/%D0%9A%D1%80%D1%8B%D0%BC%D1%81%D0%BA%D0%BE%D0%B5_%D1%85%D0%B0%D0%BD%D1%81%D1%82%D0%B2%D0%BE), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and re... | [
{
"role": "user",
"content": "Крымское ханство\n\nВ ордынский период верховными правителями Крыма были ханы Золотой Орды, но непосредственное управление осуществляли их наместники — эмиры. Первым формально признанным властителем в Крыму считается Аран-Тимур, племянник Бату-хана, получивший эту область от Ме... | {
"type": "exact",
"value": "но непосредственное управление осуществляли их наместники — эмиры",
"tests": []
} | train |
algpy-5d84d52ea882ea31-trace | code | en | TheAlgorithms/Python | MIT | algpy-5d84d52ea882ea31 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/z_function.py#z_function; adapted exercises | [
{
"role": "user",
"content": "```python\ndef go_next(i, z_result, s):\n return i + z_result[i] < len(s) and s[z_result[i]] == s[i + z_result[i]]\n\ndef compute(input_str):\n z_result = [0 for i in range(len(input_str))]\n left_pointer, right_pointer = (0, 0)\n for i in range(1, len(input_str)):\... | {
"type": "exact",
"value": "[0, 3, 2, 1]",
"tests": []
} | train |
wiki-read-en-7c1430160365c7caea2b | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-a88bfce2e9b290381d07c9 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--6310424936598808534-0 (Apache-2.0). Wikipedia contributors, “Michalis Kouinelis” (https://en.wikipedia.org/wiki/Michalis_Kouinelis), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Michalis Kouinelis\n\nMichalis Kouinelis (Greek: Μιχάλης Κουϊνέλης, born 22 March 1979 in Alexandroupoli, Greece) also known as Methysos or Meth is a Greek hip hop singer, member of the hip hop group, Stavento.\n\nFind the full calendar date whose month is spelled out. Write it... | {
"type": "exact",
"value": "1979-03-22",
"tests": []
} | train |
algpy-13b2da8524323118-trace | code | ru | TheAlgorithms/Python | MIT | algpy-13b2da8524323118 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/endianness.py#swap_endianness_32; adapted exercises | [
{
"role": "user",
"content": "```python\ndef swap_endianness_32(value):\n if value < 0 or value > 4294967295:\n msg = f'value must be between 0 and {4294967295}'\n raise ValueError(msg)\n return (value & 255) << 24 | (value & 65280) << 8 | (value & 16711680) >> 8 | (value & 4278190080) >... | {
"type": "exact",
"value": "4294967295",
"tests": []
} | train |
reason2-pareto-003 | 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 (4, 41); V (21, 47); R (12, 33); L (7, 62); A (19, 39); B (23, 43); T (20, 32); C (18, 66); M (5, 38). Discard any option if another is both faster and cheaper. Give the surviving codes alphabetically, separated by spaces.\... | {
"type": "exact",
"value": "G M R T",
"tests": []
} | train |
wiki-read-en-2e7d8856412b8e958a52 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-4ec7c53222c8a758c722e2 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-6709965572011788128-4 (Apache-2.0). Wikipedia contributors, “SQL” (https://en.wikipedia.org/wiki/SQL), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "SQL\n\nSQL was initially developed at IBM by Donald D. Chamberlin and Raymond F. Boyce after learning about the relational model from Ted Codd in the early 1970s. This version, initially called SEQUEL (Structured English Query Language), was designed to manipulate and retrieve ... | {
"type": "exact",
"value": "Structured English Query Language",
"tests": []
} | train |
algpy-ceb9c9aa4f284715-change-impact | code | ru | TheAlgorithms/Python | MIT | algpy-ceb9c9aa4f284715 | change-impact | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, matrix/kronecker_product.py#is_2d; adapted exercises | [
{
"role": "user",
"content": "В показанном коде строку `return all(isinstance(matrix, list) and (isinstance(i, list) for i in matrix))` заменяют на `return any(isinstance(matrix, list) and (isinstance(i, list) for i in matrix))`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объ... | {
"type": "exact",
"value": "B",
"tests": []
} | train |
algpy-27800ed39d75373e-check-assertions | code | en | TheAlgorithms/Python | MIT | algpy-27800ed39d75373e | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/modular_division.py#extended_gcd; adapted exercises | [
{
"role": "user",
"content": "Exactly one test misstates what this implementation returns. Identify it and compute the correct result. End with the letter and the corrected Python repr, for example A: 42.\n```python\ndef compute(a, b):\n assert a >= 0\n assert b >= 0\n if b == 0:\n d, x, y =... | {
"type": "exact",
"value": "A: (2, -1, 2)",
"tests": []
} | train |
reason2-ballot_points-053 | reasoning | en | Original | CC0-1.0 | reason2-ballot_points | workshop_ballot_points | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Jurors rank designs R, G, N. Positions from best to worst earn 2, 1, 0 points. Ballot groups, written as count × ranking from best to worst: 5 × G>N>R; 2 × R>N>G; 6 × N>G>R; 8 × R>G>N; 5 × G>R>N. Which design earns the most points?\nBriefly justify your result, then put the ans... | {
"type": "exact",
"value": "G",
"tests": []
} | train |
reason2-connected_groups-068 | reasoning | ru | Original | CC0-1.0 | reason2-connected_groups | workshop_connected_groups | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Сначала у каждого кода из списка Y, U, K, N, V, J, F, W, H, B, P свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: H–N, V–P, P–W, F–V, P–B, B–H, F–N, B–K, P–H, K–P, W–N, K–Y, N–B, B–V, Y–F, N–P, Y–V, U–J. ... | {
"type": "number",
"value": "11",
"tests": []
} | train |
reason2-line_breaks-054 | 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 8, 2, 6, 8, 3, 3, 5, 6, 5, 8, in the given order. Each line holds 13 characters, with one space between adjacent words. Words cannot be split or reordered. What is the fewest lines needed?\nShow a short check. Give the final answer on a separ... | {
"type": "number",
"value": "6",
"tests": []
} | train |
reason2-event_selection-041 | reasoning | ru | Original | CC0-1.0 | reason2-event_selection | workshop_event_selection | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: W 16–23; J 8–14; F 8–11; D 2–8; V 12–17; M 13–16; U 12–18; Z 16–18. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nКратко обоснуй ответ и... | {
"type": "number",
"value": "4",
"tests": []
} | train |
wiki-read-en-81b514477cb9a2fe3967 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-eaa0e2e1603dd5e3d95f64 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-4885670616739077359-0 (Apache-2.0). Wikipedia contributors, “Demographics of New York City” (https://en.wikipedia.org/wiki/Demographics_of_New_York_City), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Demographics of New York City\n\nNew York City's demographics show that it is a large and ethnically diverse metropolis. It is the largest city in the United States with a long history of international immigration. New York City was home to nearly 8.5 million people in 2014, ac... | {
"type": "exact",
"value": "40%",
"tests": []
} | train |
reason2-order_count-024 | reasoning | ru | Original | CC0-1.0 | reason2-order_count | workshop_order_count | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Экспонаты H, A, G, V, W, X выносят по одному, каждый ровно раз. Правило X→Y требует вынести X раньше Y. Правила: G→V, G→W, A→G, H→G, W→X. Сколько полных порядков допускают эти условия?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ."
},
{
"role": "as... | {
"type": "number",
"value": "6",
"tests": []
} | train |
wiki-read-en-a4cf0692ac3aad1114e8 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-c2640bfe880951ea8a5371 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-20137945925574011-0 (Apache-2.0). Wikipedia contributors, “Wolfgang Ketterle” (https://en.wikipedia.org/wiki/Wolfgang_Ketterle), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Wolfgang Ketterle\n\nWolfgang Ketterle (born 21 October 1957) is a German physicist and professor of physics at the Massachusetts Institute of Technology (MIT). His research has focused on experiments that trap and cool atoms to temperatures close to absolute zero, and he led o... | {
"type": "exact",
"value": "1957-10-21",
"tests": []
} | train |
wiki-read-en-c672b2257c1c4a4a384e | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-63f9eb6a9d40a5cffb33c2 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7978443090510481624-1 (Apache-2.0). Wikipedia contributors, “Swahili language” (https://en.wikipedia.org/wiki/Swahili_language), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Swahili language\n\nThe exact number of Swahili speakers, be it native or second-language speakers, is unknown and a matter of debate. Various estimates have been put forward and they vary widely, from 50 million to over 100 million. Swahili serves as a national language of fou... | {
"type": "exact",
"value": "Shimaore",
"tests": []
} | train |
wiki-read-ru-d56f984cb30af8801335 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-d0126e93cff44e2d36d005 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--4356651680635475026-5 (Apache-2.0). Wikipedia contributors, “Жуковский (город)” (https://ru.wikipedia.org/wiki/%D0%96%D1%83%D0%BA%D0%BE%D0%B2%D1%81%D0%BA%D0%B8%D0%B9_(%D0%B3%D0%BE%D1%80%D0%BE%D0%B4)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and refe... | [
{
"role": "user",
"content": "Жуковский (город)\n\nВ 1938 году посёлку было присвоено имя донбасского шахтёра Алексея Стаханова. В 1940 году шеф-пилот ЦАГИ Михаил Громов представил проект Лётно-исследовательского института — к тому времени уже назрела необходимость в совмещении теоретических разработок и лё... | {
"type": "exact",
"value": "1947-04-23",
"tests": []
} | train |
wiki-read-ru-e40594ddff0e11b547e4 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-9968d8a6f3562200eef44e | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--1784828762275421901-1 (Apache-2.0). Wikipedia contributors, “Мадагаскар 3” (https://ru.wikipedia.org/wiki/%D0%9C%D0%B0%D0%B4%D0%B0%D0%B3%D0%B0%D1%81%D0%BA%D0%B0%D1%80_3), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New ... | [
{
"role": "user",
"content": "Мадагаскар 3\n\nМультфильм продолжает повествование о приключениях антропоморфных животных — льва Алекса, зебры Марти, жирафа Мелмана и гиппопотама Глории — с их попытками вернуться в родной дом — Зоопарк Центрального парка Нью-Йорка. На своём пути они встречают опасного против... | {
"type": "exact",
"value": "который держит свой путь через всю Европу и помогают его артистам в постановке одного из самых восхитительных цирковых представлений в мире",
"tests": []
} | train |
reason2-light_piece-017 | reasoning | ru | Original | CC0-1.0 | reason2-light_piece | workshop_light_piece | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Детали V, M, F, D, N, Z, X должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): Z+X+M < N+D+F; M+V+X < Z+N+F; Z+M+F > D+X+V. Какая деталь легче?\nПокажи короткую проверку, а в конце на о... | {
"type": "exact",
"value": "X",
"tests": []
} | train |
wiki-read-ru-c8078958edaa3509b013 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-732ead207851a28811d755 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--9066239901517045205-70 (Apache-2.0). Wikipedia contributors, “Дания” (https://ru.wikipedia.org/wiki/%D0%94%D0%B0%D0%BD%D0%B8%D1%8F), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Дания\n\nВ докладе за 2009 год аналитики европейского статистического агентства «Eurostat» самой дорогой страной называли Данию, жизнь в которой обходилась на 41 % дороже, чем в среднем в Европе.\n\nКакое значение записано цифрами в процентах? Выпиши только число и единицу изме... | {
"type": "exact",
"value": "41 %",
"tests": []
} | train |
reason2-bottleneck-061 | reasoning | ru | Original | CC0-1.0 | reason2-bottleneck | workshop_bottleneck | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Двусторонние конвейеры допускают коробки шириной не более указанной (см): H–Z=17; R–Z=13; B–A=6; A–W=10; X–A=14; W–R=6; X–W=10; B–X=8; A–R=10; R–H=10. Нужно перевезти коробку из B в Z, не поворачивая её. Какова наибольшая допустимая ширина?\nПриведи ход решения в нескольких фра... | {
"type": "number",
"value": "8",
"tests": []
} | train |
wiki-read-ru-33dfdc7d57bb13832e66 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-d8a3d7edb00fd74cd4bbc9 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--3279815644440910279-0 (Apache-2.0). Wikipedia contributors, “Железная клетка” (https://ru.wikipedia.org/wiki/%D0%96%D0%B5%D0%BB%D0%B5%D0%B7%D0%BD%D0%B0%D1%8F_%D0%BA%D0%BB%D0%B5%D1%82%D0%BA%D0%B0), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and referenc... | [
{
"role": "user",
"content": "Железная клетка\n\nЖелезная клетка — социологический термин, впервые использованный Максом Вебером и обозначающий возрастающую бюрократизацию и рационализацию общества, в частности в странах Западного капитализма. «Железная клетка» запирает индивида в бюрократической системе, о... | {
"type": "exact",
"value": "социологический термин, впервые использованный Максом Вебером и обозначающий возрастающую бюрократизацию и рационализацию общества, в частности в странах Западного капитализма",
"tests": []
} | train |
reason2-event_selection-058 | reasoning | ru | Original | CC0-1.0 | reason2-event_selection | workshop_event_selection | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: B 8–10; X 13–17; A 15–21; Z 7–15; G 18–21; D 18–20; K 1–7. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nПокажи короткую проверку, а в к... | {
"type": "number",
"value": "4",
"tests": []
} | train |
wiki-read-ru-d6f9aa7b8c925075cf87 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-422a2c0b89578857fb37c3 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-1843791731549639708-0 (Apache-2.0). Wikipedia contributors, “Двенадцать стульев” (https://ru.wikipedia.org/wiki/%D0%94%D0%B2%D0%B5%D0%BD%D0%B0%D0%B4%D1%86%D0%B0%D1%82%D1%8C_%D1%81%D1%82%D1%83%D0%BB%D1%8C%D0%B5%D0%B2), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whi... | [
{
"role": "user",
"content": "Двенадцать стульев\n\n«Двена́дцать сту́льев» — роман Ильи Ильфа и Евгения Петрова, написанный в 1927 году и являющийся первой совместной работой соавторов. В 1928 году опубликован в художественно-литературном журнале «Тридцать дней» (№ 1—7); в том же году издан отдельной книгой... | {
"type": "exact",
"value": "роман Ильи Ильфа и Евгения Петрова, написанный в 1927 году и являющийся первой совместной работой соавторов",
"tests": []
} | train |
wiki-read-en-b4d0faeabd7ad4bffa3e | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-7083a7560564b2c9c6879e | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-784668160899350406-0 (Apache-2.0). Wikipedia contributors, “Crash of the Titans” (https://en.wikipedia.org/wiki/Crash_of_the_Titans), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Crash of the Titans\n\nCrash of the Titans is a platform game developed by Radical Entertainment and published by Vivendi Games for the PlayStation 2, PlayStation Portable (ported by SuperVillain Studios), Wii and Xbox 360. The Game Boy Advance and Nintendo DS versions of the g... | {
"type": "exact",
"value": "a platform game developed by Radical Entertainment and published by Vivendi Games for the PlayStation 2, PlayStation Portable (ported by SuperVillain Studios), Wii and Xbox 360",
"tests": []
} | train |
math-verified-spaced_seats-006 | math | en | Original | CC0-1.0 | math-verified-spaced_seats | verified_math_spaced_seats | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "A row is numbered 1 through 13. Seat 10 is closed. How many sets of exactly 3 available seats can be chosen so that no two chosen numbers are consecutive? The order of selection does not matter.\nGive the exact number on the last line; use a reduced fraction for a noninteger an... | {
"type": "number",
"value": "128",
"tests": []
} | train |
reason2-bottleneck-017 | reasoning | ru | Original | CC0-1.0 | reason2-bottleneck | workshop_bottleneck | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Двусторонние конвейеры допускают коробки шириной не более указанной (см): B–Z=14; U–L=15; P–Z=12; U–B=16; Z–S=12; L–P=15; S–F=13; B–L=9; L–Z=15; B–S=9. Нужно перевезти коробку из U в F, не поворачивая её. Какова наибольшая допустимая ширина?\nПриведи ход решения в нескольких фр... | {
"type": "number",
"value": "12",
"tests": []
} | train |
wiki-read-en-a894aa77120b9894fa22 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-b925a6f1809e34a5669a11 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-1554019318566974271-1 (Apache-2.0). Wikipedia contributors, “Caspian Sea” (https://en.wikipedia.org/wiki/Caspian_Sea), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Caspian Sea\n\nThe wide and endorheic Caspian Sea has a north–south orientation and its main freshwater inflow, the Volga River, enters at the shallow north end. Two deep basins occupy its central and southern areas. These facts lead to horizontal differences in temperature, sa... | {
"type": "exact",
"value": "27 meters",
"tests": []
} | train |
math-verified-rounded_scales-027 | math | ru | Original | CC0-1.0 | math-verified-rounded_scales | verified_math_rounded_scales | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Длина детали — целое число миллиметров. Один прибор округляет длину до ближайшего числа, кратного 16 мм, другой — до ближайшего числа, кратного 18 мм. Ровно посередине оба выбирают большее значение. Приборы показали соответственно 64 и 72 мм. Сколько целых значений длины соглас... | {
"type": "number",
"value": "9",
"tests": []
} | train |
math-verified-stock-027 | math | en | Original | CC0-1.0 | math-verified-stock | verified_math_stock | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "A warehouse shipped 1/2 of its boxes, received 15 more, then shipped 1/5 of its new stock. It ended with 40 boxes. How many boxes were there before the first shipment?\nGive the exact number on the last line; use a reduced fraction for a noninteger answer."
},
{
"role":... | {
"type": "number",
"value": "70",
"tests": []
} | train |
algpy-520b2999a42751f1-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-520b2999a42751f1 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/arc_length.py#arc_length; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\nfrom math import pi\n\ndef compute(angle, radius):\n return 2 * pi * radius * (a... | {
"type": "exact",
"value": "B: 3.926991",
"tests": []
} | train |
algpy-b910aa39df991842-trace | code | ru | TheAlgorithms/Python | MIT | algpy-b910aa39df991842 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/arrays/equilibrium_index_in_array.py#equilibrium_index; adapted exercises | [
{
"role": "user",
"content": "```python\ndef equilibrium_index(arr):\n total_sum = sum(arr)\n left_sum = 0\n for i, value in enumerate(arr):\n total_sum -= value\n if left_sum == total_sum:\n return i\n left_sum += value\n return -1\n```\nЧто вернёт выражение equi... | {
"type": "exact",
"value": "3",
"tests": []
} | train |
wiki-read-ru-975f964cb066e28c0288 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-f88083fdd42e2f939c296d | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-5001431521231387192-1 (Apache-2.0). Wikipedia contributors, “Миссисипи” (https://ru.wikipedia.org/wiki/%D0%9C%D0%B8%D1%81%D1%81%D0%B8%D1%81%D0%B8%D0%BF%D0%B8), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exer... | [
{
"role": "user",
"content": "Миссисипи\n\nИстоком Миссисипи считается либо ручей Николетт-Крик, либо озеро Айтаска, в которое он впадает. Исток расположен в штате Миннесота на высоте примерно 530 м над уровнем моря. Река в основном течёт в южном направлении и достигает длины в 3770 километров, заканчиваясь... | {
"type": "exact",
"value": "3770 километров",
"tests": []
} | train |
reason2-motif_growth-016 | reasoning | en | Original | CC0-1.0 | reason2-motif_growth | workshop_motif_growth | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A pattern starts as WDW. During each pass, replace every current symbol simultaneously using W→DGG; G→DWW; D→W. Newly produced symbols wait for the next pass. After 3 passes, how many G symbols are there?\nExplain in a few sentences and use the final line for the answer alone."... | {
"type": "number",
"value": "20",
"tests": []
} | train |
reason2-pareto-024 | reasoning | ru | Original | CC0-1.0 | reason2-pareto | workshop_pareto | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для печати плаката доступны заказы (дни, цена): K (12, 51); E (20, 70); L (21, 27); J (16, 16); W (7, 41); M (9, 37). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядке через пробел.\nКратко обоснуй отв... | {
"type": "exact",
"value": "J M W",
"tests": []
} | train |
algpy-0f8e235b0d0430a2-trace | code | ru | TheAlgorithms/Python | MIT | algpy-0f8e235b0d0430a2 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/lucas_lehmer_primality_test.py#lucas_lehmer_test; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(p):\n if p < 2:\n raise ValueError('p should not be less than 2!')\n if p == 2:\n return True\n s = 4\n m = (1 << p) - 1\n for _ in range(p - 2):\n s = (s * s - 2) % m\n return s == 0\n```\nЧто вернёт выражение compu... | {
"type": "exact",
"value": "True",
"tests": []
} | train |
wiki-read-en-6f63adacdc8d13ac9773 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-149355732ca5368f6f1242 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-715906506601201921-9 (Apache-2.0). Wikipedia contributors, “Varieties of Arabic” (https://en.wikipedia.org/wiki/Varieties_of_Arabic), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Varieties of Arabic\n\nIn this case, /fiː/ is most likely to be used as it is not associated with a particular region and is the closest to a dialectical middle ground for this group of speakers. Moreover, given the prevalence of movies and TV shows in Egyptian Arabic, the spea... | {
"type": "exact",
"value": "yakūn, fīhi, kā'in respectively",
"tests": []
} | train |
reason2-balanced_load-029 | reasoning | ru | Original | CC0-1.0 | reason2-balanced_load | workshop_balanced_load | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Две тележки должны увезти все ящики без деления содержимого. Масса каждого ящика: U=14, F=22, K=8, A=10, H=18. Какой наименьшей разницы масс между тележками можно добиться?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ."
},
{
"role": "assistant",
... | {
"type": "number",
"value": "0",
"tests": []
} | train |
reason2-rotate_grid-062 | reasoning | ru | Original | CC0-1.0 | reason2-rotate_grid | workshop_rotate_grid | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Исходные строки табло сверху вниз: E D G / F Y K / B L J / U M N. Выполни циклические сдвиги по порядку: строка 3 на 2 вправо; столбец 2 на 3 вниз; строка 3 на 1 вправо; столбец 2 на 1 вниз. Какой символ теперь в строке 1, столбце 2? Нумерация с единицы.\nПриведи ход решения в ... | {
"type": "exact",
"value": "D",
"tests": []
} | train |
reason2-line_breaks-026 | 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 9, 3, 7, 8, 6, 6, 7, 6, in the given order. Each line holds 18 characters, with one space between adjacent words. Words cannot be split or reordered. What is the fewest lines needed?\nShow a short check. Give the final answer on a separate li... | {
"type": "number",
"value": "4",
"tests": []
} | train |
reason2-frequency_median-017 | reasoning | ru | Original | CC0-1.0 | reason2-frequency_median | workshop_frequency_median | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В журнале длительности занятий записаны парами «минуты × число занятий»: 35×10; 6×7; 12×7; 9×7. Какова медианная длительность одного занятия?\nПриведи ход решения в нескольких фразах. На последней строке оставь только ответ."
},
{
"role": "assistant",
"content": "Об... | {
"type": "number",
"value": "12",
"tests": []
} | train |
algpy-923a6b8f58bc32c5-trace | code | en | TheAlgorithms/Python | MIT | algpy-923a6b8f58bc32c5 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, scheduling/first_come_first_served.py#calculate_average_waiting_time; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(waiting_times):\n return sum(waiting_times) / len(waiting_times)\n```\nWhat does round(compute([1, 5, 8, 12]), 6) return? Give the Python repr of the value."
},
{
"role": "assistant",
"content": "6.5"
}
] | {
"type": "exact",
"value": "6.5",
"tests": []
} | train |
reason2-bottleneck-036 | reasoning | ru | Original | CC0-1.0 | reason2-bottleneck | workshop_bottleneck | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Двусторонние конвейеры допускают коробки шириной не более указанной (см): X–D=8; Z–X=5; N–Z=6; U–N=5; D–P=14; U–L=10; U–X=18; L–N=12. Нужно перевезти коробку из U в P, не поворачивая её. Какова наибольшая допустимая ширина?\nПриведи ход решения в нескольких фразах. На последней... | {
"type": "number",
"value": "8",
"tests": []
} | train |
algpy-378e2212ee33945d-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-378e2212ee33945d | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, boolean_algebra/multiplexer.py#mux; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(input0, input1, select):\n if all((i in (0, 1) for i in (input0, inp... | {
"type": "exact",
"value": "A: 0",
"tests": []
} | train |
wiki-read-en-f6d8b4c7278fc6c877de | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-05b76e53f793eceba4cb1e | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-4735660369899304013-0 (Apache-2.0). Wikipedia contributors, “Pergamon” (https://en.wikipedia.org/wiki/Pergamon), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Pergamon\n\nPergamon (/ˈpɜːrɡəmən/ or /ˈpɜːrɡəmɒn/), Pergamos or Pergamum (/ˈpɜːrɡəməm/) (Ancient Greek: τὸ Πέργαμον or ἡ Πέργαμος), was a rich and powerful ancient Greek city in Aeolis. It is located 26 kilometres (16mi) from the modern coastline of the Aegean Sea on a promont... | {
"type": "exact",
"value": "26 kilometres",
"tests": []
} | train |
math-verified-stock-022 | math | ru | Original | CC0-1.0 | math-verified-stock | verified_math_stock | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Утром со склада отгрузили 1/8 всех коробок. Затем привезли ещё 55 коробок и отгрузили 1/5 нового запаса. Остаток к вечеру — 296 коробок. Сколько коробок было до первой отгрузки?\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью."
},
{
"role"... | {
"type": "number",
"value": "360",
"tests": []
} | train |
algpy-b516f064e4931598-trace | code | ru | TheAlgorithms/Python | MIT | algpy-b516f064e4931598 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, searches/sentinel_linear_search.py#sentinel_linear_search; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(sequence, target):\n sequence.append(target)\n index = 0\n while sequence[index] != target:\n index += 1\n sequence.pop()\n if index == len(sequence):\n return None\n return index\n```\nЧто вернёт выражение compute([0, 5, 7... | {
"type": "exact",
"value": "1",
"tests": []
} | train |
reason2-order_count-009 | reasoning | ru | Original | CC0-1.0 | reason2-order_count | workshop_order_count | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Экспонаты A, Y, Z, M, H, X выносят по одному, каждый ровно раз. Правило X→Y требует вынести X раньше Y. Правила: Y→M, Z→M, A→H, A→Y, Y→Z. Сколько полных порядков допускают эти условия?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ."
},
{
"role": "as... | {
"type": "number",
"value": "24",
"tests": []
} | train |
reason2-rotate_grid-014 | reasoning | ru | Original | CC0-1.0 | reason2-rotate_grid | workshop_rotate_grid | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Исходные строки табло сверху вниз: Y N W / X Z E / C B U / G M H. Выполни циклические сдвиги по порядку: столбец 2 на 2 вниз; строка 1 на 2 вправо; столбец 1 на 3 вниз; строка 3 на 2 вправо; столбец 1 на 2 вниз. Какой символ теперь в строке 4, столбце 1? Нумерация с единицы.\nП... | {
"type": "exact",
"value": "C",
"tests": []
} | train |
wiki-read-en-98e763601aba2aff5b58 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-2ff2ab83e146e011762a90 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--2448003439765515643-7 (Apache-2.0). Wikipedia contributors, “Halley's Comet” (https://en.wikipedia.org/wiki/Halley%27s_Comet), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Halley's Comet\n\nHalley's prediction of the comet's return proved to be correct, although it was not seen until 25 December 1758, by Johann Georg Palitzsch, a German farmer and amateur astronomer. It did not pass through its perihelion until 13 March 1759, the attraction of Ju... | {
"type": "exact",
"value": "with a one-month error to 13 April",
"tests": []
} | train |
algpy-6feda1400a283391-trace | code | en | TheAlgorithms/Python | MIT | algpy-6feda1400a283391 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, matrix/matrix_operation.py#permanent; adapted exercises | [
{
"role": "user",
"content": "```python\ndef minor(matrix, row, column):\n minor = matrix[:row] + matrix[row + 1:]\n return [row[:column] + row[column + 1:] for row in minor]\n\ndef compute(matrix):\n if len(matrix) == 1:\n return matrix[0][0]\n return sum((x * compute(minor(matrix, 0, i)... | {
"type": "exact",
"value": "13.5",
"tests": []
} | train |
reason2-fair_slots-056 | reasoning | ru | Original | CC0-1.0 | reason2-fair_slots | workshop_fair_slots | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Клуб делит часы студии по одному. Веса секций: K=33, P=25, S=24, Y=13. Следующий час получает секция с наибольшим отношением «вес / (1 + число уже выделенных часов)». При равенстве выбирают первый код по алфавиту. Какой секции достанется час номер 4, если сначала ни у кого нет ... | {
"type": "exact",
"value": "K",
"tests": []
} | train |
wiki-read-en-627496a57a200d4a260c | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-852231e8743f843036c112 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--6788789607631263764-0 (Apache-2.0). Wikipedia contributors, “Nitrogen cycle” (https://en.wikipedia.org/wiki/Nitrogen_cycle), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Nitrogen cycle\n\nThe nitrogen cycle is the biogeochemical cycle by which nitrogen is converted into multiple chemical forms as it circulates among atmosphere, terrestrial, and marine ecosystems. The conversion of nitrogen can be carried out through both biological and physical... | {
"type": "exact",
"value": "78%",
"tests": []
} | train |
reason2-balanced_load-043 | reasoning | en | Original | CC0-1.0 | reason2-balanced_load | workshop_balanced_load | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Two carts must carry all crates, with each crate kept intact. Crate weights: P=30, S=28, W=24, F=22, J=12. What is the smallest possible difference between the two cart loads?\nExplain in a few sentences and use the final line for the answer alone."
},
{
"role": "assist... | {
"type": "number",
"value": "0",
"tests": []
} | train |
wiki-read-ru-7e564e11f6fd48b88222 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-fe6e5362067f06a7cf0b39 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--5483377763062166054-3 (Apache-2.0). Wikipedia contributors, “Луково (Брестская область)” (https://ru.wikipedia.org/wiki/%D0%9B%D1%83%D0%BA%D0%BE%D0%B2%D0%BE_(%D0%91%D1%80%D0%B5%D1%81%D1%82%D1%81%D0%BA%D0%B0%D1%8F_%D0%BE%D0%B1%D0%BB%D0%B0%D1%81%D1%82%D1%8C)), snapsh... | [
{
"role": "user",
"content": "Луково (Брестская область)\n\nСогласно письменных источников деревня Луково Малоритского района известна с XVI века. Тогда это было село Лукое Ляховского войтовста Полесской волости Берестейского повета Великого княжества Литовского. Полесская волость почти соответствовала терр... | {
"type": "exact",
"value": "ключа",
"tests": []
} | train |
wiki-read-ru-58ad5941a8cfdc473a04 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-11113b6c2c43c9d94863eb | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--5776643553754006628-1 (Apache-2.0). Wikipedia contributors, “Юсуповы” (https://ru.wikipedia.org/wiki/%D0%AE%D1%81%D1%83%D0%BF%D0%BE%D0%B2%D1%8B), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Юсуповы\n\nЮсуф-мурза, сын Муса-мурзы, как следует из его переписки с Иваном Грозным, считал своим предком Едигея, ходившего с походом на Москву в 1408 году. У него было два сына, Иль-мурза и Ибрагим (Абрей), которых он отправил в 1565 году в Москву, а также дочь — казанская ца... | {
"type": "exact",
"value": "Абрей",
"tests": []
} | train |
algpy-cb228c9b989e2c65-trace | code | en | TheAlgorithms/Python | MIT | algpy-cb228c9b989e2c65 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/count_number_of_one_bits.py#get_set_bits_count_using_brian_kernighans_algorithm; adapted exercises | [
{
"role": "user",
"content": "```python\ndef get_set_bits_count_using_brian_kernighans_algorithm(number):\n if number < 0:\n raise ValueError('the value of input must not be negative')\n result = 0\n while number:\n number &= number - 1\n result += 1\n return result\n```\nWh... | {
"type": "exact",
"value": "0",
"tests": []
} | train |
math-verified-syrup-025 | math | en | Original | CC0-1.0 | math-verified-syrup | verified_math_syrup | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Two syrups contain 40% and 50% sugar by mass. After mixing them, 30 g of water evaporated, with all the sugar retained. The final mixture weighs 230 g, including 124 g of sugar. How many grams of the 50% syrup were used?\nGive the exact number on the last line; use a reduced fr... | {
"type": "number",
"value": "200",
"tests": []
} | train |
reason2-critical_path-068 | reasoning | ru | Original | CC0-1.0 | reason2-critical_path | workshop_critical_path | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Число рабочих мест в мастерской не ограничено. Время выполнения каждого этапа в минутах: C=4, P=7, K=2, X=6, Y=8, U=5. Стрелка X→Y означает, что Y начинает работу после завершения X. Все зависимости: C→Y, K→Y, P→Y, U→Y, C→U, K→U, P→C, K→X, P→X. Время отсчитывают с нуля. Когда р... | {
"type": "number",
"value": "24",
"tests": []
} | train |
reason2-connected_groups-022 | reasoning | ru | Original | CC0-1.0 | reason2-connected_groups | workshop_connected_groups | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Сначала у каждого кода из списка H, M, Z, V, B, A, E, W, G свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: A–E, M–Z, G–A, W–H, B–Z, E–B, V–W. Добавляют связь A–W. Сколько кодов будет в образовавшемся арх... | {
"type": "number",
"value": "9",
"tests": []
} | train |
wiki-read-ru-422030e006d2ab1c8ae2 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-dbd18d968e36766ec1d0b1 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--4776219440880684167-0 (Apache-2.0). Wikipedia contributors, “Потолок Сикстинской капеллы” (https://ru.wikipedia.org/wiki/%D0%9F%D0%BE%D1%82%D0%BE%D0%BB%D0%BE%D0%BA_%D0%A1%D0%B8%D0%BA%D1%81%D1%82%D0%B8%D0%BD%D1%81%D0%BA%D0%BE%D0%B9_%D0%BA%D0%B0%D0%BF%D0%B5%D0%BB%D0%... | [
{
"role": "user",
"content": "Потолок Сикстинской капеллы\n\nПотолок Сикстинской капеллы — роспись потолка Сикстинской капеллы представляет собой известнейший цикл фресок Микеланджело, созданный в 1508—1512 годах и считающийся одним из признанных шедевров искусства Высокого Возрождения. Сложнейшую задачу, п... | {
"type": "exact",
"value": "роспись потолка Сикстинской капеллы представляет собой известнейший цикл фресок Микеланджело, созданный в 1508—1512 годах и считающийся одним из признанных шедевров искусства Высокого Возрождения",
"tests": []
} | train |
gsm-train-917 | math | en | GSM8K | MIT | gsm8k-0dabd5ce468292694759 | word_problem_5_steps | OpenAI (2021), GSM8K, original train row 917 | [
{
"role": "user",
"content": "The age difference between Asaf and Alexander's age is half the total number of pencils Asaf has. The sum of their ages is 140, and Asaf is 50 years old. If Alexander has 60 more pencils than Asaf, calculate the total number of pencils they have together.\nShow a short calculat... | {
"type": "number",
"value": "220",
"tests": []
} | train |
algpy-1dbc9346079e0410-repair | code | en | TheAlgorithms/Python | MIT | algpy-1dbc9346079e0410 | repair | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/arrays/pairs_with_given_sum.py#pairs_with_sum; adapted exercises | [
{
"role": "user",
"content": "Repair this Python function. Count unordered pairs of different indices whose two integer values sum to the target. Repeated values at different indices count separately.\nFor pairs_with_sum([1, -1, 0], -2) it should return 0, but returns 3. Keep the signature.\n```python\nfrom... | {
"type": "code",
"value": "",
"tests": [
"assert pairs_with_sum([], -2) == 0",
"assert pairs_with_sum([], 0) == 0",
"assert pairs_with_sum([], 2) == 0",
"assert pairs_with_sum([], 4) == 0",
"assert pairs_with_sum([0], -2) == 0",
"assert pairs_with_sum([0], 0) == 0",
"assert pairs_with... | train |
reason2-pareto-034 | reasoning | ru | Original | CC0-1.0 | reason2-pareto | workshop_pareto | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для печати плаката доступны заказы (дни, цена): N (26, 63); S (12, 38); A (16, 28); L (25, 46); C (27, 23); R (9, 27); X (18, 73); T (29, 19). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядке через пр... | {
"type": "exact",
"value": "C R T",
"tests": []
} | train |
math-verified-departures-020 | math | en | Original | CC0-1.0 | math-verified-departures | verified_math_departures | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Count whole minutes from when a station opens. Line A first departs at minute 9 and repeats every 10 minutes. Line B first departs at minute 14 and repeats every 35 minutes. What is the earliest simultaneous departure at or after minute 103?\nGive the exact number on the last l... | {
"type": "number",
"value": "119",
"tests": []
} | train |
wiki-read-ru-9394a1e1db207d6c0128 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-27df9ed9a477af0fcfe369 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-3130246171079996449-2 (Apache-2.0). Wikipedia contributors, “BMW” (https://ru.wikipedia.org/wiki/BMW), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "BMW\n\nПромышленная фирма была основана Карлом Фридрихом Раппом в октябре 1916 года, официально компания BMW была зарегистрирована 20 июля 1917 года, но первоначально — как производитель авиационных двигателей, Bayerische Flugzeug-Werke. Округ Мюнхена — Milbertshofen был выбран... | {
"type": "exact",
"value": "1917-07-20",
"tests": []
} | train |
gsm-train-931 | math | en | GSM8K | MIT | gsm8k-043617f7e61a9c2a918a | word_problem_4_steps | OpenAI (2021), GSM8K, original train row 931 | [
{
"role": "user",
"content": "How many apples did two men and three women buy at a certain store if the two men each bought 30 apples, 20 less than the number of apples bought by each woman?\nShow a short calculation. Put the final number alone on the last line."
},
{
"role": "assistant",
"conte... | {
"type": "number",
"value": "210",
"tests": []
} | train |
reason2-light_piece-019 | reasoning | ru | Original | CC0-1.0 | reason2-light_piece | workshop_light_piece | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Детали S, D, P, H, T, G, U, L, V, J, K должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): D+H+P+G+J > S+T+U+V+K; K+G+J = H+P+L; H+D+L = J+V+G; G+K+S+U+V > P+T+L+J+D. Какая деталь легче... | {
"type": "exact",
"value": "T",
"tests": []
} | train |
reason2-missing_cells-057 | reasoning | ru | Original | CC0-1.0 | reason2-missing_cells | workshop_missing_cells | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В таблице учёта столбцы идут в порядке B, D, A. После вертикальной черты указан итог строки. Строки: R5: 11 / 8 / 7 | 26; R3: 12 / ? / ? | 18; R10: 8 / 15 / ? | 37. Итоги столбцов: B=31, D=27, A=23. Какое число скрыто в строке R3, столбце A?\nПриведи ход решения в нескольких фр... | {
"type": "number",
"value": "2",
"tests": []
} | train |
wiki-read-en-6cad9624e56d85a51847 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-d073a2439cf5f2b503d982 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--844560409571392083-0 (Apache-2.0). Wikipedia contributors, “List of Mystery Science Theater 3000 episodes” (https://en.wikipedia.org/wiki/List_of_Mystery_Science_Theater_3000_episodes), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers n... | [
{
"role": "user",
"content": "List of Mystery Science Theater 3000 episodes\n\nMystery Science Theater 3000 (MST3K) is an American television comedy series created by Joel Hodgson and produced by Best Brains, Inc. The show premiered on KTMA (now WUCW) in Minneapolis, Minnesota, on November 24, 1988. The nex... | {
"type": "exact",
"value": "1988-11-24",
"tests": []
} | train |
wiki-read-en-ae1914104a51b661f319 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-4cb4ea25583c25647247ae | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7201797120798278680-3 (Apache-2.0). Wikipedia contributors, “Year” (https://en.wikipedia.org/wiki/Year), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Year\n\nIn astronomy, the Julian year is a unit of time; it is defined as 365.25 days of exactly 86,400 seconds (SI base unit), totalling exactly 31,557,600 seconds in the Julian astronomical year.\n\nWhat parenthetical detail immediately follows “of exactly 86,400 seconds”? Qu... | {
"type": "exact",
"value": "SI base unit",
"tests": []
} | train |
algpy-4f78df4f0c7e5054-trace | code | ru | TheAlgorithms/Python | MIT | algpy-4f78df4f0c7e5054 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/volume.py#vol_cone; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(area_of_base, height):\n if height < 0 or area_of_base < 0:\n raise ValueError('compute() only accepts non-negative values')\n return area_of_base * height / 3.0\n```\nЧто вернёт выражение round(compute(10, 3), 6)? Запиши repr результата Pyth... | {
"type": "exact",
"value": "10.0",
"tests": []
} | train |
algpy-cedfb0f3046977c7-check-assertions | code | en | TheAlgorithms/Python | MIT | algpy-cedfb0f3046977c7 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, matrix/matrix_based_game.py#increment_score; adapted exercises | [
{
"role": "user",
"content": "Exactly one test misstates what this implementation returns. Identify it and compute the correct result. End with the letter and the corrected Python repr, for example A: 42.\n```python\ndef compute(count):\n return int(count * (count + 1) / 2)\n```\n```python\n# A\nassert c... | {
"type": "exact",
"value": "B: 6",
"tests": []
} | train |
wiki-read-en-090464f3f9bf10540378 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-9b7e0881b691967423102f | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--349283359315094596-3 (Apache-2.0). Wikipedia contributors, “Mount Victoria, New South Wales” (https://en.wikipedia.org/wiki/Mount_Victoria%2C_New_South_Wales), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exe... | [
{
"role": "user",
"content": "Mount Victoria, New South Wales\n\nAfter the railway station, marking the termination of the Main Western railway line, was opened in 1869 the town also became known as Mount Victoria. The town's name was officially changed after the first Post Office was built in 1876.\n\nWhic... | {
"type": "exact",
"value": "1869, 1876",
"tests": []
} | train |
reason2-minimum_cover-068 | reasoning | en | Original | CC0-1.0 | reason2-minimum_cover | workshop_minimum_cover | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "The exhibition needs all sample types 1, 2, 3, 4, 5, 6, 9. Available kits and the types they contain: U=1/9; G=5/6; J=4/6; D=1/2/4/9; C=1/2; M=1/3/9; V=1/4/5/6. Duplicate samples are allowed. What is the fewest kits that cover every type?\nBriefly justify your result, then put ... | {
"type": "number",
"value": "3",
"tests": []
} | train |
algpy-56268f3c76fa092e-trace | code | ru | TheAlgorithms/Python | MIT | algpy-56268f3c76fa092e | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/pell_number.py#pell_number_recursive; adapted exercises | [
{
"role": "user",
"content": "```python\ndef pell_number_recursive(subscript):\n if not isinstance(subscript, int):\n raise ValueError('The input must be an integer.')\n if subscript < 0:\n raise ValueError('The input number must be non-negative.')\n if subscript in (0, 1):\n r... | {
"type": "exact",
"value": "1",
"tests": []
} | train |
reason2-light_piece-023 | reasoning | ru | Original | CC0-1.0 | reason2-light_piece | workshop_light_piece | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Детали K, S, E, A, D, Z, V, M должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): S+D+V+A > E+Z+M+K; D+S+Z+E > A+V+M+K; E+Z = K+A. Какая деталь легче?\nКратко обоснуй ответ и запиши сам... | {
"type": "exact",
"value": "M",
"tests": []
} | train |
wiki-read-ru-a2584a767605f30a249b | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-9b51799d428c0d67e564fa | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--5969099525059529361-6 (Apache-2.0). Wikipedia contributors, “Русская диаспора в США” (https://ru.wikipedia.org/wiki/%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B0%D1%8F_%D0%B4%D0%B8%D0%B0%D1%81%D0%BF%D0%BE%D1%80%D0%B0_%D0%B2_%D0%A1%D0%A8%D0%90), snapshot 2019-02-01 (CC-BY-SA... | [
{
"role": "user",
"content": "Русская диаспора в США\n\nВторая волна иммиграции была одной из самых массовых и происходила в 1880-х — 1920-х годах. Большинство (до 95 %) прибывших в этот период составляли евреи, которые подвергались преследованиям и ограничениям в Российской империи (черта оседлости, массов... | {
"type": "exact",
"value": "95 %",
"tests": []
} | train |
reason2-bottleneck-067 | reasoning | ru | Original | CC0-1.0 | reason2-bottleneck | workshop_bottleneck | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Двусторонние конвейеры допускают коробки шириной не более указанной (см): Y–G=3; C–Y=15; C–F=12; F–K=17; K–Y=15; C–G=13; J–C=6. Нужно перевезти коробку из J в G, не поворачивая её. Какова наибольшая допустимая ширина?\nПриведи ход решения в нескольких фразах. На последней строк... | {
"type": "number",
"value": "6",
"tests": []
} | train |
reason2-minimum_cover-050 | reasoning | ru | Original | CC0-1.0 | reason2-minimum_cover | workshop_minimum_cover | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для выставки нужны образцы всех типов 1, 4, 5, 6, 7, 8. Наборы перечислены с типами внутри: K=5; N=4/6/7/8; F=1/7; W=4/5/6/7; U=4/5/6/7; H=5/7; E=8. Дубли допустимы. Какое наименьшее число наборов покроет все типы?\nПокажи короткую проверку, а в конце на отдельной строке дай от... | {
"type": "number",
"value": "3",
"tests": []
} | train |
math-verified-rounded_scales-006 | math | ru | Original | CC0-1.0 | math-verified-rounded_scales | verified_math_rounded_scales | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Длина детали — целое число миллиметров. Один прибор округляет длину до ближайшего числа, кратного 6 мм, другой — до ближайшего числа, кратного 14 мм. Ровно посередине оба выбирают большее значение. Приборы показали соответственно 114 и 112 мм. Сколько целых значений длины согла... | {
"type": "number",
"value": "6",
"tests": []
} | train |
reason2-room_peak-036 | reasoning | en | Original | CC0-1.0 | reason2-room_peak | workshop_room_peak | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Rehearsals each need a room for the following minute intervals: P [11,17); U [4,9); L [13,21); B [2,7); Z [2,6); D [6,8); X [6,11); A [8,10). A room is free at the right endpoint, and all rooms are interchangeable. What is the minimum room count?\nShow a short check. Give the f... | {
"type": "number",
"value": "4",
"tests": []
} | train |
algpy-b2a731bbc2e2ad10-trace | code | ru | TheAlgorithms/Python | MIT | algpy-b2a731bbc2e2ad10 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/climbing_stairs.py#climb_stairs; adapted exercises | [
{
"role": "user",
"content": "```python\ndef climb_stairs(number_of_steps):\n assert isinstance(number_of_steps, int) and number_of_steps > 0, f'number_of_steps needs to be positive integer, your input {number_of_steps}'\n if number_of_steps == 1:\n return 1\n previous, current = (1, 1)\n ... | {
"type": "exact",
"value": "3",
"tests": []
} | train |
reason2-event_selection-011 | 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 H 4–12; Z 3–6; T 9–11; V 5–7; B 2–4; G 18–24; W 8–14; A 2–5. Finishing one at the instant another starts is allowed. What is the maximum count?\nBriefly justify your result,... | {
"type": "number",
"value": "4",
"tests": []
} | train |
gsm-train-2087 | math | en | GSM8K | MIT | gsm8k-6c582046bd78aa7ef7ae | word_problem_7_steps | OpenAI (2021), GSM8K, original train row 2087 | [
{
"role": "user",
"content": "A jewelry store is restocking its shelves. The necklace stand, which can hold 12 necklaces, currently holds 5 necklaces. The ring display, which can hold 30 rings, currently holds 18 rings. The bracelet display, which can hold 15 bracelets, currently holds 8 bracelets. The stor... | {
"type": "number",
"value": "183",
"tests": []
} | train |
wiki-read-ru-0fc7a59796bd94e11708 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-500c40d01da8d3efb5912c | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--646786195817271502-1 (Apache-2.0). Wikipedia contributors, “Ту-154” (https://ru.wikipedia.org/wiki/%D0%A2%D1%83-154), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Ту-154\n\nПервый полёт Ту-154 был выполнен 3 октября 1968 года. Самолёт производился серийно с 1970 по 1998 годы на Куйбышевском авиационном заводе, пережив несколько модернизаций. Темп выпуска достигал пяти единиц в месяц (c 1976 по 1981 годы производилось в среднем более 1 са... | {
"type": "exact",
"value": "1968-10-03",
"tests": []
} | train |
algpy-f722613dca581788-change-impact | code | ru | TheAlgorithms/Python | MIT | algpy-f722613dca581788 | change-impact | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/manacher.py#palindromic_string; adapted exercises | [
{
"role": "user",
"content": "В показанном коде строку `k = 1 if j > right else min(length[left + right - j] // 2, right - j + 1)` заменяют на `k = 1 if j > right else max(length[left + right - j] // 2, right - j + 1)`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и ... | {
"type": "exact",
"value": "A",
"tests": []
} | train |
wiki-read-en-ea5c486f90fd5bb8779e | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-4882df02388877e32d97fa | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--2644654244361385748-0 (Apache-2.0). Wikipedia contributors, “Knitting needle” (https://en.wikipedia.org/wiki/Knitting_needle), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Knitting needle\n\nA knitting needle or knitting pin is a tool in hand-knitting to produce knitted fabrics. They generally have a long shaft and taper at their end, but they are not nearly as sharp as sewing needles. Their purpose is two-fold. The long shaft holds the active (u... | {
"type": "exact",
"value": "a tool in hand-knitting to produce knitted fabrics",
"tests": []
} | train |
wiki-read-ru-9ea9713761877ad1d701 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-a716c82e75cbdbf12fad19 | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-4988506139168423475-4 (Apache-2.0). Wikipedia contributors, “Russell & Company” (https://ru.wikipedia.org/wiki/Russell_%26_Company), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Russell & Company\n\nАктивная торговля между Китаем и США началась в конце XVIII века и на первых порах была сосредоточена вокруг импорта чая из Южного Китая. Главными коммерческими центрами служили Кантон и португальский Макао, где американские торговцы сформировали свои первы... | {
"type": "exact",
"value": "1803, 1818",
"tests": []
} | train |
algpy-5ddb8a68bf9d8e5c-check-assertions | code | en | TheAlgorithms/Python | MIT | algpy-5ddb8a68bf9d8e5c | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, divide_and_conquer/inversions.py#count_inversions_recursive; adapted exercises | [
{
"role": "user",
"content": "Exactly one test misstates what this implementation returns. Identify it and compute the correct result. End with the letter and the corrected Python repr, for example A: 42.\n```python\ndef _count_cross_inversions(p, q):\n r = []\n i = j = num_inversion = 0\n while i ... | {
"type": "exact",
"value": "B: ([1, 1, 2, 4, 4], 4)",
"tests": []
} | train |
gsm-train-5594 | math | en | GSM8K | MIT | gsm8k-1eee9f603a04ea0e914c | word_problem_6_steps | OpenAI (2021), GSM8K, original train row 5594 | [
{
"role": "user",
"content": "A father is building a playset for his son and needs to purchase lumber, nails, and fabric. When he started planning the project, the necessary lumber cost $450, the nails cost $30, and the fabric cost $80. However, recent economic inflation has caused the price of lumber to ... | {
"type": "number",
"value": "97",
"tests": []
} | train |
reason2-frequency_median-011 | reasoning | ru | Original | CC0-1.0 | reason2-frequency_median | workshop_frequency_median | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В журнале длительности занятий записаны парами «минуты × число занятий»: 46×10; 23×4; 10×11; 3×3; 26×9. Какова медианная длительность одного занятия?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ."
},
{
"role": "assistant",
"content": "Общее чис... | {
"type": "number",
"value": "26",
"tests": []
} | train |
reason2-join_catalogs-033 | reasoning | en | Original | CC0-1.0 | reason2-join_catalogs | workshop_join_catalogs | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A catalog maps book codes to shelves: B47=S8, B10=S9, B15=S9, B44=S9, B49=S3, B60=S3, B31=S8, B24=S8. Shelves map to rooms: S3=R, S9=S, S8=T. Loans by book code: B44=17, B49=9, B31=6, B24=15, B10=5, B15=11, B60=2, B47=14. Which room accounts for the most loans?\nBriefly justify... | {
"type": "exact",
"value": "T",
"tests": []
} | train |
algpy-fe3628cecb6670dc-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-fe3628cecb6670dc | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/trailing_zeroes.py#trailing_zeroes; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(num):\n ans = 0\n if num < 0:\n return -1\n if num == 0... | {
"type": "exact",
"value": "A: 3",
"tests": []
} | train |
wiki-read-en-fa22d3c4228076a2b31b | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-bced5807df1c4f3e9c34a6 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--6625218048389396819-1 (Apache-2.0). Wikipedia contributors, “History of the transistor” (https://en.wikipedia.org/wiki/History_of_the_transistor), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "History of the transistor\n\nThe first patent for the field-effect transistor principle was filed in Canada by Austrian-Hungarian physicist Julius Edgar Lilienfeld on October 22, 1925, but Lilienfeld published no research articles about his devices, and his work was ignored by ... | {
"type": "exact",
"value": "1925-10-22",
"tests": []
} | train |
algpy-412c4d5f172fd852-implement | code | en | TheAlgorithms/Python | MIT | algpy-412c4d5f172fd852 | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, divide_and_conquer/power.py#power; adapted exercises | [
{
"role": "user",
"content": "Implement this Python function. Return the first integer raised to the second integer power. Both inputs are nonnegative and are not both zero.\nSignature: def power(a, b):\nExamples:\n```python\nassert power(0, 2) == 0\nassert power(1, 8) == 1\n```"
},
{
"role": "assis... | {
"type": "code",
"value": "",
"tests": [
"assert power(2, 0) == 1",
"assert power(2, 5) == 32",
"assert power(5, 3) == 125",
"assert power(7, 4) == 2401"
]
} | train |
algpy-82244d864ecc4e8e-change-impact | code | ru | TheAlgorithms/Python | MIT | algpy-82244d864ecc4e8e | change-impact | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/egg_dropping.py#egg_dropping; adapted exercises | [
{
"role": "user",
"content": "В показанном коде строку `if eggs == 1:` заменяют на `if eggs != 1:`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и запиши букву в последней строке.\n```python\ndef compute(eggs, floors):\n if floors in (0, 1):\n return floors... | {
"type": "exact",
"value": "B",
"tests": []
} | train |
algpy-2ec6f32acdb1bd63-repair | code | en | TheAlgorithms/Python | MIT | algpy-2ec6f32acdb1bd63 | repair | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/primelib.py#is_prime; adapted exercises | [
{
"role": "user",
"content": "Repair this Python function. For a nonnegative integer, return True exactly when it is prime; 0 and 1 are not prime.\nFor is_prime(1) it should return False, but returns True. Keep the signature.\n```python\nfrom math import sqrt\n\ndef is_prime(number):\n assert isinstance(... | {
"type": "code",
"value": "",
"tests": [
"assert is_prime(0) == False",
"assert is_prime(1) == False",
"assert is_prime(2) == True",
"assert is_prime(3) == True",
"assert is_prime(4) == False",
"assert is_prime(6) == False",
"assert is_prime(9) == False",
"assert is_prime(13) == T... | train |
wiki-read-ru-b3746fa4716d3f89d2bb | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-ca6b519942b575032c850f | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-8485083361126108317-1 (Apache-2.0). Wikipedia contributors, “Камергерский переулок” (https://ru.wikipedia.org/wiki/%D0%9A%D0%B0%D0%BC%D0%B5%D1%80%D0%B3%D0%B5%D1%80%D1%81%D0%BA%D0%B8%D0%B9_%D0%BF%D0%B5%D1%80%D0%B5%D1%83%D0%BB%D0%BE%D0%BA), snapshot 2019-02-01 (CC-BY-... | [
{
"role": "user",
"content": "Камергерский переулок\n\nНа протяжении истории переулок носил несколько названий, пока в конце XIX века не устоялось современное название Камергерский, по жившим здесь чиновникам, имевшим придворное звание камергера. В 1923 году в связи с 25-летним юбилеем находящегося здесь Мо... | {
"type": "exact",
"value": "1923, 1992",
"tests": []
} | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.