id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
3,505,604 | ru | C++ | var_decl | beginner | Как объявить переменную size со значением 428106 в C++? | int size = 428106; | ### Instruction:
Как объявить переменную size со значением 428106 в C++?
### Response:
int size = 428106; |
87,012,784 | 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;
} |
99,875,588 | en | C# | array_ops | intermediate | Write a function that filters only even numbers from a list in C#. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in C#.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
3,180,919 | ru | Java | var_decl | beginner | Как объявить переменную value со значением 962403 в Java? | int value = 962403; | ### Instruction:
Как объявить переменную value со значением 962403 в Java?
### Response:
int value = 962403; |
4,124,689 | kk | Unity | var_decl | beginner | Unity тілінде 70096 мәнімен data айнымалысын қалай жариялауға болады? | int data = 70096; | ### Instruction:
Unity тілінде 70096 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 70096; |
2,135,139 | ru | Unity | var_decl | beginner | Как объявить переменную health со значением 427309 в Unity? | int health = 427309; | ### Instruction:
Как объявить переменную health со значением 427309 в Unity?
### Response:
int health = 427309; |
4,445,721 | en | JavaScript | var_decl | beginner | How to declare a variable weight with value 977621 in JavaScript? | let weight = 977621; | ### Instruction:
How to declare a variable weight with value 977621 in JavaScript?
### Response:
let weight = 977621; |
86,780,626 | ru | Unity | logic_ops | advanced | Напишите на Unity функцию, определяющую, является ли число 231 простым. | public bool IsPrime() {
int n = 231;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 231 простым.
### Response:
public bool IsPrime() {
int n = 231;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
33,810,182 | 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;
} |
257,486 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 6373. | 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(6373) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 6373.
### 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(6373) << std::endl; |
75,362,629 | ru | 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;
} |
35,118,057 | 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();
} |
188,712 | ru | Python | sum_n | intermediate | Напиши функцию на Python, которая считает сумму чисел от 1 до 8972. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(8972)) | ### Instruction:
Напиши функцию на Python, которая считает сумму чисел от 1 до 8972.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(8972)) |
80,209,700 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая переводит строку в верхний регистр. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
### Response:
const toUpper = s => s.toUpperCase(); |
78,715,997 | en | C++ | array_ops | intermediate | Write a function that filters only even numbers from a list in C++. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in C++.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
3,177,624 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 511858 мәнімен timer айнымалысын қалай жариялауға болады? | let timer = 511858; | ### Instruction:
JavaScript тілінде 511858 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
let timer = 511858; |
73,668,781 | ru | 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;
} |
46,834,772 | en | Python | logic_ops | advanced | Write logic to check if the year 2063 is a leap year in Python. | def is_leap():
year = 2063
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2063 is a leap year in Python.
### Response:
def is_leap():
year = 2063
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
36,265,787 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 258 простым. | public bool IsPrime() {
int n = 258;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 258 простым.
### Response:
public bool IsPrime() {
int n = 258;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
16,702,478 | kk | JavaScript | array_ops | advanced | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
82,166,259 | kk | Unity | string_ops | advanced | Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
55,570,803 | 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);
} |
27,420,818 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 188 простым. | def is_prime():
n = 188
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 188 простым.
### Response:
def is_prime():
n = 188
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
25,019,695 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 1932 високосным. | def is_leap():
year = 1932
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1932 високосным.
### Response:
def is_leap():
year = 1932
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
243,594 | kk | Python | factorial | advanced | Python тілінде 2958 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2958)) | ### Instruction:
Python тілінде 2958 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2958)) |
23,334,435 | 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();
} |
72,040,161 | 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;
} |
29,079,912 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 2052 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 2052;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 2052 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 2052;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
3,794,026 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 910262 мәнімен value айнымалысын қалай жариялауға болады? | let value = 910262; | ### Instruction:
JavaScript тілінде 910262 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
let value = 910262; |
38,250,928 | 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(''); |
2,804,798 | kk | Unity | var_decl | beginner | Unity тілінде 139327 мәнімен score айнымалысын қалай жариялауға болады? | int score = 139327; | ### Instruction:
Unity тілінде 139327 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 139327; |
39,469,810 | 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(); |
60,591,105 | kk | Unity | logic_ops | intermediate | Unity тилінде 424 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 424;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 424 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 424;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,105,547 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 688140 мәнімен limit айнымалысын қалай жариялауға болады? | let limit = 688140; | ### Instruction:
JavaScript тілінде 688140 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
let limit = 688140; |
53,156,223 | 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();
} |
4,976,960 | en | C++ | var_decl | beginner | How to declare a variable result with value 979566 in C++? | int result = 979566; | ### Instruction:
How to declare a variable result with value 979566 in C++?
### Response:
int result = 979566; |
37,652,220 | 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;
} |
63,555,200 | 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();
} |
44,536,054 | 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);
} |
1,588,047 | en | Unity | var_decl | beginner | How to declare a variable amount with value 569673 in Unity? | int amount = 569673; | ### Instruction:
How to declare a variable amount with value 569673 in Unity?
### Response:
int amount = 569673; |
626,353 | kk | C++ | sum_n | intermediate | C++ тілінде 1-ден 1106-ге дейінгі сандардың қосындысын есептейтін функция жаз. | 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(1106) << std::endl; | ### Instruction:
C++ тілінде 1-ден 1106-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### 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(1106) << std::endl; |
78,332,824 | kk | C++ | string_ops | intermediate | C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
4,816,633 | en | JavaScript | var_decl | beginner | How to declare a variable y with value 900058 in JavaScript? | let y = 900058; | ### Instruction:
How to declare a variable y with value 900058 in JavaScript?
### Response:
let y = 900058; |
2,090,602 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 279789 мәнімен level айнымалысын қалай жариялауға болады? | let level = 279789; | ### Instruction:
JavaScript тілінде 279789 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
let level = 279789; |
4,847,680 | ru | Unity | var_decl | beginner | Как объявить переменную x со значением 930076 в Unity? | int x = 930076; | ### Instruction:
Как объявить переменную x со значением 930076 в Unity?
### Response:
int x = 930076; |
67,800,397 | ru | Java | logic_ops | intermediate | Напишите на Java функцию, определяющую, является ли число 310 простым. | public bool IsPrime() {
int n = 310;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 310 простым.
### Response:
public bool IsPrime() {
int n = 310;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
13,255,624 | en | JavaScript | array_ops | advanced | 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); |
74,211,132 | 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;
} |
47,614,566 | kk | C# | string_ops | intermediate | C# тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
C# тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
86,896,561 | 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;
} |
563,848 | ru | C# | var_decl | beginner | Как объявить переменную count со значением 120666 в C#? | int count = 120666; | ### Instruction:
Как объявить переменную count со значением 120666 в C#?
### Response:
int count = 120666; |
2,914,845 | en | C# | var_decl | beginner | How to declare a variable size with value 380822 in C#? | int size = 380822; | ### Instruction:
How to declare a variable size with value 380822 in C#?
### Response:
int size = 380822; |
70,454,388 | kk | C# | logic_ops | intermediate | C# тилінде 1922 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1922;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1922 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1922;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
12,702,704 | 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();
} |
52,289,079 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 2055 високосным. | public bool IsLeap() {
int y = 2055;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2055 високосным.
### Response:
public bool IsLeap() {
int y = 2055;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,749,624 | en | Unity | var_decl | beginner | How to declare a variable limit with value 511876 in Unity? | int limit = 511876; | ### Instruction:
How to declare a variable limit with value 511876 in Unity?
### Response:
int limit = 511876; |
1,061,520 | en | Unity | var_decl | beginner | How to declare a variable y with value 508580 in Unity? | int y = 508580; | ### Instruction:
How to declare a variable y with value 508580 in Unity?
### Response:
int y = 508580; |
190,853 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 4495. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(4495) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 4495.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(4495) << std::endl; |
2,380,066 | kk | C++ | var_decl | beginner | C++ тілінде 930474 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 930474; | ### Instruction:
C++ тілінде 930474 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 930474; |
3,192,365 | en | Java | var_decl | beginner | How to declare a variable weight with value 336987 in Java? | int weight = 336987; | ### Instruction:
How to declare a variable weight with value 336987 in Java?
### Response:
int weight = 336987; |
71,301,050 | ru | 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;
} |
2,957,611 | ru | Python | var_decl | beginner | Как объявить переменную score со значением 516649 в Python? | score = 516649 | ### Instruction:
Как объявить переменную score со значением 516649 в Python?
### Response:
score = 516649 |
4,958,837 | kk | C# | var_decl | beginner | C# тілінде 869629 мәнімен index айнымалысын қалай жариялауға болады? | int index = 869629; | ### Instruction:
C# тілінде 869629 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 869629; |
52,411,278 | 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();
} |
4,219,227 | kk | Java | var_decl | beginner | Java тілінде 420567 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 420567; | ### Instruction:
Java тілінде 420567 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 420567; |
1,835,734 | ru | Python | var_decl | beginner | Как объявить переменную rate со значением 562953 в Python? | rate = 562953 | ### Instruction:
Как объявить переменную rate со значением 562953 в Python?
### Response:
rate = 562953 |
1,339,265 | ru | C++ | var_decl | beginner | Как объявить переменную score со значением 458924 в C++? | int score = 458924; | ### Instruction:
Как объявить переменную score со значением 458924 в C++?
### Response:
int score = 458924; |
56,448,595 | en | Python | string_ops | intermediate | 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] |
21,130,231 | 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;
} |
17,313,362 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 98 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 98;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 98 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 98;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
67,521,120 | 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;
} |
73,852,876 | 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);
} |
80,488,909 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 102 is prime in Unity. | public bool IsPrime() {
int n = 102;
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 102 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 102;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
20,058,255 | kk | Java | logic_ops | intermediate | Java тилінде 60 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 60;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 60 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 60;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
83,159,252 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 349 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 349;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 349 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 349;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
27,175,007 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
27,504,306 | 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;
} |
29,680,906 | kk | Java | string_ops | intermediate | Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
94,374,736 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 1970 високосным. | def is_leap():
year = 1970
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1970 високосным.
### Response:
def is_leap():
year = 1970
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
4,945,665 | en | C# | var_decl | beginner | How to declare a variable offset with value 887496 in C#? | int offset = 887496; | ### Instruction:
How to declare a variable offset with value 887496 in C#?
### Response:
int offset = 887496; |
293,394 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 7601. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7601));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 7601.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7601));
} |
15,726,369 | kk | Unity | array_ops | intermediate | 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;
} |
11,362,339 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 1954 високосным. | public bool IsLeap() {
int y = 1954;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 1954 високосным.
### Response:
public bool IsLeap() {
int y = 1954;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,228,969 | ru | JavaScript | var_decl | beginner | Как объявить переменную score со значением 189865 в JavaScript? | let score = 189865; | ### Instruction:
Как объявить переменную score со значением 189865 в JavaScript?
### Response:
let score = 189865; |
1,385,068 | en | Java | var_decl | beginner | How to declare a variable total with value 223017 in Java? | int total = 223017; | ### Instruction:
How to declare a variable total with value 223017 in Java?
### Response:
int total = 223017; |
4,420,315 | ru | C++ | var_decl | beginner | Как объявить переменную buffer со значением 841954 в C++? | int buffer = 841954; | ### Instruction:
Как объявить переменную buffer со значением 841954 в C++?
### Response:
int buffer = 841954; |
1,770,990 | ru | C# | var_decl | beginner | Как объявить переменную index со значением 375929 в C#? | int index = 375929; | ### Instruction:
Как объявить переменную index со значением 375929 в C#?
### Response:
int index = 375929; |
1,930,603 | kk | Java | var_decl | beginner | Java тілінде 416453 мәнімен x айнымалысын қалай жариялауға болады? | int x = 416453; | ### Instruction:
Java тілінде 416453 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 416453; |
4,623,158 | en | JavaScript | var_decl | beginner | How to declare a variable total with value 489299 in JavaScript? | let total = 489299; | ### Instruction:
How to declare a variable total with value 489299 in JavaScript?
### Response:
let total = 489299; |
2,784,460 | kk | Python | var_decl | beginner | Python тілінде 535696 мәнімен health айнымалысын қалай жариялауға болады? | health = 535696 | ### Instruction:
Python тілінде 535696 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
health = 535696 |
19,676,816 | 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); |
626,519 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 1383. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(1383)) | ### Instruction:
Write a function in Python that calculates the factorial of 1383.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(1383)) |
52,042,935 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 54 is prime in Unity. | public bool IsPrime() {
int n = 54;
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 54 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 54;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
16,313,878 | kk | JavaScript | array_ops | advanced | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
1,139,820 | ru | C++ | var_decl | beginner | Как объявить переменную size со значением 409303 в C++? | int size = 409303; | ### Instruction:
Как объявить переменную size со значением 409303 в C++?
### Response:
int size = 409303; |
658,857 | en | Python | var_decl | beginner | How to declare a variable amount with value 938986 in Python? | amount = 938986 | ### Instruction:
How to declare a variable amount with value 938986 in Python?
### Response:
amount = 938986 |
91,556,737 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 1951 is a leap year in JavaScript. | function isLeap() {
let y = 1951;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1951 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1951;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
19,589,511 | en | Unity | logic_ops | intermediate | Write logic to check if the year 1914 is a leap year in Unity. | public bool IsLeap() {
int y = 1914;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1914 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1914;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
17,868,221 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 2021 is a leap year in JavaScript. | function isLeap() {
let y = 2021;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2021 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2021;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
4,952,273 | ru | Unity | var_decl | beginner | Как объявить переменную speed со значением 527325 в Unity? | int speed = 527325; | ### Instruction:
Как объявить переменную speed со значением 527325 в Unity?
### Response:
int speed = 527325; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.