id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
1,321,515 | en | C# | var_decl | beginner | How to declare a variable timer with value 541996 in C#? | int timer = 541996; | ### Instruction:
How to declare a variable timer with value 541996 in C#?
### Response:
int timer = 541996; |
4,404,907 | ru | Python | var_decl | beginner | Как объявить переменную amount со значением 262221 в Python? | amount = 262221 | ### Instruction:
Как объявить переменную amount со значением 262221 в Python?
### Response:
amount = 262221 |
80,907,778 | 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(); |
33,552,115 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
846,364 | ru | Unity | var_decl | beginner | Как объявить переменную limit со значением 227870 в Unity? | int limit = 227870; | ### Instruction:
Как объявить переменную limit со значением 227870 в Unity?
### Response:
int limit = 227870; |
62,970,179 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая разворачивает список задом наперед. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
### Response:
const reverseArr = arr => arr.reverse(); |
4,610,183 | kk | C++ | var_decl | beginner | C++ тілінде 280449 мәнімен health айнымалысын қалай жариялауға болады? | int health = 280449; | ### Instruction:
C++ тілінде 280449 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 280449; |
57,721,677 | 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] |
35,470,910 | en | Unity | string_ops | intermediate | Write a function that checks if a string is a palindrome in Unity. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in Unity.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
1,104,237 | en | Java | var_decl | beginner | How to declare a variable data with value 900623 in Java? | int data = 900623; | ### Instruction:
How to declare a variable data with value 900623 in Java?
### Response:
int data = 900623; |
4,693,294 | en | C# | var_decl | beginner | How to declare a variable count with value 276748 in C#? | int count = 276748; | ### Instruction:
How to declare a variable count with value 276748 in C#?
### Response:
int count = 276748; |
1,293,854 | ru | C++ | var_decl | beginner | Как объявить переменную buffer со значением 398957 в C++? | int buffer = 398957; | ### Instruction:
Как объявить переменную buffer со значением 398957 в C++?
### Response:
int buffer = 398957; |
1,222,528 | ru | C# | var_decl | beginner | Как объявить переменную timer со значением 169910 в C#? | int timer = 169910; | ### Instruction:
Как объявить переменную timer со значением 169910 в C#?
### Response:
int timer = 169910; |
71,871,383 | 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;
} |
4,497,036 | en | C# | var_decl | beginner | How to declare a variable speed with value 130565 in C#? | int speed = 130565; | ### Instruction:
How to declare a variable speed with value 130565 in C#?
### Response:
int speed = 130565; |
390,127 | ru | Python | factorial | advanced | Напиши функцию на Python, которая вычисляет факториал числа 4636. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(4636)) | ### Instruction:
Напиши функцию на Python, которая вычисляет факториал числа 4636.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(4636)) |
21,029,870 | 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);
} |
78,419,894 | 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;
} |
64,925,326 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 2079 високосным. | def is_leap():
year = 2079
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2079 високосным.
### Response:
def is_leap():
year = 2079
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
4,743,433 | ru | C++ | var_decl | beginner | Как объявить переменную health со значением 786068 в C++? | int health = 786068; | ### Instruction:
Как объявить переменную health со значением 786068 в C++?
### Response:
int health = 786068; |
75,043,255 | ru | Java | string_ops | advanced | Напишите на Java функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Java функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
87,084,900 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
4,556,995 | ru | Python | var_decl | beginner | Как объявить переменную buffer со значением 175763 в Python? | buffer = 175763 | ### Instruction:
Как объявить переменную buffer со значением 175763 в Python?
### Response:
buffer = 175763 |
77,242,993 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 2016 високосным. | public bool IsLeap() {
int y = 2016;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2016 високосным.
### Response:
public bool IsLeap() {
int y = 2016;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
55,774,857 | 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;
} |
23,960,610 | kk | Python | logic_ops | intermediate | Python тилінде 310 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 310
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 310 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 310
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
68,789,967 | en | Unity | string_ops | intermediate | Write a function that converts a string to uppercase in Unity. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Unity.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
2,723,043 | ru | Python | var_decl | beginner | Как объявить переменную offset со значением 860116 в Python? | offset = 860116 | ### Instruction:
Как объявить переменную offset со значением 860116 в Python?
### Response:
offset = 860116 |
56,160,884 | kk | Unity | array_ops | advanced | Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
732,693 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 847870 мәнімен data айнымалысын қалай жариялауға болады? | let data = 847870; | ### Instruction:
JavaScript тілінде 847870 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
let data = 847870; |
88,820,224 | ru | C# | string_ops | advanced | Напишите на C# функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на C# функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
10,574,077 | 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,837,288 | en | Python | var_decl | beginner | How to declare a variable buffer with value 504669 in Python? | buffer = 504669 | ### Instruction:
How to declare a variable buffer with value 504669 in Python?
### Response:
buffer = 504669 |
83,652 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 839. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(839) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 839.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(839) << std::endl; |
322,437 | kk | Unity | var_decl | beginner | Unity тілінде 803648 мәнімен data айнымалысын қалай жариялауға болады? | int data = 803648; | ### Instruction:
Unity тілінде 803648 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 803648; |
94,549,618 | en | Python | logic_ops | intermediate | Write logic to check if the year 2027 is a leap year in Python. | def is_leap():
year = 2027
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2027 is a leap year in Python.
### Response:
def is_leap():
year = 2027
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
3,820,139 | kk | Unity | var_decl | beginner | Unity тілінде 221405 мәнімен result айнымалысын қалай жариялауға болады? | int result = 221405; | ### Instruction:
Unity тілінде 221405 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 221405; |
49,118,583 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
32,486,318 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 1953 високосным. | public bool IsLeap() {
int y = 1953;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1953 високосным.
### Response:
public bool IsLeap() {
int y = 1953;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
222,998 | ru | JavaScript | sum_n | intermediate | Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 3231. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(3231)); | ### Instruction:
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 3231.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(3231)); |
2,083,140 | ru | JavaScript | var_decl | beginner | Как объявить переменную speed со значением 562333 в JavaScript? | let speed = 562333; | ### Instruction:
Как объявить переменную speed со значением 562333 в JavaScript?
### Response:
let speed = 562333; |
3,122,040 | en | Unity | var_decl | beginner | How to declare a variable limit with value 418449 in Unity? | int limit = 418449; | ### Instruction:
How to declare a variable limit with value 418449 in Unity?
### Response:
int limit = 418449; |
86,500,688 | ru | Unity | logic_ops | advanced | Напишите на Unity функцию, определяющую, является ли число 407 простым. | public bool IsPrime() {
int n = 407;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 407 простым.
### Response:
public bool IsPrime() {
int n = 407;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
271,565 | kk | C++ | sum_n | intermediate | C++ тілінде 1-ден 9359-ге дейінгі сандардың қосындысын есептейтін функция жаз. | 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(9359) << std::endl; | ### Instruction:
C++ тілінде 1-ден 9359-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### 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(9359) << std::endl; |
38,960,308 | ru | Unity | string_ops | intermediate | Напишите на Unity функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на Unity функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
90,099,664 | ru | C++ | logic_ops | advanced | Напишите на C++ логику проверки, является ли год 2052 високосным. | public bool IsLeap() {
int y = 2052;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 2052 високосным.
### Response:
public bool IsLeap() {
int y = 2052;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
84,860,555 | 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,194,068 | kk | Python | var_decl | beginner | Python тілінде 81753 мәнімен score айнымалысын қалай жариялауға болады? | score = 81753 | ### Instruction:
Python тілінде 81753 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
score = 81753 |
2,836,458 | ru | Unity | var_decl | beginner | Как объявить переменную index со значением 385300 в Unity? | int index = 385300; | ### Instruction:
Как объявить переменную index со значением 385300 в Unity?
### Response:
int index = 385300; |
1,047,041 | kk | C++ | var_decl | beginner | C++ тілінде 571078 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 571078; | ### Instruction:
C++ тілінде 571078 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 571078; |
2,580,954 | en | C# | var_decl | beginner | How to declare a variable rate with value 797245 in C#? | int rate = 797245; | ### Instruction:
How to declare a variable rate with value 797245 in C#?
### Response:
int rate = 797245; |
4,397,548 | en | C++ | var_decl | beginner | How to declare a variable level with value 764173 in C++? | int level = 764173; | ### Instruction:
How to declare a variable level with value 764173 in C++?
### Response:
int level = 764173; |
696,834 | ru | Java | var_decl | beginner | Как объявить переменную index со значением 680640 в Java? | int index = 680640; | ### Instruction:
Как объявить переменную index со значением 680640 в Java?
### Response:
int index = 680640; |
15,234,265 | en | Python | array_ops | intermediate | Write a function that reverses a list in Python. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Write a function that reverses a list in Python.
### Response:
def reverse_list(arr):
return arr[::-1] |
79,320,892 | kk | C++ | string_ops | advanced | C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
3,578,422 | ru | JavaScript | var_decl | beginner | Как объявить переменную index со значением 428913 в JavaScript? | let index = 428913; | ### Instruction:
Как объявить переменную index со значением 428913 в JavaScript?
### Response:
let index = 428913; |
46,933,536 | 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] |
37,261,551 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
1,142,146 | en | Java | var_decl | beginner | How to declare a variable y with value 88625 in Java? | int y = 88625; | ### Instruction:
How to declare a variable y with value 88625 in Java?
### Response:
int y = 88625; |
26,219,659 | kk | Unity | logic_ops | intermediate | Unity тилінде 2035 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2035;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2035 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2035;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
42,700,066 | kk | Java | string_ops | advanced | 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;
} |
1,494,825 | kk | Java | var_decl | beginner | Java тілінде 753435 мәнімен x айнымалысын қалай жариялауға болады? | int x = 753435; | ### Instruction:
Java тілінде 753435 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 753435; |
60,440,230 | kk | Python | string_ops | advanced | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
3,491,057 | kk | Unity | var_decl | beginner | Unity тілінде 548872 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 548872; | ### Instruction:
Unity тілінде 548872 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 548872; |
2,048,157 | en | C# | var_decl | beginner | How to declare a variable index with value 273052 in C#? | int index = 273052; | ### Instruction:
How to declare a variable index with value 273052 in C#?
### Response:
int index = 273052; |
412,718 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 1460. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(1460));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 1460.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(1460));
} |
42,405,741 | 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);
} |
57,939,992 | kk | Python | logic_ops | advanced | Python тилінде 74 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 74
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 74 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 74
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
37,128,729 | en | C++ | string_ops | advanced | Write a function that counts vowels in a text in C++. | 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 C++.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
40,296,725 | ru | Java | logic_ops | intermediate | Напишите на Java логику проверки, является ли год 1985 високосным. | public bool IsLeap() {
int y = 1985;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1985 високосным.
### Response:
public bool IsLeap() {
int y = 1985;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
46,006,370 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 2030 високосным. | public bool IsLeap() {
int y = 2030;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 2030 високосным.
### Response:
public bool IsLeap() {
int y = 2030;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,578,093 | kk | C++ | var_decl | beginner | C++ тілінде 891112 мәнімен size айнымалысын қалай жариялауға болады? | int size = 891112; | ### Instruction:
C++ тілінде 891112 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 891112; |
90,542,734 | kk | C++ | logic_ops | advanced | C++ тилінде 195 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 195;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 195 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 195;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
43,597,971 | 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;
} |
16,436,292 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
52,553,309 | en | Unity | logic_ops | intermediate | Write logic to check if the year 2051 is a leap year in Unity. | public bool IsLeap() {
int y = 2051;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2051 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2051;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,739,666 | ru | Java | var_decl | beginner | Как объявить переменную total со значением 57198 в Java? | int total = 57198; | ### Instruction:
Как объявить переменную total со значением 57198 в Java?
### Response:
int total = 57198; |
79,391,531 | 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();
} |
92,691,180 | kk | Java | logic_ops | intermediate | Java тилінде 170 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 170;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 170 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 170;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,026,715 | en | C++ | var_decl | beginner | How to declare a variable limit with value 285376 in C++? | int limit = 285376; | ### Instruction:
How to declare a variable limit with value 285376 in C++?
### Response:
int limit = 285376; |
58,743,997 | en | Python | logic_ops | intermediate | Write logic to check if the year 2067 is a leap year in Python. | def is_leap():
year = 2067
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2067 is a leap year in Python.
### Response:
def is_leap():
year = 2067
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
4,034,799 | kk | C# | var_decl | beginner | C# тілінде 582977 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 582977; | ### Instruction:
C# тілінде 582977 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 582977; |
93,130,601 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 135 простым. | public bool IsPrime() {
int n = 135;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 135 простым.
### Response:
public bool IsPrime() {
int n = 135;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
45,776,035 | kk | C# | array_ops | advanced | C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
311,262 | kk | C# | factorial | advanced | C# тілінде 4845 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(4845)); | ### Instruction:
C# тілінде 4845 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(4845)); |
1,970,491 | kk | Java | var_decl | beginner | Java тілінде 310865 мәнімен total айнымалысын қалай жариялауға болады? | int total = 310865; | ### Instruction:
Java тілінде 310865 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 310865; |
26,895,874 | 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();
} |
74,440,254 | ru | 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); |
78,453,743 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
59,281,715 | 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);
} |
66,951,774 | en | JavaScript | array_ops | intermediate | Write a function that finds the maximum number in an array in JavaScript. | const getMax = arr => Math.max(...arr); | ### Instruction:
Write a function that finds the maximum number in an array in JavaScript.
### Response:
const getMax = arr => Math.max(...arr); |
23,835,134 | 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,159,853 | kk | C# | var_decl | beginner | C# тілінде 208940 мәнімен total айнымалысын қалай жариялауға болады? | int total = 208940; | ### Instruction:
C# тілінде 208940 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 208940; |
90,998,533 | kk | Java | logic_ops | intermediate | Java тилінде 1945 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1945;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1945 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1945;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,974,795 | ru | JavaScript | var_decl | beginner | Как объявить переменную size со значением 334159 в JavaScript? | let size = 334159; | ### Instruction:
Как объявить переменную size со значением 334159 в JavaScript?
### Response:
let size = 334159; |
28,809,854 | en | Unity | array_ops | intermediate | Write a function that finds the maximum number in an array in Unity. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in Unity.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
32,134,661 | en | Java | array_ops | intermediate | 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;
} |
55,367,695 | ru | C++ | logic_ops | intermediate | Напишите на C++ функцию, определяющую, является ли число 7 простым. | public bool IsPrime() {
int n = 7;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 7 простым.
### Response:
public bool IsPrime() {
int n = 7;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
33,820,925 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 450 is prime in C++. | public bool IsPrime() {
int n = 450;
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 450 is prime in C++.
### Response:
public bool IsPrime() {
int n = 450;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
13,913,779 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.