id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
359,682 | ru | C# | sum_n | intermediate | Напиши функцию на C#, которая считает сумму чисел от 1 до 9178. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(9178)); | ### Instruction:
Напиши функцию на C#, которая считает сумму чисел от 1 до 9178.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(9178)); |
53,962,671 | en | Python | logic_ops | intermediate | Write logic to check if the year 1993 is a leap year in Python. | def is_leap():
year = 1993
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1993 is a leap year in Python.
### Response:
def is_leap():
year = 1993
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
1,324,955 | en | Java | var_decl | beginner | How to declare a variable health with value 33110 in Java? | int health = 33110; | ### Instruction:
How to declare a variable health with value 33110 in Java?
### Response:
int health = 33110; |
35,571,297 | en | C# | logic_ops | advanced | Write logic to check if the year 1997 is a leap year in C#. | public bool IsLeap() {
int 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 C#.
### Response:
public bool IsLeap() {
int y = 1997;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
937,411 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 9191. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(9191) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 9191.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(9191) << std::endl; |
35,303,264 | en | Python | logic_ops | intermediate | Write a function that determines if the number 296 is prime in Python. | def is_prime():
n = 296
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 296 is prime in Python.
### Response:
def is_prime():
n = 296
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
97,899,376 | en | Python | string_ops | advanced | Write a function that checks if a string is a palindrome in Python. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Write a function that checks if a string is a palindrome in Python.
### Response:
def is_palindrome(s):
return s == s[::-1] |
1,022,070 | en | C# | var_decl | beginner | How to declare a variable health with value 987330 in C#? | int health = 987330; | ### Instruction:
How to declare a variable health with value 987330 in C#?
### Response:
int health = 987330; |
577,911 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 621193 мәнімен amount айнымалысын қалай жариялауға болады? | let amount = 621193; | ### Instruction:
JavaScript тілінде 621193 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
let amount = 621193; |
50,736,198 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 164 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 164;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 164 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 164;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
2,461,583 | kk | C# | var_decl | beginner | C# тілінде 319164 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 319164; | ### Instruction:
C# тілінде 319164 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 319164; |
74,838,319 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
3,057,696 | kk | Python | var_decl | beginner | Python тілінде 41414 мәнімен rate айнымалысын қалай жариялауға болады? | rate = 41414 | ### Instruction:
Python тілінде 41414 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
rate = 41414 |
691,638 | en | JavaScript | var_decl | beginner | How to declare a variable health with value 407232 in JavaScript? | let health = 407232; | ### Instruction:
How to declare a variable health with value 407232 in JavaScript?
### Response:
let health = 407232; |
519,835 | ru | C# | sum_n | intermediate | Напиши функцию на C#, которая считает сумму чисел от 1 до 9700. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(9700)); | ### Instruction:
Напиши функцию на C#, которая считает сумму чисел от 1 до 9700.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(9700)); |
63,405,903 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 2064 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 2064;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 2064 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 2064;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
75,808,400 | 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;
} |
96,875,213 | 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);
} |
44,021,493 | 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;
} |
69,388,172 | 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(); |
56,114,867 | ru | Unity | array_ops | intermediate | Напишите на Unity функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
1,442,500 | en | Unity | var_decl | beginner | How to declare a variable index with value 596706 in Unity? | int index = 596706; | ### Instruction:
How to declare a variable index with value 596706 in Unity?
### Response:
int index = 596706; |
40,586,236 | ru | 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);
} |
1,840,694 | ru | Python | var_decl | beginner | Как объявить переменную buffer со значением 279416 в Python? | buffer = 279416 | ### Instruction:
Как объявить переменную buffer со значением 279416 в Python?
### Response:
buffer = 279416 |
13,544,164 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
48,276,477 | 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); |
74,368,234 | kk | 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;
} |
38,848,429 | en | Python | string_ops | intermediate | Write a function that converts a string to uppercase in Python. | def to_upper(s):
return s.upper() | ### Instruction:
Write a function that converts a string to uppercase in Python.
### Response:
def to_upper(s):
return s.upper() |
3,081,361 | en | C++ | var_decl | beginner | How to declare a variable result with value 650055 in C++? | int result = 650055; | ### Instruction:
How to declare a variable result with value 650055 in C++?
### Response:
int result = 650055; |
85,325,777 | en | C# | array_ops | intermediate | Write a function that reverses a list in C#. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C#.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
75,664 | ru | C# | var_decl | beginner | Как объявить переменную speed со значением 873249 в C#? | int speed = 873249; | ### Instruction:
Как объявить переменную speed со значением 873249 в C#?
### Response:
int speed = 873249; |
22,430,455 | en | Python | logic_ops | intermediate | Write logic to check if the year 1916 is a leap year in Python. | def is_leap():
year = 1916
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1916 is a leap year in Python.
### Response:
def is_leap():
year = 1916
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
3,623,817 | ru | Python | var_decl | beginner | Как объявить переменную x со значением 546920 в Python? | x = 546920 | ### Instruction:
Как объявить переменную x со значением 546920 в Python?
### Response:
x = 546920 |
72,264,161 | 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();
} |
38,311,693 | ru | 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,181,017 | en | C++ | var_decl | beginner | How to declare a variable health with value 619530 in C++? | int health = 619530; | ### Instruction:
How to declare a variable health with value 619530 in C++?
### Response:
int health = 619530; |
58,336,395 | kk | C++ | logic_ops | advanced | C++ тилінде 344 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 344;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 344 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 344;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
84,658,526 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 37 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 37;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 37 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 37;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
653,592 | ru | JavaScript | var_decl | beginner | Как объявить переменную health со значением 649950 в JavaScript? | let health = 649950; | ### Instruction:
Как объявить переменную health со значением 649950 в JavaScript?
### Response:
let health = 649950; |
561,725 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 563570 мәнімен level айнымалысын қалай жариялауға болады? | let level = 563570; | ### Instruction:
JavaScript тілінде 563570 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
let level = 563570; |
74,249,007 | kk | Python | logic_ops | intermediate | Python тилінде 306 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 306
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 306 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 306
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
2,154,705 | ru | C++ | var_decl | beginner | Как объявить переменную amount со значением 696809 в C++? | int amount = 696809; | ### Instruction:
Как объявить переменную amount со значением 696809 в C++?
### Response:
int amount = 696809; |
36,778,283 | kk | Python | logic_ops | advanced | Python тилінде 1956 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1956
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1956 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1956
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
73,456,845 | ru | C# | string_ops | intermediate | Напишите на C# функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на C# функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
74,462,290 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript логику проверки, является ли год 2002 високосным. | function isLeap() {
let y = 2002;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 2002 високосным.
### Response:
function isLeap() {
let y = 2002;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
3,505,794 | en | Unity | var_decl | beginner | How to declare a variable speed with value 335647 in Unity? | int speed = 335647; | ### Instruction:
How to declare a variable speed with value 335647 in Unity?
### Response:
int speed = 335647; |
3,434,138 | ru | Java | var_decl | beginner | Как объявить переменную level со значением 41584 в Java? | int level = 41584; | ### Instruction:
Как объявить переменную level со значением 41584 в Java?
### Response:
int level = 41584; |
41,297,056 | kk | Unity | array_ops | advanced | Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
28,647,199 | ru | C# | array_ops | advanced | Напишите на C# функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на C# функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
443,901 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 9542. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(9542));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 9542.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(9542));
} |
52,186,831 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
24,869,291 | 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;
} |
89,339,812 | kk | 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;
} |
773,229 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 8109. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(8109)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 8109.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(8109)); |
67,476,722 | en | Python | array_ops | advanced | Write a function that filters only even numbers from a list in Python. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Write a function that filters only even numbers from a list in Python.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
97,106,727 | kk | Java | array_ops | advanced | Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
3,923,510 | ru | Java | var_decl | beginner | Как объявить переменную health со значением 691846 в Java? | int health = 691846; | ### Instruction:
Как объявить переменную health со значением 691846 в Java?
### Response:
int health = 691846; |
93,964,137 | kk | Java | logic_ops | advanced | Java тилінде 1961 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1961;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1961 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1961;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
59,151,477 | 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аеёиоуыэюя') |
20,401,567 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript логику проверки, является ли год 2090 високосным. | function isLeap() {
let y = 2090;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 2090 високосным.
### Response:
function isLeap() {
let y = 2090;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
43,123,912 | kk | JavaScript | string_ops | advanced | JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
92,712,025 | en | Python | string_ops | intermediate | Write a function that counts vowels in a text in Python. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Write a function that counts vowels in a text in Python.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
23,304,627 | kk | 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,956,961 | en | C++ | var_decl | beginner | How to declare a variable offset with value 406249 in C++? | int offset = 406249; | ### Instruction:
How to declare a variable offset with value 406249 in C++?
### Response:
int offset = 406249; |
81,570,290 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая проверяет, является ли строка палиндромом. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
### Response:
def is_palindrome(s):
return s == s[::-1] |
4,706,805 | ru | C# | var_decl | beginner | Как объявить переменную offset со значением 783913 в C#? | int offset = 783913; | ### Instruction:
Как объявить переменную offset со значением 783913 в C#?
### Response:
int offset = 783913; |
27,513,922 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 2017 високосным. | def is_leap():
year = 2017
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2017 високосным.
### Response:
def is_leap():
year = 2017
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
2,522,119 | en | Java | var_decl | beginner | How to declare a variable x with value 844757 in Java? | int x = 844757; | ### Instruction:
How to declare a variable x with value 844757 in Java?
### Response:
int x = 844757; |
484,001 | ru | Unity | var_decl | beginner | Как объявить переменную total со значением 632913 в Unity? | int total = 632913; | ### Instruction:
Как объявить переменную total со значением 632913 в Unity?
### Response:
int total = 632913; |
84,665,266 | ru | C# | array_ops | advanced | Напишите на C# функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на C# функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
590,159 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 6960. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6960)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 6960.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6960)) |
95,610,249 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
3,943,954 | ru | Java | var_decl | beginner | Как объявить переменную index со значением 396710 в Java? | int index = 396710; | ### Instruction:
Как объявить переменную index со значением 396710 в Java?
### Response:
int index = 396710; |
70,988,427 | kk | C# | logic_ops | advanced | C# тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1983;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1983;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
71,251,862 | kk | Unity | logic_ops | intermediate | 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);
} |
28,322,937 | en | C++ | array_ops | intermediate | Write a function that reverses a list in C++. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C++.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
3,885,486 | kk | C# | var_decl | beginner | C# тілінде 652940 мәнімен index айнымалысын қалай жариялауға болады? | int index = 652940; | ### Instruction:
C# тілінде 652940 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 652940; |
33,360,169 | 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,473,964 | kk | C# | var_decl | beginner | C# тілінде 877005 мәнімен size айнымалысын қалай жариялауға болады? | int size = 877005; | ### Instruction:
C# тілінде 877005 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 877005; |
60,477,007 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 312 простым. | public bool IsPrime() {
int n = 312;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 312 простым.
### Response:
public bool IsPrime() {
int n = 312;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,738,135 | kk | Java | var_decl | beginner | Java тілінде 774653 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 774653; | ### Instruction:
Java тілінде 774653 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 774653; |
34,962,692 | kk | Python | array_ops | intermediate | Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
22,767,528 | en | C++ | array_ops | advanced | Write a function that reverses a list in C++. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C++.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
26,467,359 | 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;
} |
31,661,931 | 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(); |
80,735,656 | kk | C++ | logic_ops | advanced | C++ тилінде 2060 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2060;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2060 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2060;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,687,712 | ru | C# | var_decl | beginner | Как объявить переменную timer со значением 441427 в C#? | int timer = 441427; | ### Instruction:
Как объявить переменную timer со значением 441427 в C#?
### Response:
int timer = 441427; |
3,127,041 | ru | C# | var_decl | beginner | Как объявить переменную value со значением 688713 в C#? | int value = 688713; | ### Instruction:
Как объявить переменную value со значением 688713 в C#?
### Response:
int value = 688713; |
31,227,579 | ru | 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;
} |
33,466,490 | en | C# | array_ops | advanced | Write a function that reverses a list in C#. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C#.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
69,401,307 | kk | Java | array_ops | advanced | Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
4,637,530 | en | C++ | var_decl | beginner | How to declare a variable score with value 764895 in C++? | int score = 764895; | ### Instruction:
How to declare a variable score with value 764895 in C++?
### Response:
int score = 764895; |
4,710,015 | kk | Python | var_decl | beginner | Python тілінде 838070 мәнімен speed айнымалысын қалай жариялауға болады? | speed = 838070 | ### Instruction:
Python тілінде 838070 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
speed = 838070 |
64,294,963 | 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аеёиоуыэюя') |
752,647 | en | Unity | var_decl | beginner | How to declare a variable y with value 330827 in Unity? | int y = 330827; | ### Instruction:
How to declare a variable y with value 330827 in Unity?
### Response:
int y = 330827; |
25,413,390 | 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();
} |
66,189,821 | kk | 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); |
12,054,895 | kk | Unity | array_ops | advanced | Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
65,627,310 | ru | Unity | logic_ops | advanced | Напишите на Unity функцию, определяющую, является ли число 211 простым. | public bool IsPrime() {
int n = 211;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 211 простым.
### Response:
public bool IsPrime() {
int n = 211;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,270,544 | kk | C# | var_decl | beginner | C# тілінде 66058 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 66058; | ### Instruction:
C# тілінде 66058 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 66058; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.