id
int64
0
100M
language
stringclasses
3 values
prog_lang
stringclasses
6 values
category
stringclasses
10 values
difficulty
stringclasses
3 values
instruction
stringlengths
30
86
output
stringlengths
7
192
text
stringlengths
92
300
3,011,661
ru
Java
var_decl
beginner
Как объявить переменную y со значением 196619 в Java?
int y = 196619;
### Instruction: Как объявить переменную y со значением 196619 в Java? ### Response: int y = 196619;
1,143,115
en
C#
var_decl
beginner
How to declare a variable data with value 456533 in C#?
int data = 456533;
### Instruction: How to declare a variable data with value 456533 in C#? ### Response: int data = 456533;
97,932,223
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
48,595,058
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(); }
2,513,491
ru
C++
var_decl
beginner
Как объявить переменную level со значением 573949 в C++?
int level = 573949;
### Instruction: Как объявить переменную level со значением 573949 в C++? ### Response: int level = 573949;
121,439
kk
JavaScript
var_decl
beginner
JavaScript тілінде 86896 мәнімен weight айнымалысын қалай жариялауға болады?
let weight = 86896;
### Instruction: JavaScript тілінде 86896 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: let weight = 86896;
3,806,804
ru
C#
var_decl
beginner
Как объявить переменную limit со значением 689174 в C#?
int limit = 689174;
### Instruction: Как объявить переменную limit со значением 689174 в C#? ### Response: int limit = 689174;
4,728,175
en
C++
var_decl
beginner
How to declare a variable size with value 852084 in C++?
int size = 852084;
### Instruction: How to declare a variable size with value 852084 in C++? ### Response: int size = 852084;
16,823,539
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; }
88,151,009
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 139 простым.
public bool IsPrime() { int n = 139; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 139 простым. ### Response: public bool IsPrime() { int n = 139; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
76,290,632
en
Python
logic_ops
advanced
Write a function that determines if the number 322 is prime in Python.
def is_prime(): n = 322 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 322 is prime in Python. ### Response: def is_prime(): n = 322 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
3,300,908
en
JavaScript
var_decl
beginner
How to declare a variable y with value 810853 in JavaScript?
let y = 810853;
### Instruction: How to declare a variable y with value 810853 in JavaScript? ### Response: let y = 810853;
24,682,256
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);
97,619,453
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(); }
92,491,185
en
C#
string_ops
intermediate
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; }
3,139,535
ru
C#
var_decl
beginner
Как объявить переменную index со значением 87489 в C#?
int index = 87489;
### Instruction: Как объявить переменную index со значением 87489 в C#? ### Response: int index = 87489;
3,737,038
ru
Python
var_decl
beginner
Как объявить переменную health со значением 42535 в Python?
health = 42535
### Instruction: Как объявить переменную health со значением 42535 в Python? ### Response: health = 42535
34,204,642
en
C++
logic_ops
advanced
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); }
94,241,746
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая считает количество гласных букв в тексте.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Напишите на Python функцию, которая считает количество гласных букв в тексте. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
87,330
en
C#
sum_n
intermediate
Write a function in C# that sums numbers from 1 to 9854.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(9854));
### Instruction: Write a function in C# that sums numbers from 1 to 9854. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(9854));
63,749,974
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 316 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 316; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 316 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 316; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
3,810,505
ru
Java
var_decl
beginner
Как объявить переменную count со значением 94858 в Java?
int count = 94858;
### Instruction: Как объявить переменную count со значением 94858 в Java? ### Response: int count = 94858;
13,752,546
kk
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; }
1,956,036
en
Java
var_decl
beginner
How to declare a variable limit with value 286036 in Java?
int limit = 286036;
### Instruction: How to declare a variable limit with value 286036 in Java? ### Response: int limit = 286036;
81,841,609
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); }
771,077
kk
C#
var_decl
beginner
C# тілінде 622863 мәнімен index айнымалысын қалай жариялауға болады?
int index = 622863;
### Instruction: C# тілінде 622863 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 622863;
43,077,497
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 376 простым.
public bool IsPrime() { int n = 376; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 376 простым. ### Response: public bool IsPrime() { int n = 376; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
23,375,317
kk
Java
string_ops
advanced
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: 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; }
90,253,994
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(); }
1,862,927
ru
Unity
var_decl
beginner
Как объявить переменную score со значением 270048 в Unity?
int score = 270048;
### Instruction: Как объявить переменную score со значением 270048 в Unity? ### Response: int score = 270048;
35,052,669
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); }
33,301,791
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); }
37,546,058
ru
Java
string_ops
intermediate
Напишите на 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: Напишите на 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; }
55,580,508
ru
JavaScript
logic_ops
advanced
Напишите на JavaScript логику проверки, является ли год 1917 високосным.
function isLeap() { let y = 1917; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 1917 високосным. ### Response: function isLeap() { let y = 1917; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
800,788
kk
C#
var_decl
beginner
C# тілінде 977611 мәнімен size айнымалысын қалай жариялауға болады?
int size = 977611;
### Instruction: C# тілінде 977611 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 977611;
4,878,152
kk
C#
var_decl
beginner
C# тілінде 454896 мәнімен level айнымалысын қалай жариялауға болады?
int level = 454896;
### Instruction: C# тілінде 454896 мәнімен level айнымалысын қалай жариялауға болады? ### Response: int level = 454896;
94,368,216
en
C#
string_ops
intermediate
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(); }
197,254
ru
Java
factorial
advanced
Напиши функцию на Java, которая вычисляет факториал числа 8117.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(8117));
### Instruction: Напиши функцию на Java, которая вычисляет факториал числа 8117. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(8117));
39,122,673
en
Unity
logic_ops
intermediate
Write a function that determines if the number 368 is prime in Unity.
public bool IsPrime() { int n = 368; 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 368 is prime in Unity. ### Response: public bool IsPrime() { int n = 368; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,527,049
en
C#
var_decl
beginner
How to declare a variable result with value 398260 in C#?
int result = 398260;
### Instruction: How to declare a variable result with value 398260 in C#? ### Response: int result = 398260;
3,581,239
ru
Unity
var_decl
beginner
Как объявить переменную buffer со значением 490368 в Unity?
int buffer = 490368;
### Instruction: Как объявить переменную buffer со значением 490368 в Unity? ### Response: int buffer = 490368;
65,971,523
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(); }
69,291,533
kk
Java
array_ops
intermediate
Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
3,686,338
kk
JavaScript
var_decl
beginner
JavaScript тілінде 826964 мәнімен timer айнымалысын қалай жариялауға болады?
let timer = 826964;
### Instruction: JavaScript тілінде 826964 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: let timer = 826964;
17,694,789
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(); }
82,617,525
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();
10,069,230
ru
Java
logic_ops
intermediate
Напишите на Java функцию, определяющую, является ли число 34 простым.
public bool IsPrime() { int n = 34; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 34 простым. ### Response: public bool IsPrime() { int n = 34; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
84,219
ru
C#
var_decl
beginner
Как объявить переменную offset со значением 257975 в C#?
int offset = 257975;
### Instruction: Как объявить переменную offset со значением 257975 в C#? ### Response: int offset = 257975;
34,627,589
ru
Java
string_ops
advanced
Напишите на 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: Напишите на 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; }
46,672,778
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript функцию, определяющую, является ли число 74 простым.
function isPrime() { let n = 74; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 74 простым. ### Response: function isPrime() { let n = 74; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
23,066,345
en
C#
string_ops
intermediate
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(); }
20,133,089
en
Java
string_ops
advanced
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; }
4,380,519
kk
Unity
var_decl
beginner
Unity тілінде 190789 мәнімен score айнымалысын қалай жариялауға болады?
int score = 190789;
### Instruction: Unity тілінде 190789 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 190789;
95,959,781
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; }
19,607,422
en
Unity
logic_ops
intermediate
Write a function that determines if the number 222 is prime in Unity.
public bool IsPrime() { int n = 222; 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 222 is prime in Unity. ### Response: public bool IsPrime() { int n = 222; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
30,979,480
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; }
45,380,811
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; }
19,430,175
kk
Java
array_ops
advanced
Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
13,660,246
kk
C#
logic_ops
intermediate
C# тилінде 346 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 346; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 346 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 346; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,078,620
en
JavaScript
var_decl
beginner
How to declare a variable total with value 371273 in JavaScript?
let total = 371273;
### Instruction: How to declare a variable total with value 371273 in JavaScript? ### Response: let total = 371273;
11,913,456
kk
Python
array_ops
intermediate
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
45,336,674
en
JavaScript
array_ops
intermediate
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);
4,099,210
ru
C++
var_decl
beginner
Как объявить переменную total со значением 899602 в C++?
int total = 899602;
### Instruction: Как объявить переменную total со значением 899602 в C++? ### Response: int total = 899602;
2,496,701
kk
Unity
var_decl
beginner
Unity тілінде 110090 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 110090;
### Instruction: Unity тілінде 110090 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 110090;
81,825,323
kk
Python
string_ops
advanced
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
4,334,012
ru
C++
var_decl
beginner
Как объявить переменную count со значением 518596 в C++?
int count = 518596;
### Instruction: Как объявить переменную count со значением 518596 в C++? ### Response: int count = 518596;
4,592,025
en
Python
var_decl
beginner
How to declare a variable total with value 420995 in Python?
total = 420995
### Instruction: How to declare a variable total with value 420995 in Python? ### Response: total = 420995
3,392,099
en
C++
var_decl
beginner
How to declare a variable level with value 460600 in C++?
int level = 460600;
### Instruction: How to declare a variable level with value 460600 in C++? ### Response: int level = 460600;
4,006,254
en
Java
var_decl
beginner
How to declare a variable rate with value 929607 in Java?
int rate = 929607;
### Instruction: How to declare a variable rate with value 929607 in Java? ### Response: int rate = 929607;
99,131,536
ru
Java
string_ops
advanced
Напишите на 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: Напишите на 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; }
991,337
en
Java
var_decl
beginner
How to declare a variable data with value 342724 in Java?
int data = 342724;
### Instruction: How to declare a variable data with value 342724 in Java? ### Response: int data = 342724;
30,602,291
kk
Python
logic_ops
intermediate
Python тилінде 2031 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
def is_leap(): year = 2031 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Python тилінде 2031 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: def is_leap(): year = 2031 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
4,044,061
ru
Python
var_decl
beginner
Как объявить переменную level со значением 549508 в Python?
level = 549508
### Instruction: Как объявить переменную level со значением 549508 в Python? ### Response: level = 549508
3,745,863
kk
Python
var_decl
beginner
Python тілінде 102268 мәнімен timer айнымалысын қалай жариялауға болады?
timer = 102268
### Instruction: Python тілінде 102268 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: timer = 102268
3,954,932
kk
C#
var_decl
beginner
C# тілінде 768456 мәнімен total айнымалысын қалай жариялауға болады?
int total = 768456;
### Instruction: C# тілінде 768456 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 768456;
50,886,273
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); }
38,187,486
en
JavaScript
string_ops
intermediate
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();
52,843,908
en
JavaScript
array_ops
intermediate
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);
57,116
ru
JavaScript
factorial
advanced
Напиши функцию на JavaScript, которая вычисляет факториал числа 3700.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(3700));
### Instruction: Напиши функцию на JavaScript, которая вычисляет факториал числа 3700. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(3700));
635,562
ru
C#
factorial
advanced
Напиши функцию на C#, которая вычисляет факториал числа 9993.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(9993));
### Instruction: Напиши функцию на C#, которая вычисляет факториал числа 9993. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(9993));
60,991,451
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 275 простым.
public bool IsPrime() { int n = 275; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 275 простым. ### Response: public bool IsPrime() { int n = 275; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
515,654
kk
Unity
sum_n
intermediate
Unity тілінде 1-ден 7614-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7614)); }
### Instruction: Unity тілінде 1-ден 7614-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7614)); }
38,193,573
en
Python
string_ops
advanced
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аеёиоуыэюя')
2,944,249
en
C++
var_decl
beginner
How to declare a variable level with value 572255 in C++?
int level = 572255;
### Instruction: How to declare a variable level with value 572255 in C++? ### Response: int level = 572255;
2,347,360
ru
C++
var_decl
beginner
Как объявить переменную level со значением 12000 в C++?
int level = 12000;
### Instruction: Как объявить переменную level со значением 12000 в C++? ### Response: int level = 12000;
192,778
ru
JavaScript
var_decl
beginner
Как объявить переменную amount со значением 603713 в JavaScript?
let amount = 603713;
### Instruction: Как объявить переменную amount со значением 603713 в JavaScript? ### Response: let amount = 603713;
27,031,665
ru
C++
string_ops
intermediate
Напишите на C++ функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на C++ функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
4,058,874
en
Python
var_decl
beginner
How to declare a variable level with value 560700 in Python?
level = 560700
### Instruction: How to declare a variable level with value 560700 in Python? ### Response: level = 560700
12,643,154
kk
Java
string_ops
intermediate
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
61,253,045
kk
Java
array_ops
intermediate
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; }
70,707,695
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(); }
4,077,320
en
Python
var_decl
beginner
How to declare a variable total with value 865577 in Python?
total = 865577
### Instruction: How to declare a variable total with value 865577 in Python? ### Response: total = 865577
93,708,466
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); }
49,258,511
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; }
18,889,143
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; }
25,524,781
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; }
71,229,791
ru
Python
string_ops
advanced
Напишите на Python функцию, которая считает количество гласных букв в тексте.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Напишите на Python функцию, которая считает количество гласных букв в тексте. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
32,324,929
en
Python
array_ops
intermediate
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)
73,137,357
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(); }
1,593,353
ru
Java
var_decl
beginner
Как объявить переменную size со значением 243850 в Java?
int size = 243850;
### Instruction: Как объявить переменную size со значением 243850 в Java? ### Response: int size = 243850;