Datasets:
conversations listlengths 3 3 | topic stringclasses 2
values | difficulty stringclasses 1
value | language stringclasses 30
values |
|---|---|---|---|
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Пусть \\(x, y, z\\) — положительные числа, причём \\(x+y+z=1\\). Докажите, что\n\\[\n\\frac{x}{x^2+1}+\\frac{y}{y^2+1}+\\frac{z}{z^2+1}\\le \\frac{9}{10}.\n\\]\nНайдите также все случаи, когда достигается ... | math | hard | Russian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Siano \\(a,b,c\\) numeri reali positivi tali che \\(a+b+c=3\\). Dimostrare che\n\\[\n\\frac{a^3}{a^2+ab+b^2}+\\frac{b^3}{b^2+bc+c^2}+\\frac{c^3}{c^2+ca+a^2}\\ge 1\n\\]\ne determinare in quali casi vale l’u... | math | hard | Italian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Nechť \\( f(x)=\\int_{0}^{x} e^{-t^2}\\,dt \\). Určete všechny hodnoty reálného parametru \\( a \\), pro které má rovnice\n\\[\nf(x)=a x\n\\]\nprávě tři různá reálná řešení."
},
{
"from": "gpt",
... | math | hard | Czech |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "فرض کنید \\(a,b,c\\) اعداد حقیقی مثبت باشند و \\(a+b+c=3\\). بیشترین مقدار عبارت زیر را بیابید و ثابت کنید:\n\\[\n\\frac{a}{a^2+b+c}+\\frac{b}{b^2+c+a}+\\frac{c}{c^2+a+b}.\n\\]"
},
{
"from": "gpt",... | math | hard | Persian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "¿Cuál es el valor exacto de la integral \\(\\displaystyle \\int_{0}^{1} \\frac{\\ln(1+x)}{1+x^2}\\,dx\\)?"
},
{
"from": "gpt",
"value": "<think>题:积分。求精确值。\n换元:x=tan t。t:0→π/4。dx/(1+x²)=dt。\n积分=... | math | hard | Spanish |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Katika mfumo wa kuratibu, mduara wenye kituo (0,0) na nusukipenyo 5 unakatwa na mstari ulionyooka unaopita kwenye nukta (7,0). Tafuta eneo la pembetatu kubwa zaidi inayoundwa na nukta mbili za makutano ya ... | math | hard | Swahili |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "设正实数 \\(a,b,c\\) 满足 \\(abc=1\\)。证明:\n\\[\n\\frac{a}{a^2+a+1}+\\frac{b}{b^2+b+1}+\\frac{c}{c^2+c+1}\\le 1.\n\\]"
},
{
"from": "gpt",
"value": "<think>题:正 abc=1。证 Σ a/(a²+a+1)≤1。\n设 a=x/y,b=y/z,c... | math | hard | Simplified Chinese |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "設 \\(x,y,z\\) 為非負實數,且 \\(x+y+z=1\\)。試求\n\\[\n\\sqrt{x^2+xy+y^2}+\\sqrt{y^2+yz+z^2}+\\sqrt{z^2+zx+x^2}\n\\]\n的最大值與最小值,並證明之。"
},
{
"from": "gpt",
"value": "<think>题:S=Σ√(x²+xy+y²),x,y,z≥0,和1。求最大最... | math | hard | Traditional Chinese |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Je dán ostroúhlý trojúhelník \\(ABC\\) s délkami stran \\(AB=13\\), \\(BC=14\\), \\(AC=15\\). Bod \\(P\\) leží uvnitř trojúhelníku tak, že platí\n\\[\n\\angle PAB=\\angle PBC=\\angle PCA=\\omega.\n\\]\nUrč... | math | hard | Czech |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "मान लीजिए \\(a, b, c\\) किसी त्रिभुज की भुजाएँ हैं। सिद्ध कीजिए कि\n\n\\[\n\\frac{a}{b+c-a}+\\frac{b}{c+a-b}+\\frac{c}{a+b-c}\\ge 3\n\\]\n\nऔर समता केवल तब होती है जब त्रिभुज समबाहु हो।"
},
{
"from... | math | hard | Hindi |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Determina tutte le funzioni \\(f: \\mathbb{R} \\to \\mathbb{R}\\) tali che, per ogni \\(x, y \\in \\mathbb{R}\\), risulti\n\\[\nf(x+f(y))=f(x)+y.\n\\]"
},
{
"from": "gpt",
"value": "<think>题:求 ... | math | hard | Italian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "ধরা যাক, ক, খ ও গ বাস্তব সংখ্যা এবং ক + খ + গ = ১, ক-এর বর্গ + খ-এর বর্গ + গ-এর বর্গ = ২, ক-এর ঘন + খ-এর ঘন + গ-এর ঘন = ৩। তবে ক-এর চতুর্থ ঘাত + খ-এর চতুর্থ ঘাত + গ-এর চতুর্থ ঘাত-এর মান নির্ণয় করো।"
},
... | math | hard | Bengali |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Cho ba số thực dương \\(a,b,c\\) thỏa mãn \\(a+b+c=1\\). Chứng minh rằng\n\\[\n\\frac{a}{a+bc}+\\frac{b}{b+ca}+\\frac{c}{c+ab}\\ge \\frac{9}{4}.\n\\]"
},
{
"from": "gpt",
"value": "<think>题:a,b... | math | hard | Vietnamese |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Katika pembetatu \\(ABC\\), \\(AB=13\\), \\(BC=14\\), na \\(AC=15\\). Nukta \\(D\\) iko kwenye \\(BC\\) kwa namna ambayo \\(AD\\) inagawanya pembe \\(A\\) kwa nusu. Tafuta urefu wa \\(AD\\). Onyesha hatua ... | math | hard | Swahili |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "ஒரு முக்கோணத்தின் இரு பக்கங்களின் நீளங்கள் ஐந்து சென்டிமீட்டர் மற்றும் ஏழு சென்டிமீட்டர் ஆகும். அவற்றுக்கு இடைப்பட்ட கோணம் அறுபது பாகை ஆகும். இந்த முக்கோணத்தின் உள்வட்ட ஆரத்திற்கும் சுற்றுவட்ட ஆரத்திற்கும்... | math | hard | Tamil |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Questão: Sejam \\(a\\) e \\(b\\) números inteiros positivos tais que \\(ab+1\\) divide \\(a^2+b^2\\). Demonstre que o quociente \\(\\frac{a^2+b^2}{ab+1}\\) é um quadrado perfeito."
},
{
"from": "gp... | math | hard | Portuguese |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "একটি সমবাহু ত্রিভুজ কখগ-এর অন্তঃস্থ একটি বিন্দু প। বিন্দু প থেকে ক, খ ও গ পর্যন্ত দূরত্ব যথাক্রমে ৩, ৪ ও ৫ একক। ত্রিভুজটির বাহুর দৈর্ঘ্য নির্ণয় করো।"
},
{
"from": "gpt",
"value": "<think>设等边△A... | math | hard | Bengali |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Du får en heltalslista \\(a\\) av längd \\(n\\) (\\(1 \\le n \\le 200\\,000\\)) och två heltal \\(L\\) och \\(R\\) (\\(1 \\le L \\le R \\le 10^9\\)). Du vill dela upp listan i sammanhängande segment så att... | coding | hard | Swedish |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Je krijgt een reeks van \\(n\\) niet-negatieve gehele getallen \\(a_1, a_2, \\ldots, a_n\\) en een niet-negatief geheel getal \\(k\\). Gevraagd: bepaal het aantal aaneengesloten deelreeksen \\(a_i, a_{i+1}... | coding | hard | Dutch |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Problema: Cammino minimo con esattamente K archi\n\nTi viene fornito un grafo orientato e pesato con N nodi, numerati da 1 a N, e M archi. Ogni arco è descritto da una terna (u, v, p), che indica che esist... | coding | hard | Italian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Sejam \\(a,b,c\\) números reais positivos tais que \\(a+b+c=3\\). Prove que\n\\[\n\\frac{a^3}{a^2+ab+b^2}+\\frac{b^3}{b^2+bc+c^2}+\\frac{c^3}{c^2+ca+a^2}\\ge 1,\n\\]\ncom igualdade se, e somente se, \\(a=b... | math | hard | Portuguese |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "모든 양의 실수 \\(a, b, c\\)에 대하여 다음 부등식이 성립함을 증명하시오.\n\n\\[\n\\frac{a^3}{a^2+ab+b^2}+\\frac{b^3}{b^2+bc+c^2}+\\frac{c^3}{c^2+ca+a^2}\\ge \\frac{a+b+c}{3}\n\\]"
},
{
"from": "gpt",
"value": "<think>题... | math | hard | Korean |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Δίνεται ακολουθία \\((a_n)\\) με \\(a_1=1\\) και \\(a_{n+1}=a_n+\\frac{1}{a_n}\\) για κάθε θετικό ακέραιο \\(n\\). Να αποδείξετε ότι η \\(a_n\\) είναι ασυμπτωτικά ισοδύναμη με \\(\\sqrt{2n}\\) και να υπολο... | math | hard | Greek |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Tema: programación. Dificultad: alta.\n\nEstás analizando las lecturas de un sensor que produce una secuencia de \\(n\\) números enteros. Un intervalo continuo \\([l, r]\\) se considera crítico si la difer... | coding | hard | Spanish |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Έστω \\(P(x)\\) μη σταθερό πολυώνυμο με ακέραιους συντελεστές. Να αποδείξετε ότι δεν υπάρχει τέτοιο πολυώνυμο ώστε ο \\(P(n)\\) να είναι πρώτος αριθμός για κάθε θετικό ακέραιο \\(n\\)."
},
{
"from"... | math | hard | Greek |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Let \\(f:\\mathbb{R}\\to\\mathbb{R}\\) be a function such that\n\\[\nf(x+f(y))=f(x)+y\n\\]\nfor all real numbers \\(x\\) and \\(y\\). Determine all functions \\(f\\) with this property."
},
{
"from... | math | hard | English |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "จงหาค่าของ \\(\\displaystyle \\int_{0}^{\\pi/2} \\frac{\\ln(\\sin x)}{1+\\tan^2 x}\\,dx\\)"
},
{
"from": "gpt",
"value": "<think>题:算积分 I=∫_0^{π/2} ln(sin x)/(1+tan^2 x) dx。\n1+tan^2=sec^2。1/(1+... | math | hard | Thai |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "יהיו \\(a_1,a_2,\\ldots,a_{2024}\\) מספרים ממשיים חיוביים המקיימים \n\\[\n\\sum_{i=1}^{2024} a_i = 2024\n\\]\nוגם \n\\[\n\\sum_{i=1}^{2024} a_i^2 = 2025.\n\\]\nמצא את הערך המקסימלי האפשרי של \n\\[\n\\su... | math | hard | Hebrew |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "यदि \\(a, b, c\\) धनात्मक वास्तविक संख्याएँ हैं और \\(a + b + c = 3\\) है, तो सिद्ध कीजिए कि\n\\[\n\\frac{a^2}{a+2b}+\\frac{b^2}{b+2c}+\\frac{c^2}{c+2a}\\ge 1.\n\\]\nसमता कब होती है, यह भी बताइए।"
},
{... | math | hard | Hindi |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Halle todos los números primos \\(p\\) para los cuales existen enteros positivos \\(x,y,z\\) que satisfacen la ecuación \n\\[\nx^2+y^2+z^2=p\\,xyz.\n\\]"
},
{
"from": "gpt",
"value": "<think>题... | math | hard | Spanish |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Dato un grafo orientato e pesato con \\(N\\) nodi e \\(M\\) archi, i cui pesi sono interi non negativi, e due nodi distinti \\(S\\) e \\(T\\), vuoi contare quanti cammini di costo minimo conducono da \\(S\... | coding | hard | Italian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Fie \\(a,b,c\\) numere reale strict pozitive astfel încât \\(abc=1\\). Demonstrați că:\n\\[\n\\frac{a^2}{a^2+ab+b^2}+\\frac{b^2}{b^2+bc+c^2}+\\frac{c^2}{c^2+ca+a^2}\\ge 1.\n\\]\nDeterminați și cazul de ega... | math | hard | Romanian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "יהיו \\(a,b,c\\) מספרים ממשיים חיוביים המקיימים \\(a+b+c=3\\). הוכח כי\n\\[\n\\frac{a}{a^2+bc}+\\frac{b}{b^2+ca}+\\frac{c}{c^2+ab}\\ge \\frac{3}{2}.\n\\]"
},
{
"from": "gpt",
"value": "<think>题... | math | hard | Hebrew |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Bestimmen Sie alle Funktionen \\(f:\\mathbb R\\to\\mathbb R\\), die für alle \\(x,y\\in\\mathbb R\\) die Funktionalgleichung\n\\[\nf(x+f(y))=f(x)+y\n\\]\nerfüllen. Begründen Sie Ihre Antwort vollständig."
... | math | hard | German |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "لتكن الدالة ق المعرفة على مجموعة الأعداد الحقيقية بالعلاقة \nق(س) = س^٣ − ٣س + ١. \nأوجد جميع القيم الحقيقية للعدد ك التي تجعل المعادلة \nق(ق(س)) = ك \nتقبل سبعة حلول حقيقية متمايزة."
},
{
"fro... | math | hard | Arabic |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Wyznacz wszystkie funkcje \\(f:\\mathbb{R}\\to\\mathbb{R}\\) spełniające dla wszystkich \\(x,y\\in\\mathbb{R}\\) równanie\n\\[\nf\\bigl(x+f(y)\\bigr)=f(x)+y.\n\\]"
},
{
"from": "gpt",
"value": ... | math | hard | Polish |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "จงเขียนโปรแกรมเพื่อแก้ปัญหาต่อไปนี้\n\nกำหนดลำดับของจำนวนเต็ม ความยาวหนึ่งจำนวน และค่ามัธยฐานเป้าหมายหนึ่งค่า ให้หาจำนวนช่วงต่อเนื่องที่ไม่ว่างของลำดับนี้ ซึ่งเมื่อนำจำนวนทั้งหมดในช่วงนั้นมาเรียงจากน้อยไปม... | coding | hard | Thai |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Sia \\(f:\\mathbb{R}\\to\\mathbb{R}\\) una funzione continua e derivabile due volte, tale che\n\\[\nf(0)=0,\\qquad f(1)=1,\\qquad f'(0)=f'(1)=0.\n\\]\nDimostrare che esiste almeno un punto \\(c\\in(0,1)\\)... | math | hard | Italian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "একটি ৮×৮ দাবাবোর্ডে ৮টি নৌকা এমনভাবে রাখতে হবে যাতে কোনো দুইটি নৌকা একই সারিতে বা একই কলামে না থাকে এবং বোর্ডের প্রধান কর্ণ দুইটির কোনোটিতেই কোনো নৌকা না থাকে। তাহলে কতটি ভিন্ন উপায়ে নৌকাগুলো রাখা সম্ভব?"... | math | hard | Bengali |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Найдите все функции \\(f:\\mathbb{R}\\to\\mathbb{R}\\), удовлетворяющие для любых действительных \\(x\\) и \\(y\\) равенству \n\\[\nf(x+f(y))=f(x)+y.\n\\]\nОтвет обоснуйте."
},
{
"from": "gpt",
... | math | hard | Russian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Du får en sträng S med längd n (1 ≤ n ≤ 200 000) som endast består av små bokstäver. En delsträng S[l..r] kallas teckenunik om inget tecken förekommer mer än en gång i den. Du får också m frågor (1 ≤ m ≤ 2... | coding | hard | Swedish |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "I triangeln \\(ABC\\) är \\(AB=13\\), \\(BC=14\\) och \\(CA=15\\). En cirkel tangerar sidorna \\(AB\\) och \\(AC\\) samt den omskrivna cirkeln till triangeln \\(ABC\\) invändigt. Bestäm radien hos denna ci... | math | hard | Swedish |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "همهٔ توابع \\(f:\\mathbb{R}\\to\\mathbb{R}\\) را بیابید که برای هر \\(x,y\\in\\mathbb{R}\\) در رابطهٔ زیر صدق میکنند:\n\\[\nf(x+f(y))=f(x)+y.\n\\]"
},
{
"from": "gpt",
"value": "<think>题。f:R→R... | math | hard | Persian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Найдите все функции \\(f:\\mathbb{R}\\to\\mathbb{R}\\), для которых при всех \\(x,y\\in\\mathbb{R}\\) выполнено равенство\n\\[\nf(x+f(y))=f(x)+y.\n\\]\nОтвет обоснуйте."
},
{
"from": "gpt",
"va... | math | hard | Russian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Du ska lösa följande programmeringsproblem. Givet en vektor med n heltal, där varje heltal representerar höjden på en stapel med bredden 1, ska du beräkna arean av den största rektangel som kan ritas inuti... | coding | hard | Swedish |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "กำหนดให้ \\(a,b,c\\) เป็นจำนวนจริงบวกที่สอดคล้องกับ \\(a+b+c=3\\) \nจงหาค่าที่น้อยที่สุดของ\n\\[\n\\frac{a^3}{b^2+c^2}+\\frac{b^3}{c^2+a^2}+\\frac{c^3}{a^2+b^2}\n\\]\nพร้อมแสดงเหตุผลประกอบอย่างละเอียด"
... | math | hard | Thai |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "همهٔ توابع \\(f:\\mathbb{R}\\to\\mathbb{R}\\) را بیابید که برای هر \\(x,y\\in\\mathbb{R}\\) در رابطهٔ\n\\[\nf\\bigl(x+f(y)\\bigr)=f(x)+y\n\\]\nصدق میکنند و پاسخ خود را با استدلال کامل اثبات کنید."
},
... | math | hard | Persian |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Umepewa safu ya nambari kamili `a` yenye urefu `n`. Kuna operesheni `q`. Kila operesheni ni mojawapo ya aina mbili:\n\n1. Ongeza thamani `x` kwa kila kipengele cha safu kati ya fahirisi `l` na `r` (zote mb... | coding | hard | Swahili |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "কোডিং সমস্যা (কঠিন): তোমাকে একটি পূর্ণসংখ্যার অ্যারে দেওয়া হলো যার দৈর্ঘ্য এন। প্রতিটি সূচক আই-এর জন্য, অ্যারের আই-এর ডানদিকে থাকা উপাদানগুলোর মধ্যে এমন একটি উপাদানের সূচক বের করতে হবে যার মান অ্যারে[আই]-... | coding | hard | Bengali |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Opdracht (moeilijkheidsgraad: moeilijk)\n\nGegeven is een rij A van n gehele getallen, met n ≤ 200000 en |A_i| ≤ 10^9. Een aaneengesloten deelrij A[l..r] noemen we een bergdal als er een index p bestaat me... | coding | hard | Dutch |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Implementieren Sie in einer Programmiersprache Ihrer Wahl eine Funktion, die für einen ungerichteten, kantengewichteten Graphen mit bis zu 22 Knoten die minimale Gesamtlänge eines Hamiltonkreises bestimmt.... | coding | hard | German |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Onderwerp: programmeren (moeilijk)\n\nJe krijgt een gerichte acyclische graaf met n knopen en m kanten. Elke kant heeft een geheel gewicht, dat ook negatief mag zijn. Schrijf een functie in Python die het ... | coding | hard | Dutch |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "Implemente um algoritmo eficiente para o seguinte problema.\n\nVocê recebe uma árvore com \\(N\\) vértices numerados de \\(1\\) a \\(N\\). Cada vértice \\(i\\) possui um valor inteiro \\(A[i]\\). Há \\(Q\\... | coding | hard | Portuguese |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "आपको दो क्रमबद्ध पूर्णांक सरणियाँ दी गई हैं। पहली सरणी की लंबाई एम और दूसरी की लंबाई एन है। दोनों सरणियों को मिलाकर बनने वाले कुल क्रमबद्ध क्रम का माध्यिका ज्ञात कीजिए। आपको इसे केवल लघुगणकीय समय में, अर्थ... | coding | hard | Hindi |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "題目:\n給定一個整數數列,以及三個整數:最短長度、容許差值、目標總和。請計算數列中有多少個連續區段滿足以下全部條件:\n一、區段長度至少為最短長度;\n二、區段內所有整數的總和恰好等於目標總和;\n三、區段內最大值與最小值的差不大於容許差值。\n因為答案可能非常大,請將答案對 1,000,000,007 取餘數後輸出。\n\n輸入格式:\n第一行包含四個整數,依序為數列長度、最短長度、容許差值、目標總和。... | coding | hard | Traditional Chinese |
[
{
"from": "system",
"value": "You are a helpful assistant"
},
{
"from": "human",
"value": "問題\n\nN 頂点からなる根付き木が与えられます。頂点には 1 から N までの番号が付いており、頂点 1 が根です。各頂点 i には整数 A_i が書かれています。また、各頂点 i の親を P_i とします。ただし、P_1 = 0 とします。\n\n次の Q 個のクエリを順に処理するプログラムを作成してください。\n\n各クエリでは整数 u', x' が与えられます。直前のクエリの答えを T とし、最初... | coding | hard | Japanese |
sriq-sft-v1.4
Superseded. The current release is sriq-sft-v1.6. v1.4's verification step is inherited by every later version, but it could only ever confirm — see Provenance for the chain.
ShareGPT-compatible supervised fine-tuning conversations. Questions are generated in many languages. Assistant targets contain compressed Simplified Chinese reasoning and the original final answer. The final answer is not rewritten by the compression step.
What changed in v1.4
v1.4 adds a final verification step to the chain of thought. Where
v1.3 traces stop once a solution is
reached, v1.4 traces close by logically checking the answer against the original constraints —
substituting the result back into the equation, re-deriving the invariant, or walking the stated
edge cases — before committing to it. The block is conventionally introduced by 验: ("verify")
and ends on an explicit correctness judgement such as 答对。 or 故对。
Measured over the full splits of each version:
| v1.3 | v1.4 | |
|---|---|---|
| Rows | 2,703 | 825 |
Traces containing a 验 verification block |
15.2% | 95.4% |
| Verification falling in the final quarter of the trace | 12.6% | 80.1% |
| Traces ending on an explicit correctness judgement | 0.3% | 43.9% |
| Mean reasoning length (characters) | 343 | 418 |
The verification step is the only intended behavioural change; the ~22% longer reasoning traces are its cost. Everything else — the compression style, the untouched final answer, the language mix — carries over from v1.3.
A worked example (row 823, German prompt, functional equation). The trace derives the answer,
then verifies:
…全部解=加性对合=Q线性对合。
验:原解已推 f(0)=0,f²=id,加性。反代原式两边等。无漏。故对。
Schema
conversations: three turns — a system turn, a human turn, then one GPT turn.- System turn:
fromissystem;valueis the assistant preamble. - Human turn:
fromishuman;valuecontains the question. - GPT turn:
fromisgpt;valuecontains<think>Chinese reasoning</think>followed by the final answer. - Extra columns:
topic,difficulty,language(the requested question language).
There are no rejected responses in the SFT export.
Token statistics
Counts use tiktoken cl100k_base, not the training model's tokenizer.
| Slice | Total tokens |
|---|---|
| Reasoning | 271,422 |
| Final answer | 928,664 |
| Reasoning + final answer, including think tags | 1,204,283 |
Rows: 825. Languages: Arabic, Bengali, Czech, Dutch, English, French, German, Greek, Hebrew, Hindi, Indonesian, Italian, Japanese, Korean, Persian, Polish, Portuguese, Romanian, Russian, Simplified Chinese, Spanish, Swahili, Swedish, Tamil, Thai, Traditional Chinese, Turkish, Ukrainian, Urdu, Vietnamese.
Planned fine-tunes
The following models are planned to be fine-tuned on this dataset:
| Model | Benchmarks | Huggingface Link |
|---|---|---|
| XHToken/Spark-X2.5-4B | Cancelled due to Internal Training Issue | sriq-ai/sriq-spark-v1.4 |
Neither run has been completed, and no results are available yet.
Load
from datasets import load_dataset
dataset = load_dataset("sriq-ai/sriq-sft-v1.4", split="train")
conversation = dataset[0]["conversations"]
Format for Qwen3.8 training
The export uses standard ShareGPT fields. Qwen3.8's native template expects reasoning in a separate field, so convert the record before applying that template:
from transformers import AutoTokenizer
turns = {turn["from"]: turn["value"] for turn in conversation}
response = turns["gpt"]
reasoning, answer = response.removeprefix("<think>").split("</think>", 1)
messages = [
{"role": "system", "content": turns["system"]},
{"role": "user", "content": turns["human"]},
{"role": "assistant", "reasoning_content": reasoning, "content": answer.strip()},
]
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3.8-27B")
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=False,
preserve_thinking=True,
)
For other models, adapt the ShareGPT roles/fields to the trainer's expected
conversation schema while retaining the complete GPT value. Do not place the
same reasoning in both content and reasoning_content for Qwen's template.
For SFT, include the assistant's reasoning and final answer in the loss and mask user/prompt tokens. Check that the rendered training text retains the Chinese reasoning and that the assistant loss mask covers it — the verification step sits at the very end of the trace, so a truncated max sequence length will silently drop exactly the behaviour this version is meant to teach. Use the target tokenizer to check lengths and keep repeated questions in the same train/evaluation split.
Provenance
| Data revision | be3a4b67c0fdbbe9a1ab0be1e78803fa3a2a5a2e |
| Published | 2026-09-19 11:34 UTC |
| Built with | sriq/sriq-sft, before that repository's history began — no commit corresponds |
| Previous | v1.3 |
| Superseded by | v1.5 |
The card above may change; the parquet at that revision will not. Pin it when training, so the corpus is the one that was measured:
load_dataset("sriq-ai/sriq-sft-v1.4", split="train",
revision="be3a4b67c0fdbbe9a1ab0be1e78803fa3a2a5a2e")
Release chain
Each version exists to close a defect in the one before it.
| Version | Rows | Data revision | What it introduced | The defect it left behind |
|---|---|---|---|---|
| v1.3 | 2,703 | 84f74b6 |
compressed Simplified Chinese reasoning, 30 languages | traces stop at the answer — 15.2% carry a 验 block, 0.3% end on an explicit judgement |
| v1.4 | 825 | be3a4b6 |
a verification step closing the trace (95.4% carry 验) |
Chinese reasoning reverts to English behind a long agent-harness prompt |
| v1.5 | 1,424 | e7ee870 |
long synthetic harness preambles on 599 of 1,424 rows | the check inherited from v1.4 could only ever agree — 0.9% caught a mistake |
| v1.6 | 9,988 | fa9e487 |
verification that catches a real planted mistake (19.5%), graded difficulty, a verification column |
— current release |
What v1.4 left for v1.6 to fix. The verification step this version introduced runs at the end of a trace rewritten from reasoning that already produced the correct answer, so there was nothing there for it to find. By v1.5 only 0.9% of traces caught a mistake, and a model trained on that learns the shape of checking without the function. v1.6 generates a share of rows down a second path where one step is deliberately wrong and the check has to catch it.
Pipeline and the full commit-level trail: git.nixre.dev/git/sriq/sriq-sft.
- Downloads last month
- 34