id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
1,890,939 | ru | C++ | var_decl | beginner | Как объявить переменную score со значением 790178 в C++? | int score = 790178; | ### Instruction:
Как объявить переменную score со значением 790178 в C++?
### Response:
int score = 790178; |
92,400,487 | en | JavaScript | string_ops | intermediate | Write a function that counts vowels in a text in JavaScript. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Write a function that counts vowels in a text in JavaScript.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
169,640 | ru | Python | sum_n | intermediate | Напиши функцию на Python, которая считает сумму чисел от 1 до 306. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(306)) | ### Instruction:
Напиши функцию на Python, которая считает сумму чисел от 1 до 306.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(306)) |
43,999,407 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 413 is prime in C++. | public bool IsPrime() {
int n = 413;
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 413 is prime in C++.
### Response:
public bool IsPrime() {
int n = 413;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
856,574 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 1499. | 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(1499) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 1499.
### 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(1499) << std::endl; |
371,134 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 9112. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(9112)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 9112.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(9112)) |
1,411,993 | en | C++ | var_decl | beginner | How to declare a variable amount with value 342878 in C++? | int amount = 342878; | ### Instruction:
How to declare a variable amount with value 342878 in C++?
### Response:
int amount = 342878; |
2,933,665 | kk | Java | var_decl | beginner | Java тілінде 833267 мәнімен score айнымалысын қалай жариялауға болады? | int score = 833267; | ### Instruction:
Java тілінде 833267 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 833267; |
40,203,865 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 1980 високосным. | public bool IsLeap() {
int y = 1980;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 1980 високосным.
### Response:
public bool IsLeap() {
int y = 1980;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
20,267,314 | 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,443,708 | ru | Unity | var_decl | beginner | Как объявить переменную rate со значением 843376 в Unity? | int rate = 843376; | ### Instruction:
Как объявить переменную rate со значением 843376 в Unity?
### Response:
int rate = 843376; |
864,451 | en | Python | var_decl | beginner | How to declare a variable amount with value 775221 in Python? | amount = 775221 | ### Instruction:
How to declare a variable amount with value 775221 in Python?
### Response:
amount = 775221 |
332,858 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 831. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(831)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 831.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(831)); |
64,193,465 | 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();
} |
73,025,993 | en | Python | logic_ops | advanced | Write logic to check if the year 2003 is a leap year in Python. | def is_leap():
year = 2003
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2003 is a leap year in Python.
### Response:
def is_leap():
year = 2003
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
32,963,822 | kk | Java | string_ops | advanced | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
3,301,020 | ru | Unity | var_decl | beginner | Как объявить переменную timer со значением 323249 в Unity? | int timer = 323249; | ### Instruction:
Как объявить переменную timer со значением 323249 в Unity?
### Response:
int timer = 323249; |
4,027,318 | en | Unity | var_decl | beginner | How to declare a variable data with value 657451 in Unity? | int data = 657451; | ### Instruction:
How to declare a variable data with value 657451 in Unity?
### Response:
int data = 657451; |
58,104,830 | en | Java | string_ops | intermediate | Write a function that checks if a string is a palindrome in Java. | 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 Java.
### 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;
} |
79,616,519 | ru | C++ | logic_ops | advanced | Напишите на C++ логику проверки, является ли год 1990 високосным. | public bool IsLeap() {
int y = 1990;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 1990 високосным.
### Response:
public bool IsLeap() {
int y = 1990;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,816,863 | en | Java | var_decl | beginner | How to declare a variable rate with value 629998 in Java? | int rate = 629998; | ### Instruction:
How to declare a variable rate with value 629998 in Java?
### Response:
int rate = 629998; |
2,822,377 | ru | C# | var_decl | beginner | Как объявить переменную weight со значением 78120 в C#? | int weight = 78120; | ### Instruction:
Как объявить переменную weight со значением 78120 в C#?
### Response:
int weight = 78120; |
4,371,074 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 624192 мәнімен speed айнымалысын қалай жариялауға болады? | let speed = 624192; | ### Instruction:
JavaScript тілінде 624192 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
let speed = 624192; |
560,103 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 5044. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(5044));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 5044.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(5044));
} |
34,008,707 | kk | C++ | string_ops | advanced | 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;
} |
27,247,318 | ru | C++ | string_ops | advanced | Напишите на 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;
} |
2,780,409 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 690763 мәнімен limit айнымалысын қалай жариялауға болады? | let limit = 690763; | ### Instruction:
JavaScript тілінде 690763 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
let limit = 690763; |
63,089,453 | kk | Python | array_ops | advanced | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
22,708,699 | kk | 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);
} |
63,639,968 | 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;
} |
30,842,789 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 245 is prime in C++. | public bool IsPrime() {
int n = 245;
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 245 is prime in C++.
### Response:
public bool IsPrime() {
int n = 245;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,476,440 | kk | C# | var_decl | beginner | C# тілінде 867735 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 867735; | ### Instruction:
C# тілінде 867735 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 867735; |
4,938,976 | ru | JavaScript | var_decl | beginner | Как объявить переменную score со значением 36179 в JavaScript? | let score = 36179; | ### Instruction:
Как объявить переменную score со значением 36179 в JavaScript?
### Response:
let score = 36179; |
22,654,823 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 108 простым. | def is_prime():
n = 108
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 108 простым.
### Response:
def is_prime():
n = 108
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
45,509,448 | en | C# | logic_ops | intermediate | Write a function that determines if the number 459 is prime in C#. | public bool IsPrime() {
int n = 459;
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 459 is prime in C#.
### Response:
public bool IsPrime() {
int n = 459;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,034,385 | en | Python | var_decl | beginner | How to declare a variable total with value 379224 in Python? | total = 379224 | ### Instruction:
How to declare a variable total with value 379224 in Python?
### Response:
total = 379224 |
98,192,568 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
76,562,600 | ru | 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;
} |
24,719,714 | 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);
} |
77,666,845 | kk | Python | logic_ops | intermediate | Python тилінде 1910 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1910
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1910 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1910
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
47,413,289 | en | Unity | array_ops | advanced | 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;
} |
334,843 | ru | C# | var_decl | beginner | Как объявить переменную level со значением 258092 в C#? | int level = 258092; | ### Instruction:
Как объявить переменную level со значением 258092 в C#?
### Response:
int level = 258092; |
43,552,243 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
4,789,383 | en | Python | var_decl | beginner | How to declare a variable count with value 379358 in Python? | count = 379358 | ### Instruction:
How to declare a variable count with value 379358 in Python?
### Response:
count = 379358 |
19,416,679 | 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;
} |
83,741,172 | en | Python | array_ops | advanced | Write a function that finds the maximum number in an array in Python. | def get_max(arr):
return max(arr) | ### Instruction:
Write a function that finds the maximum number in an array in Python.
### Response:
def get_max(arr):
return max(arr) |
15,886,339 | kk | Python | logic_ops | advanced | Python тилінде 268 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 268
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 268 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 268
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
68,603,705 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 1997 is a leap year in JavaScript. | function isLeap() {
let y = 1997;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1997 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1997;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
696,865 | ru | Python | factorial | advanced | Напиши функцию на Python, которая вычисляет факториал числа 5628. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(5628)) | ### Instruction:
Напиши функцию на Python, которая вычисляет факториал числа 5628.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(5628)) |
2,322,070 | kk | Unity | var_decl | beginner | Unity тілінде 213906 мәнімен size айнымалысын қалай жариялауға болады? | int size = 213906; | ### Instruction:
Unity тілінде 213906 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 213906; |
620,324 | ru | C# | sum_n | intermediate | Напиши функцию на C#, которая считает сумму чисел от 1 до 7982. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(7982)); | ### Instruction:
Напиши функцию на C#, которая считает сумму чисел от 1 до 7982.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(7982)); |
24,846,420 | 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;
} |
86,583,950 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 2038 високосным. | public bool IsLeap() {
int y = 2038;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2038 високосным.
### Response:
public bool IsLeap() {
int y = 2038;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
39,183,149 | kk | Python | string_ops | intermediate | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
4,443,054 | kk | C# | var_decl | beginner | C# тілінде 896221 мәнімен size айнымалысын қалай жариялауға болады? | int size = 896221; | ### Instruction:
C# тілінде 896221 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 896221; |
78,683,562 | ru | 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;
} |
1,090,347 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 972528 мәнімен offset айнымалысын қалай жариялауға болады? | let offset = 972528; | ### Instruction:
JavaScript тілінде 972528 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
let offset = 972528; |
71,315,612 | en | Java | string_ops | intermediate | Write a function that checks if a string is a palindrome in Java. | 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 Java.
### 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;
} |
84,388,751 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 2094 високосным. | public bool IsLeap() {
int y = 2094;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2094 високосным.
### Response:
public bool IsLeap() {
int y = 2094;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
94,551,125 | kk | Unity | logic_ops | intermediate | Unity тилінде 171 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 171;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 171 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 171;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
46,966,046 | en | Java | logic_ops | advanced | Write logic to check if the year 2037 is a leap year in Java. | public bool IsLeap() {
int y = 2037;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2037 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2037;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,572,909 | en | C# | var_decl | beginner | How to declare a variable result with value 224947 in C#? | int result = 224947; | ### Instruction:
How to declare a variable result with value 224947 in C#?
### Response:
int result = 224947; |
2,245,675 | ru | JavaScript | var_decl | beginner | Как объявить переменную value со значением 415264 в JavaScript? | let value = 415264; | ### Instruction:
Как объявить переменную value со значением 415264 в JavaScript?
### Response:
let value = 415264; |
143,431 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 2471. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2471)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 2471.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2471)); |
155,757 | kk | JavaScript | factorial | advanced | JavaScript тілінде 7275 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(7275)); | ### Instruction:
JavaScript тілінде 7275 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(7275)); |
59,560,067 | 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();
} |
81,185,150 | en | C# | string_ops | advanced | Write a function that converts a string to uppercase in C#. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in C#.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
1,459,887 | en | Java | var_decl | beginner | How to declare a variable health with value 946530 in Java? | int health = 946530; | ### Instruction:
How to declare a variable health with value 946530 in Java?
### Response:
int health = 946530; |
626,095 | kk | JavaScript | factorial | advanced | JavaScript тілінде 1928 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1928)); | ### Instruction:
JavaScript тілінде 1928 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1928)); |
29,896,502 | en | Unity | array_ops | intermediate | 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;
} |
2,753,157 | en | Python | var_decl | beginner | How to declare a variable index with value 145759 in Python? | index = 145759 | ### Instruction:
How to declare a variable index with value 145759 in Python?
### Response:
index = 145759 |
27,593,043 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 1952 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 1952;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 1952 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 1952;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
86,011,240 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
2,547,560 | ru | Python | var_decl | beginner | Как объявить переменную total со значением 422880 в Python? | total = 422880 | ### Instruction:
Как объявить переменную total со значением 422880 в Python?
### Response:
total = 422880 |
1,770,882 | ru | Unity | var_decl | beginner | Как объявить переменную health со значением 25709 в Unity? | int health = 25709; | ### Instruction:
Как объявить переменную health со значением 25709 в Unity?
### Response:
int health = 25709; |
98,931,131 | en | Java | logic_ops | intermediate | Write logic to check if the year 1962 is a leap year in Java. | public bool IsLeap() {
int y = 1962;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1962 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1962;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
367,075 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 2665. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2665)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 2665.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2665)); |
562,833 | en | Java | var_decl | beginner | How to declare a variable speed with value 225849 in Java? | int speed = 225849; | ### Instruction:
How to declare a variable speed with value 225849 in Java?
### Response:
int speed = 225849; |
57,923,070 | 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;
} |
92,563,798 | 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); |
15,439,467 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 187 простым. | public bool IsPrime() {
int n = 187;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 187 простым.
### Response:
public bool IsPrime() {
int n = 187;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
72,788,968 | kk | C++ | logic_ops | advanced | C++ тилінде 1945 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1945;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1945 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1945;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
86,805,020 | kk | Python | logic_ops | advanced | Python тилінде 2059 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 2059
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 2059 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 2059
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
4,483,838 | en | C# | var_decl | beginner | How to declare a variable value with value 440913 in C#? | int value = 440913; | ### Instruction:
How to declare a variable value with value 440913 in C#?
### Response:
int value = 440913; |
56,326,683 | kk | Python | string_ops | intermediate | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
16,936,731 | ru | C++ | string_ops | advanced | Напишите на 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;
} |
748,354 | kk | JavaScript | factorial | advanced | JavaScript тілінде 8014 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(8014)); | ### Instruction:
JavaScript тілінде 8014 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(8014)); |
52,585,844 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript логику проверки, является ли год 1941 високосным. | function isLeap() {
let y = 1941;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1941 високосным.
### Response:
function isLeap() {
let y = 1941;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
629,882 | kk | C# | var_decl | beginner | C# тілінде 256929 мәнімен health айнымалысын қалай жариялауға болады? | int health = 256929; | ### Instruction:
C# тілінде 256929 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 256929; |
19,872 | en | C++ | var_decl | beginner | How to declare a variable total with value 664360 in C++? | int total = 664360; | ### Instruction:
How to declare a variable total with value 664360 in C++?
### Response:
int total = 664360; |
98,892,223 | 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;
} |
68,382,544 | 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;
} |
17,864,642 | ru | 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);
} |
60,889,666 | en | C++ | array_ops | intermediate | 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;
} |
804,202 | en | C++ | var_decl | beginner | How to declare a variable speed with value 265364 in C++? | int speed = 265364; | ### Instruction:
How to declare a variable speed with value 265364 in C++?
### Response:
int speed = 265364; |
39,868,108 | 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;
} |
81,251 | kk | Python | factorial | advanced | Python тілінде 2416 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2416)) | ### Instruction:
Python тілінде 2416 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2416)) |
1,294,535 | en | Java | var_decl | beginner | How to declare a variable weight with value 50394 in Java? | int weight = 50394; | ### Instruction:
How to declare a variable weight with value 50394 in Java?
### Response:
int weight = 50394; |
80,175,049 | en | C# | array_ops | intermediate | 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;
} |
2,072,925 | kk | Unity | var_decl | beginner | Unity тілінде 346379 мәнімен data айнымалысын қалай жариялауға болады? | int data = 346379; | ### Instruction:
Unity тілінде 346379 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 346379; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.