id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
1,348,596 | ru | JavaScript | var_decl | beginner | Как объявить переменную buffer со значением 80632 в JavaScript? | let buffer = 80632; | ### Instruction:
Как объявить переменную buffer со значением 80632 в JavaScript?
### Response:
let buffer = 80632; |
38,537,158 | en | C++ | array_ops | advanced | Write a function that filters only even numbers from a list in C++. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in C++.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
53,466 | kk | C++ | var_decl | beginner | C++ тілінде 774075 мәнімен data айнымалысын қалай жариялауға болады? | int data = 774075; | ### Instruction:
C++ тілінде 774075 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 774075; |
97,294,525 | kk | Unity | logic_ops | advanced | Unity тилінде 2089 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2089;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2089 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2089;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
87,030,121 | en | Python | logic_ops | advanced | Write a function that determines if the number 160 is prime in Python. | def is_prime():
n = 160
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Write a function that determines if the number 160 is prime in Python.
### Response:
def is_prime():
n = 160
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
38,457,022 | kk | C++ | array_ops | intermediate | C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
17,165,249 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 2054 високосным. | def is_leap():
year = 2054
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2054 високосным.
### Response:
def is_leap():
year = 2054
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
69,319,198 | en | JavaScript | string_ops | advanced | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
84,332,423 | en | Python | string_ops | intermediate | Write a function that counts vowels in a text in Python. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Write a function that counts vowels in a text in Python.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
12,208,972 | kk | Python | logic_ops | advanced | Python тилінде 34 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 34
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 34 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 34
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
16,463,157 | en | Java | array_ops | advanced | Write a function that reverses a list in Java. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Java.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
29,210,013 | en | Unity | string_ops | intermediate | Write a function that converts a string to uppercase in Unity. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Unity.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
26,660,365 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 2096 високосным. | public bool IsLeap() {
int y = 2096;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 2096 високосным.
### Response:
public bool IsLeap() {
int y = 2096;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,699,291 | ru | Python | var_decl | beginner | Как объявить переменную size со значением 386867 в Python? | size = 386867 | ### Instruction:
Как объявить переменную size со значением 386867 в Python?
### Response:
size = 386867 |
63,979,659 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 2068 високосным. | public bool IsLeap() {
int y = 2068;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 2068 високосным.
### Response:
public bool IsLeap() {
int y = 2068;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
40,247,679 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая проверяет, является ли строка палиндромом. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
### Response:
def is_palindrome(s):
return s == s[::-1] |
31,064,812 | en | Unity | string_ops | intermediate | Write a function that checks if a string is a palindrome in Unity. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in Unity.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
44,147,111 | en | JavaScript | array_ops | advanced | Write a function that filters only even numbers from a list in JavaScript. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Write a function that filters only even numbers from a list in JavaScript.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
75,929,739 | kk | Unity | array_ops | advanced | Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
12,678,223 | en | Unity | array_ops | intermediate | Write a function that finds the maximum number in an array in Unity. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in Unity.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
90,269,954 | kk | Python | logic_ops | intermediate | Python тилінде 2009 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 2009
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 2009 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 2009
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
93,991,254 | ru | Unity | string_ops | intermediate | Напишите на Unity функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на Unity функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
42,253,155 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 460 is prime in JavaScript. | function isPrime() {
let n = 460;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Write a function that determines if the number 460 is prime in JavaScript.
### Response:
function isPrime() {
let n = 460;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
4,750,015 | en | C# | var_decl | beginner | How to declare a variable y with value 489634 in C#? | int y = 489634; | ### Instruction:
How to declare a variable y with value 489634 in C#?
### Response:
int y = 489634; |
77,452,216 | en | C++ | logic_ops | intermediate | Write logic to check if the year 2024 is a leap year in C++. | public bool IsLeap() {
int y = 2024;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2024 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2024;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
48,865,628 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
92,222,869 | kk | Unity | array_ops | intermediate | Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
71,371,345 | en | C++ | logic_ops | advanced | Write logic to check if the year 2045 is a leap year in C++. | public bool IsLeap() {
int y = 2045;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2045 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2045;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,261,930 | kk | JavaScript | factorial | advanced | JavaScript тілінде 425 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(425)); | ### Instruction:
JavaScript тілінде 425 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(425)); |
30,098,325 | kk | C# | string_ops | intermediate | C# тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
C# тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
3,655,991 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 134549 мәнімен timer айнымалысын қалай жариялауға болады? | let timer = 134549; | ### Instruction:
JavaScript тілінде 134549 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
let timer = 134549; |
453,479 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 3001. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(3001)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 3001.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(3001)); |
37,342,490 | en | Python | logic_ops | intermediate | Write logic to check if the year 2093 is a leap year in Python. | def is_leap():
year = 2093
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2093 is a leap year in Python.
### Response:
def is_leap():
year = 2093
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
34,671,324 | kk | Unity | string_ops | intermediate | Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
3,562,245 | kk | C# | var_decl | beginner | C# тілінде 957824 мәнімен count айнымалысын қалай жариялауға болады? | int count = 957824; | ### Instruction:
C# тілінде 957824 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 957824; |
4,025,294 | ru | JavaScript | var_decl | beginner | Как объявить переменную timer со значением 141474 в JavaScript? | let timer = 141474; | ### Instruction:
Как объявить переменную timer со значением 141474 в JavaScript?
### Response:
let timer = 141474; |
3,275,604 | ru | C++ | var_decl | beginner | Как объявить переменную buffer со значением 998191 в C++? | int buffer = 998191; | ### Instruction:
Как объявить переменную buffer со значением 998191 в C++?
### Response:
int buffer = 998191; |
98,184,784 | en | Python | string_ops | advanced | Write a function that converts a string to uppercase in Python. | def to_upper(s):
return s.upper() | ### Instruction:
Write a function that converts a string to uppercase in Python.
### Response:
def to_upper(s):
return s.upper() |
148,215 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 1305. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(1305)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 1305.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(1305)) |
49,411,334 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
1,321,490 | ru | JavaScript | var_decl | beginner | Как объявить переменную index со значением 232469 в JavaScript? | let index = 232469; | ### Instruction:
Как объявить переменную index со значением 232469 в JavaScript?
### Response:
let index = 232469; |
3,484,071 | kk | C++ | var_decl | beginner | C++ тілінде 944767 мәнімен health айнымалысын қалай жариялауға болады? | int health = 944767; | ### Instruction:
C++ тілінде 944767 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 944767; |
77,163,243 | en | Python | logic_ops | advanced | Write logic to check if the year 2010 is a leap year in Python. | def is_leap():
year = 2010
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2010 is a leap year in Python.
### Response:
def is_leap():
year = 2010
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
25,606,549 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
84,566,346 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 2023 високосным. | public bool IsLeap() {
int y = 2023;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2023 високосным.
### Response:
public bool IsLeap() {
int y = 2023;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,662,888 | kk | Java | var_decl | beginner | Java тілінде 455066 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 455066; | ### Instruction:
Java тілінде 455066 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 455066; |
367,176 | ru | Python | var_decl | beginner | Как объявить переменную speed со значением 203193 в Python? | speed = 203193 | ### Instruction:
Как объявить переменную speed со значением 203193 в Python?
### Response:
speed = 203193 |
21,145,517 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 2084 високосным. | public bool IsLeap() {
int y = 2084;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2084 високосным.
### Response:
public bool IsLeap() {
int y = 2084;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
67,842,797 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 2050 високосным. | def is_leap():
year = 2050
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2050 високосным.
### Response:
def is_leap():
year = 2050
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
77,010,048 | en | C++ | logic_ops | advanced | Write logic to check if the year 2073 is a leap year in C++. | public bool IsLeap() {
int y = 2073;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2073 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2073;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
72,525,731 | ru | Unity | array_ops | advanced | Напишите на Unity функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на Unity функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
45,814,467 | en | C++ | array_ops | advanced | Write a function that finds the maximum number in an array in C++. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in C++.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
3,742,156 | kk | C++ | var_decl | beginner | C++ тілінде 614930 мәнімен count айнымалысын қалай жариялауға болады? | int count = 614930; | ### Instruction:
C++ тілінде 614930 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 614930; |
229,296 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 4118. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4118)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 4118.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4118)); |
778,044 | kk | C# | sum_n | intermediate | C# тілінде 1-ден 6150-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(6150)); | ### Instruction:
C# тілінде 1-ден 6150-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(6150)); |
3,354,612 | kk | C++ | var_decl | beginner | C++ тілінде 95994 мәнімен value айнымалысын қалай жариялауға болады? | int value = 95994; | ### Instruction:
C++ тілінде 95994 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 95994; |
4,513,829 | ru | JavaScript | var_decl | beginner | Как объявить переменную buffer со значением 368740 в JavaScript? | let buffer = 368740; | ### Instruction:
Как объявить переменную buffer со значением 368740 в JavaScript?
### Response:
let buffer = 368740; |
1,055,422 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 8983. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(8983) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 8983.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(8983) << std::endl; |
81,672,192 | ru | Java | array_ops | advanced | Напишите на Java функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Java функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
1,690,101 | en | Unity | var_decl | beginner | How to declare a variable offset with value 911051 in Unity? | int offset = 911051; | ### Instruction:
How to declare a variable offset with value 911051 in Unity?
### Response:
int offset = 911051; |
46,375,904 | kk | JavaScript | array_ops | advanced | JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
1,037,715 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 6619. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6619)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 6619.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6619)) |
49,372,535 | kk | C++ | string_ops | intermediate | C++ тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
C++ тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
55,109,164 | en | Unity | array_ops | advanced | Write a function that filters only even numbers from a list in Unity. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Unity.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
1,475,551 | kk | Java | var_decl | beginner | Java тілінде 689689 мәнімен count айнымалысын қалай жариялауға болады? | int count = 689689; | ### Instruction:
Java тілінде 689689 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 689689; |
364,510 | ru | C++ | var_decl | beginner | Как объявить переменную speed со значением 318451 в C++? | int speed = 318451; | ### Instruction:
Как объявить переменную speed со значением 318451 в C++?
### Response:
int speed = 318451; |
14,028,028 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
68,008,755 | ru | C++ | string_ops | intermediate | Напишите на C++ функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на C++ функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
30,798,421 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 407 is prime in C++. | public bool IsPrime() {
int n = 407;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Write a function that determines if the number 407 is prime in C++.
### Response:
public bool IsPrime() {
int n = 407;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,627,496 | ru | Java | var_decl | beginner | Как объявить переменную level со значением 882915 в Java? | int level = 882915; | ### Instruction:
Как объявить переменную level со значением 882915 в Java?
### Response:
int level = 882915; |
2,421,004 | en | Python | var_decl | beginner | How to declare a variable amount with value 748569 in Python? | amount = 748569 | ### Instruction:
How to declare a variable amount with value 748569 in Python?
### Response:
amount = 748569 |
1,499,908 | ru | Unity | var_decl | beginner | Как объявить переменную limit со значением 133020 в Unity? | int limit = 133020; | ### Instruction:
Как объявить переменную limit со значением 133020 в Unity?
### Response:
int limit = 133020; |
49,250,814 | kk | C# | array_ops | intermediate | C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
4,663,011 | ru | JavaScript | var_decl | beginner | Как объявить переменную timer со значением 998817 в JavaScript? | let timer = 998817; | ### Instruction:
Как объявить переменную timer со значением 998817 в JavaScript?
### Response:
let timer = 998817; |
775,009 | kk | C++ | sum_n | intermediate | C++ тілінде 1-ден 6900-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int sum_to_n(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
std::cout << sum_to_n(6900) << std::endl; | ### Instruction:
C++ тілінде 1-ден 6900-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int sum_to_n(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
std::cout << sum_to_n(6900) << std::endl; |
3,308,727 | kk | C++ | var_decl | beginner | C++ тілінде 503251 мәнімен size айнымалысын қалай жариялауға болады? | int size = 503251; | ### Instruction:
C++ тілінде 503251 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 503251; |
71,067,537 | ru | Unity | array_ops | intermediate | Напишите на Unity функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
13,519,613 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 451 is prime in JavaScript. | function isPrime() {
let n = 451;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Write a function that determines if the number 451 is prime in JavaScript.
### Response:
function isPrime() {
let n = 451;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
12,945,788 | kk | Java | logic_ops | advanced | Java тилінде 2098 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2098;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2098 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2098;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
91,335,922 | kk | C++ | logic_ops | advanced | C++ тилінде 1957 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1957;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1957 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1957;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
49,547,601 | ru | C++ | array_ops | advanced | Напишите на C++ функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на C++ функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
336,775 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 940. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(940)); | ### Instruction:
Write a function in C# that calculates the factorial of 940.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(940)); |
28,367,726 | kk | Unity | array_ops | advanced | Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
2,053,662 | ru | C# | var_decl | beginner | Как объявить переменную x со значением 574596 в C#? | int x = 574596; | ### Instruction:
Как объявить переменную x со значением 574596 в C#?
### Response:
int x = 574596; |
47,833,364 | kk | Unity | logic_ops | intermediate | Unity тилінде 1906 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1906;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1906 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1906;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
453,775 | kk | Unity | var_decl | beginner | Unity тілінде 511236 мәнімен total айнымалысын қалай жариялауға болады? | int total = 511236; | ### Instruction:
Unity тілінде 511236 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 511236; |
49,717,680 | en | Python | logic_ops | intermediate | Write logic to check if the year 1905 is a leap year in Python. | def is_leap():
year = 1905
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1905 is a leap year in Python.
### Response:
def is_leap():
year = 1905
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
4,810,026 | en | Python | var_decl | beginner | How to declare a variable total with value 902453 in Python? | total = 902453 | ### Instruction:
How to declare a variable total with value 902453 in Python?
### Response:
total = 902453 |
86,571,050 | kk | C++ | array_ops | advanced | C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
21,213,121 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
28,470,229 | kk | Python | string_ops | advanced | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
4,181,559 | ru | JavaScript | var_decl | beginner | Как объявить переменную level со значением 605238 в JavaScript? | let level = 605238; | ### Instruction:
Как объявить переменную level со значением 605238 в JavaScript?
### Response:
let level = 605238; |
393,605 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 8921. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(8921)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 8921.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(8921)); |
90,075,951 | ru | Unity | string_ops | intermediate | Напишите на Unity функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Unity функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
2,751,142 | kk | Unity | var_decl | beginner | Unity тілінде 364291 мәнімен size айнымалысын қалай жариялауға болады? | int size = 364291; | ### Instruction:
Unity тілінде 364291 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 364291; |
26,911,909 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 1916 високосным. | public bool IsLeap() {
int y = 1916;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 1916 високосным.
### Response:
public bool IsLeap() {
int y = 1916;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,363,267 | kk | Unity | var_decl | beginner | Unity тілінде 494722 мәнімен value айнымалысын қалай жариялауға болады? | int value = 494722; | ### Instruction:
Unity тілінде 494722 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 494722; |
4,679,543 | ru | C# | var_decl | beginner | Как объявить переменную level со значением 862110 в C#? | int level = 862110; | ### Instruction:
Как объявить переменную level со значением 862110 в C#?
### Response:
int level = 862110; |
1,561,240 | en | JavaScript | var_decl | beginner | How to declare a variable result with value 465972 in JavaScript? | let result = 465972; | ### Instruction:
How to declare a variable result with value 465972 in JavaScript?
### Response:
let result = 465972; |
843,483 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 567271 мәнімен limit айнымалысын қалай жариялауға болады? | let limit = 567271; | ### Instruction:
JavaScript тілінде 567271 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
let limit = 567271; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.