id int64 0 100M | language stringclasses 3
values | prog_lang stringclasses 6
values | category stringclasses 10
values | difficulty stringclasses 3
values | instruction stringlengths 30 86 | output stringlengths 7 192 | text stringlengths 92 300 |
|---|---|---|---|---|---|---|---|
785,253 | kk | Java | var_decl | beginner | Java тілінде 404315 мәнімен value айнымалысын қалай жариялауға болады? | int value = 404315; | ### Instruction:
Java тілінде 404315 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 404315; |
3,016,149 | kk | Unity | var_decl | beginner | Unity тілінде 102276 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 102276; | ### Instruction:
Unity тілінде 102276 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 102276; |
659,844 | ru | C++ | var_decl | beginner | Как объявить переменную level со значением 541368 в C++? | int level = 541368; | ### Instruction:
Как объявить переменную level со значением 541368 в C++?
### Response:
int level = 541368; |
90,006,577 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 2072 високосным. | def is_leap():
year = 2072
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2072 високосным.
### Response:
def is_leap():
year = 2072
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
97,880,658 | ru | C# | array_ops | intermediate | Напишите на C# функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на C# функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
15,870,136 | en | Unity | string_ops | advanced | 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();
} |
93,086,987 | ru | Python | logic_ops | advanced | Напишите на Python функцию, определяющую, является ли число 323 простым. | def is_prime():
n = 323
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 323 простым.
### Response:
def is_prime():
n = 323
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
4,003,595 | en | C++ | var_decl | beginner | How to declare a variable index with value 637255 in C++? | int index = 637255; | ### Instruction:
How to declare a variable index with value 637255 in C++?
### Response:
int index = 637255; |
69,645,169 | ru | Unity | string_ops | advanced | Напишите на 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:
Напишите на 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;
} |
26,594,861 | 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;
} |
43,127,838 | ru | 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;
} |
1,279,314 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 5082. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(5082)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 5082.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(5082)); |
4,964,269 | kk | C# | var_decl | beginner | C# тілінде 36675 мәнімен index айнымалысын қалай жариялауға болады? | int index = 36675; | ### Instruction:
C# тілінде 36675 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 36675; |
57,742,738 | en | C# | logic_ops | intermediate | Write logic to check if the year 2043 is a leap year in C#. | public bool IsLeap() {
int y = 2043;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2043 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2043;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
92,125,429 | 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;
} |
88,005,940 | 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();
} |
30,921,865 | kk | C# | logic_ops | advanced | C# тилінде 477 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 477;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 477 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 477;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
20,463,614 | 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;
} |
217,634 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 9146. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(9146));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 9146.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(9146));
} |
74,557,517 | kk | Unity | logic_ops | advanced | Unity тилінде 1975 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1975;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1975 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1975;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
67,185,998 | kk | C# | array_ops | intermediate | C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
39,307,042 | 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;
} |
4,310,761 | kk | Python | var_decl | beginner | Python тілінде 416356 мәнімен limit айнымалысын қалай жариялауға болады? | limit = 416356 | ### Instruction:
Python тілінде 416356 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
limit = 416356 |
72,589,870 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
85,658,770 | 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;
} |
43,320,265 | en | C++ | array_ops | advanced | Write a function that finds the maximum number in an array in C++. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in C++.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
26,815,408 | 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();
} |
751,332 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 1628. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(1628)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 1628.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(1628)) |
37,691,068 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 259 простым. | function isPrime() {
let n = 259;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 259 простым.
### Response:
function isPrime() {
let n = 259;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
4,901,547 | ru | C++ | var_decl | beginner | Как объявить переменную total со значением 436001 в C++? | int total = 436001; | ### Instruction:
Как объявить переменную total со значением 436001 в C++?
### Response:
int total = 436001; |
4,881,122 | en | JavaScript | var_decl | beginner | How to declare a variable x with value 76180 in JavaScript? | let x = 76180; | ### Instruction:
How to declare a variable x with value 76180 in JavaScript?
### Response:
let x = 76180; |
4,328,180 | ru | C++ | var_decl | beginner | Как объявить переменную score со значением 888161 в C++? | int score = 888161; | ### Instruction:
Как объявить переменную score со значением 888161 в C++?
### Response:
int score = 888161; |
78,337,498 | kk | C# | array_ops | intermediate | C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
20,348,296 | kk | Java | logic_ops | advanced | Java тилінде 2092 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2092;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2092 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2092;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
88,253,440 | en | C# | logic_ops | advanced | Write logic to check if the year 2017 is a leap year in C#. | public bool IsLeap() {
int y = 2017;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2017 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2017;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
36,039,659 | kk | Java | logic_ops | advanced | Java тилінде 499 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 499;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 499 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 499;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,981,834 | kk | C# | var_decl | beginner | C# тілінде 496335 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 496335; | ### Instruction:
C# тілінде 496335 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 496335; |
88,635,647 | 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;
} |
62,193,369 | en | Unity | array_ops | advanced | Write a function that reverses a list in Unity. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Unity.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
79,738,885 | 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,460,343 | kk | C# | var_decl | beginner | C# тілінде 360680 мәнімен value айнымалысын қалай жариялауға болады? | int value = 360680; | ### Instruction:
C# тілінде 360680 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 360680; |
75,129,683 | 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();
} |
66,196,643 | en | C++ | string_ops | intermediate | 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;
} |
44,244,431 | 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);
} |
57,529,939 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 1997 високосным. | def is_leap():
year = 1997
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1997 високосным.
### Response:
def is_leap():
year = 1997
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
469,949 | ru | JavaScript | sum_n | intermediate | Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 665. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(665)); | ### Instruction:
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 665.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(665)); |
1,577,117 | ru | JavaScript | var_decl | beginner | Как объявить переменную x со значением 110417 в JavaScript? | let x = 110417; | ### Instruction:
Как объявить переменную x со значением 110417 в JavaScript?
### Response:
let x = 110417; |
34,692,951 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
286,864 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 2573. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2573)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 2573.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2573)); |
56,054,167 | kk | C# | logic_ops | advanced | C# тилінде 1955 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1955;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1955 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1955;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
51,422,399 | 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;
} |
1,511,677 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 6244. | 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(6244) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 6244.
### 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(6244) << std::endl; |
4,584,890 | en | Java | var_decl | beginner | How to declare a variable speed with value 315136 in Java? | int speed = 315136; | ### Instruction:
How to declare a variable speed with value 315136 in Java?
### Response:
int speed = 315136; |
1,833,160 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 608136 мәнімен level айнымалысын қалай жариялауға болады? | let level = 608136; | ### Instruction:
JavaScript тілінде 608136 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
let level = 608136; |
95,927,706 | kk | Java | logic_ops | advanced | Java тилінде 29 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 29;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 29 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 29;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,520,102 | kk | C++ | var_decl | beginner | C++ тілінде 741338 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 741338; | ### Instruction:
C++ тілінде 741338 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 741338; |
76,414,970 | kk | 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);
} |
140,116 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 3480-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(3480));
} | ### Instruction:
Unity тілінде 1-ден 3480-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(3480));
} |
95,404,309 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 233 простым. | public bool IsPrime() {
int n = 233;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 233 простым.
### Response:
public bool IsPrime() {
int n = 233;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,340,913 | en | Unity | var_decl | beginner | How to declare a variable offset with value 740250 in Unity? | int offset = 740250; | ### Instruction:
How to declare a variable offset with value 740250 in Unity?
### Response:
int offset = 740250; |
3,341,749 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 353363 мәнімен x айнымалысын қалай жариялауға болады? | let x = 353363; | ### Instruction:
JavaScript тілінде 353363 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
let x = 353363; |
45,025 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 372. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(372)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 372.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(372)); |
3,125,454 | ru | Java | var_decl | beginner | Как объявить переменную limit со значением 526356 в Java? | int limit = 526356; | ### Instruction:
Как объявить переменную limit со значением 526356 в Java?
### Response:
int limit = 526356; |
4,270,637 | kk | Python | var_decl | beginner | Python тілінде 435017 мәнімен speed айнымалысын қалай жариялауға болады? | speed = 435017 | ### Instruction:
Python тілінде 435017 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
speed = 435017 |
3,087,231 | kk | C++ | var_decl | beginner | C++ тілінде 446459 мәнімен level айнымалысын қалай жариялауға болады? | int level = 446459; | ### Instruction:
C++ тілінде 446459 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 446459; |
2,442,692 | en | JavaScript | var_decl | beginner | How to declare a variable y with value 17596 in JavaScript? | let y = 17596; | ### Instruction:
How to declare a variable y with value 17596 in JavaScript?
### Response:
let y = 17596; |
48,753,303 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая разворачивает список задом наперед. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
### Response:
const reverseArr = arr => arr.reverse(); |
2,081,007 | ru | JavaScript | var_decl | beginner | Как объявить переменную data со значением 834099 в JavaScript? | let data = 834099; | ### Instruction:
Как объявить переменную data со значением 834099 в JavaScript?
### Response:
let data = 834099; |
2,467,717 | en | Unity | var_decl | beginner | How to declare a variable total with value 586931 in Unity? | int total = 586931; | ### Instruction:
How to declare a variable total with value 586931 in Unity?
### Response:
int total = 586931; |
71,635,618 | 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;
} |
64,604,253 | en | Java | logic_ops | advanced | Write logic to check if the year 2098 is a leap year in Java. | public bool IsLeap() {
int y = 2098;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2098 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2098;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
14,977,755 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 2073 високосным. | public bool IsLeap() {
int y = 2073;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2073 високосным.
### Response:
public bool IsLeap() {
int y = 2073;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
67,854,585 | en | Unity | logic_ops | advanced | Write logic to check if the year 1934 is a leap year in Unity. | public bool IsLeap() {
int y = 1934;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1934 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1934;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
73,005,946 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 71 is prime in JavaScript. | function isPrime() {
let n = 71;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Write a function that determines if the number 71 is prime in JavaScript.
### Response:
function isPrime() {
let n = 71;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
39,517,158 | en | C++ | logic_ops | advanced | Write a function that determines if the number 259 is prime in C++. | public bool IsPrime() {
int n = 259;
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 259 is prime in C++.
### Response:
public bool IsPrime() {
int n = 259;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
25,730,586 | 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();
} |
4,878,517 | en | C++ | var_decl | beginner | How to declare a variable score with value 827556 in C++? | int score = 827556; | ### Instruction:
How to declare a variable score with value 827556 in C++?
### Response:
int score = 827556; |
4,195,888 | kk | C# | var_decl | beginner | C# тілінде 67845 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 67845; | ### Instruction:
C# тілінде 67845 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 67845; |
18,928,600 | en | Java | array_ops | intermediate | Write a function that filters only even numbers from a list in 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:
Write a function that filters only even numbers from a list in 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;
} |
64,228,872 | 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();
} |
57,615,955 | en | JavaScript | string_ops | intermediate | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
20,296,188 | 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();
} |
236,262 | kk | Python | factorial | advanced | Python тілінде 2210 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2210)) | ### Instruction:
Python тілінде 2210 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2210)) |
43,983,355 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 1917 високосным. | public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1917 високосным.
### Response:
public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,685,447 | ru | C# | var_decl | beginner | Как объявить переменную data со значением 847153 в C#? | int data = 847153; | ### Instruction:
Как объявить переменную data со значением 847153 в C#?
### Response:
int data = 847153; |
86,356,568 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 1956 високосным. | public bool IsLeap() {
int y = 1956;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1956 високосным.
### Response:
public bool IsLeap() {
int y = 1956;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
66,640,375 | kk | Python | logic_ops | advanced | Python тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1983
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1983
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
47,438,047 | 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);
} |
4,060,784 | kk | Unity | var_decl | beginner | Unity тілінде 892810 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 892810; | ### Instruction:
Unity тілінде 892810 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 892810; |
4,907,261 | en | Java | var_decl | beginner | How to declare a variable rate with value 390226 in Java? | int rate = 390226; | ### Instruction:
How to declare a variable rate with value 390226 in Java?
### Response:
int rate = 390226; |
25,358,853 | ru | 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);
} |
3,616,604 | en | C++ | var_decl | beginner | How to declare a variable offset with value 6754 in C++? | int offset = 6754; | ### Instruction:
How to declare a variable offset with value 6754 in C++?
### Response:
int offset = 6754; |
4,735,803 | kk | Unity | var_decl | beginner | Unity тілінде 851398 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 851398; | ### Instruction:
Unity тілінде 851398 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 851398; |
961,362 | en | C++ | var_decl | beginner | How to declare a variable level with value 751707 in C++? | int level = 751707; | ### Instruction:
How to declare a variable level with value 751707 in C++?
### Response:
int level = 751707; |
14,564,569 | kk | Python | logic_ops | advanced | Python тилінде 481 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 481
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 481 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 481
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
46,472,826 | ru | C++ | string_ops | intermediate | Напишите на C++ функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на C++ функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
2,370,113 | en | Python | var_decl | beginner | How to declare a variable x with value 657204 in Python? | x = 657204 | ### Instruction:
How to declare a variable x with value 657204 in Python?
### Response:
x = 657204 |
89,611,869 | kk | Unity | string_ops | intermediate | 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:
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;
} |
334,998 | en | Python | var_decl | beginner | How to declare a variable weight with value 49155 in Python? | weight = 49155 | ### Instruction:
How to declare a variable weight with value 49155 in Python?
### Response:
weight = 49155 |
31,490,793 | en | Unity | string_ops | advanced | 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;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.