id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
4,998,178 | ru | Python | var_decl | beginner | Как объявить переменную data со значением 646752 в Python? | data = 646752 | ### Instruction:
Как объявить переменную data со значением 646752 в Python?
### Response:
data = 646752 |
4,636,151 | ru | C++ | var_decl | beginner | Как объявить переменную x со значением 384381 в C++? | int x = 384381; | ### Instruction:
Как объявить переменную x со значением 384381 в C++?
### Response:
int x = 384381; |
2,587,905 | ru | Java | var_decl | beginner | Как объявить переменную offset со значением 609341 в Java? | int offset = 609341; | ### Instruction:
Как объявить переменную offset со значением 609341 в Java?
### Response:
int offset = 609341; |
910,872 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 6345. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(6345)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 6345.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(6345)); |
1,077,666 | en | C# | var_decl | beginner | How to declare a variable size with value 854737 in C#? | int size = 854737; | ### Instruction:
How to declare a variable size with value 854737 in C#?
### Response:
int size = 854737; |
705,358 | kk | Java | factorial | advanced | Java тілінде 1670 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1670)); | ### Instruction:
Java тілінде 1670 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1670)); |
81,063,655 | 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;
} |
49,125,807 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 166 простым. | public bool IsPrime() {
int n = 166;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 166 простым.
### Response:
public bool IsPrime() {
int n = 166;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
98,675,056 | kk | Python | logic_ops | intermediate | Python тилінде 136 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 136
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 136 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 136
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
80,489,476 | en | Java | array_ops | advanced | Write a function that finds the maximum number in an array in Java. | 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 Java.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
1,331,061 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 1391. | 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(1391) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 1391.
### 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(1391) << std::endl; |
25,752,933 | ru | Java | array_ops | intermediate | Напишите на Java функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Java функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
2,652,939 | en | Java | var_decl | beginner | How to declare a variable value with value 261264 in Java? | int value = 261264; | ### Instruction:
How to declare a variable value with value 261264 in Java?
### Response:
int value = 261264; |
3,863,161 | en | Unity | var_decl | beginner | How to declare a variable result with value 30629 in Unity? | int result = 30629; | ### Instruction:
How to declare a variable result with value 30629 in Unity?
### Response:
int result = 30629; |
45,702,091 | ru | C# | array_ops | advanced | Напишите на 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;
} |
2,549,079 | kk | C++ | var_decl | beginner | C++ тілінде 767697 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 767697; | ### Instruction:
C++ тілінде 767697 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 767697; |
65,438,066 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 1963 високосным. | public bool IsLeap() {
int y = 1963;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1963 високосным.
### Response:
public bool IsLeap() {
int y = 1963;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
89,704,408 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Java функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
1,845,978 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 258971 мәнімен amount айнымалысын қалай жариялауға болады? | let amount = 258971; | ### Instruction:
JavaScript тілінде 258971 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
let amount = 258971; |
88,217,325 | 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;
} |
1,229,351 | ru | Python | var_decl | beginner | Как объявить переменную result со значением 327048 в Python? | result = 327048 | ### Instruction:
Как объявить переменную result со значением 327048 в Python?
### Response:
result = 327048 |
4,632,026 | ru | Python | var_decl | beginner | Как объявить переменную amount со значением 513032 в Python? | amount = 513032 | ### Instruction:
Как объявить переменную amount со значением 513032 в Python?
### Response:
amount = 513032 |
31,102,309 | 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;
} |
1,551,301 | en | JavaScript | var_decl | beginner | How to declare a variable index with value 718807 in JavaScript? | let index = 718807; | ### Instruction:
How to declare a variable index with value 718807 in JavaScript?
### Response:
let index = 718807; |
59,235,953 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
39,772,173 | en | Java | string_ops | intermediate | Write a function that counts vowels in a text in Java. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in Java.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
48,346,151 | ru | C# | logic_ops | intermediate | Напишите на C# функцию, определяющую, является ли число 10 простым. | public bool IsPrime() {
int n = 10;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 10 простым.
### Response:
public bool IsPrime() {
int n = 10;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,722,534 | kk | C++ | var_decl | beginner | C++ тілінде 313768 мәнімен data айнымалысын қалай жариялауға болады? | int data = 313768; | ### Instruction:
C++ тілінде 313768 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 313768; |
4,146,731 | en | C++ | var_decl | beginner | How to declare a variable score with value 296424 in C++? | int score = 296424; | ### Instruction:
How to declare a variable score with value 296424 in C++?
### Response:
int score = 296424; |
10,819,112 | kk | C++ | string_ops | advanced | 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;
} |
10,304,335 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript логику проверки, является ли год 1914 високосным. | function isLeap() {
let y = 1914;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1914 високосным.
### Response:
function isLeap() {
let y = 1914;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
30,012,876 | en | JavaScript | string_ops | advanced | Write a function that converts a string to uppercase in JavaScript. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Write a function that converts a string to uppercase in JavaScript.
### Response:
const toUpper = s => s.toUpperCase(); |
47,268,938 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 1965 високосным. | public bool IsLeap() {
int y = 1965;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1965 високосным.
### Response:
public bool IsLeap() {
int y = 1965;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
671,328 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 4100. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4100)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 4100.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4100)); |
82,007,111 | 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);
} |
513,214 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 1193. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(1193));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 1193.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(1193));
} |
244,459 | en | C# | var_decl | beginner | How to declare a variable x with value 247640 in C#? | int x = 247640; | ### Instruction:
How to declare a variable x with value 247640 in C#?
### Response:
int x = 247640; |
55,196,886 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
838,989 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 775. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(775)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 775.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(775)); |
85,438,552 | kk | C# | array_ops | intermediate | 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;
} |
81,513,008 | kk | C# | logic_ops | intermediate | C# тилінде 2038 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2038;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 2038 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2038;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
20,586,381 | ru | C# | string_ops | advanced | Напишите на 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;
} |
2,275,273 | kk | C++ | var_decl | beginner | C++ тілінде 515798 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 515798; | ### Instruction:
C++ тілінде 515798 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 515798; |
12,204,197 | en | Python | array_ops | intermediate | Write a function that reverses a list in Python. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Write a function that reverses a list in Python.
### Response:
def reverse_list(arr):
return arr[::-1] |
505,166 | ru | JavaScript | var_decl | beginner | Как объявить переменную weight со значением 182411 в JavaScript? | let weight = 182411; | ### Instruction:
Как объявить переменную weight со значением 182411 в JavaScript?
### Response:
let weight = 182411; |
57,326,662 | en | C++ | logic_ops | intermediate | Write logic to check if the year 2077 is a leap year in C++. | public bool IsLeap() {
int y = 2077;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2077 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2077;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
76,662,468 | ru | 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;
} |
74,938,753 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
16,735,078 | ru | 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;
} |
88,917,078 | kk | C# | string_ops | advanced | C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
3,474,982 | ru | C++ | var_decl | beginner | Как объявить переменную total со значением 496061 в C++? | int total = 496061; | ### Instruction:
Как объявить переменную total со значением 496061 в C++?
### Response:
int total = 496061; |
81,220,714 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 1937 високосным. | def is_leap():
year = 1937
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1937 високосным.
### Response:
def is_leap():
year = 1937
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
17,245,860 | en | Python | logic_ops | intermediate | Write a function that determines if the number 197 is prime in Python. | def is_prime():
n = 197
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 197 is prime in Python.
### Response:
def is_prime():
n = 197
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
2,627,511 | kk | Java | var_decl | beginner | Java тілінде 996934 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 996934; | ### Instruction:
Java тілінде 996934 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 996934; |
4,635,120 | kk | Python | var_decl | beginner | Python тілінде 401430 мәнімен count айнымалысын қалай жариялауға болады? | count = 401430 | ### Instruction:
Python тілінде 401430 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
count = 401430 |
40,890,368 | kk | Java | array_ops | intermediate | Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
3,740,413 | en | Java | var_decl | beginner | How to declare a variable total with value 421952 in Java? | int total = 421952; | ### Instruction:
How to declare a variable total with value 421952 in Java?
### Response:
int total = 421952; |
3,973,117 | kk | Java | var_decl | beginner | Java тілінде 422944 мәнімен score айнымалысын қалай жариялауға болады? | int score = 422944; | ### Instruction:
Java тілінде 422944 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 422944; |
97,711,618 | kk | Java | logic_ops | advanced | Java тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1983;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1983;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
53,656,734 | kk | Unity | string_ops | advanced | 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;
} |
4,717,468 | kk | Java | var_decl | beginner | Java тілінде 141777 мәнімен value айнымалысын қалай жариялауға болады? | int value = 141777; | ### Instruction:
Java тілінде 141777 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 141777; |
249,321 | kk | Java | factorial | advanced | Java тілінде 7150 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7150)); | ### Instruction:
Java тілінде 7150 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7150)); |
99,150,072 | kk | Python | logic_ops | intermediate | Python тилінде 260 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 260
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 260 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 260
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
25,991,368 | kk | Python | array_ops | advanced | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
35,027,121 | ru | 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;
} |
3,919,297 | ru | Unity | var_decl | beginner | Как объявить переменную level со значением 595726 в Unity? | int level = 595726; | ### Instruction:
Как объявить переменную level со значением 595726 в Unity?
### Response:
int level = 595726; |
2,182,289 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 355221 мәнімен score айнымалысын қалай жариялауға болады? | let score = 355221; | ### Instruction:
JavaScript тілінде 355221 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
let score = 355221; |
73,385,153 | 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;
} |
19,735,120 | kk | C# | string_ops | intermediate | C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
77,632,998 | kk | 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);
} |
26,231,409 | en | JavaScript | array_ops | advanced | Write a function that reverses a list in JavaScript. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Write a function that reverses a list in JavaScript.
### Response:
const reverseArr = arr => arr.reverse(); |
17,682,047 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на Java функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
4,163,893 | en | JavaScript | var_decl | beginner | How to declare a variable speed with value 632256 in JavaScript? | let speed = 632256; | ### Instruction:
How to declare a variable speed with value 632256 in JavaScript?
### Response:
let speed = 632256; |
4,035,386 | ru | C++ | var_decl | beginner | Как объявить переменную y со значением 374836 в C++? | int y = 374836; | ### Instruction:
Как объявить переменную y со значением 374836 в C++?
### Response:
int y = 374836; |
14,345,323 | ru | 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;
} |
1,931,838 | en | JavaScript | var_decl | beginner | How to declare a variable score with value 425019 in JavaScript? | let score = 425019; | ### Instruction:
How to declare a variable score with value 425019 in JavaScript?
### Response:
let score = 425019; |
91,136,288 | kk | Unity | string_ops | advanced | Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
61,997,618 | ru | Unity | string_ops | advanced | Напишите на Unity функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Unity функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
86,074,415 | 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,193,343 | ru | Java | var_decl | beginner | Как объявить переменную rate со значением 254772 в Java? | int rate = 254772; | ### Instruction:
Как объявить переменную rate со значением 254772 в Java?
### Response:
int rate = 254772; |
45,911,440 | 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;
} |
71,503,889 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 329 простым. | public bool IsPrime() {
int n = 329;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 329 простым.
### Response:
public bool IsPrime() {
int n = 329;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
345,249 | ru | C++ | factorial | advanced | Напиши функцию на C++, которая вычисляет факториал числа 2772. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(2772) << std::endl; | ### Instruction:
Напиши функцию на C++, которая вычисляет факториал числа 2772.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(2772) << std::endl; |
182,063 | kk | C# | sum_n | intermediate | C# тілінде 1-ден 4377-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(4377)); | ### Instruction:
C# тілінде 1-ден 4377-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(4377)); |
17,486,347 | en | C++ | string_ops | advanced | Write a function that checks if a string is a palindrome in 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:
Write a function that checks if a string is a palindrome in 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;
} |
391,144 | en | JavaScript | var_decl | beginner | How to declare a variable index with value 385192 in JavaScript? | let index = 385192; | ### Instruction:
How to declare a variable index with value 385192 in JavaScript?
### Response:
let index = 385192; |
2,442,621 | en | C# | var_decl | beginner | How to declare a variable weight with value 300855 in C#? | int weight = 300855; | ### Instruction:
How to declare a variable weight with value 300855 in C#?
### Response:
int weight = 300855; |
2,804,501 | ru | C# | var_decl | beginner | Как объявить переменную amount со значением 981249 в C#? | int amount = 981249; | ### Instruction:
Как объявить переменную amount со значением 981249 в C#?
### Response:
int amount = 981249; |
61,500,043 | ru | Unity | array_ops | intermediate | Напишите на Unity функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Unity функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
23,859,548 | en | JavaScript | array_ops | intermediate | Write a function that finds the maximum number in an array in JavaScript. | const getMax = arr => Math.max(...arr); | ### Instruction:
Write a function that finds the maximum number in an array in JavaScript.
### Response:
const getMax = arr => Math.max(...arr); |
58,924,419 | ru | C# | array_ops | intermediate | Напишите на 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;
} |
15,865,337 | en | Java | string_ops | advanced | Write a function that counts vowels in a text in Java. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in Java.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
75,335,944 | ru | Unity | string_ops | intermediate | Напишите на Unity функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Unity функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
2,859,862 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 562730 мәнімен amount айнымалысын қалай жариялауға болады? | let amount = 562730; | ### Instruction:
JavaScript тілінде 562730 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
let amount = 562730; |
819,683 | kk | Unity | var_decl | beginner | Unity тілінде 434038 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 434038; | ### Instruction:
Unity тілінде 434038 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 434038; |
3,390,519 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 478910 мәнімен y айнымалысын қалай жариялауға болады? | let y = 478910; | ### Instruction:
JavaScript тілінде 478910 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
let y = 478910; |
4,249,043 | kk | Java | var_decl | beginner | Java тілінде 388728 мәнімен y айнымалысын қалай жариялауға болады? | int y = 388728; | ### Instruction:
Java тілінде 388728 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
int y = 388728; |
2,250,026 | ru | Python | var_decl | beginner | Как объявить переменную speed со значением 256526 в Python? | speed = 256526 | ### Instruction:
Как объявить переменную speed со значением 256526 в Python?
### Response:
speed = 256526 |
32,563,170 | en | Java | string_ops | intermediate | Write a function that counts vowels in a text in Java. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in Java.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
76,399,113 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.