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 |
|---|---|---|---|---|---|---|---|
72,037,742 | kk | Python | logic_ops | intermediate | Python тилінде 1951 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1951
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1951 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1951
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
50,657,702 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая фильтрует только четные числа из списка. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Напишите на Python функцию, которая фильтрует только четные числа из списка.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
1,881,960 | en | Java | var_decl | beginner | How to declare a variable speed with value 13589 in Java? | int speed = 13589; | ### Instruction:
How to declare a variable speed with value 13589 in Java?
### Response:
int speed = 13589; |
46,514,777 | kk | C# | logic_ops | advanced | C# тилінде 1934 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1934;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1934 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1934;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
76,716,362 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
13,601,792 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 1970 високосным. | public bool IsLeap() {
int y = 1970;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1970 високосным.
### Response:
public bool IsLeap() {
int y = 1970;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
896,280 | ru | JavaScript | var_decl | beginner | Как объявить переменную value со значением 133697 в JavaScript? | let value = 133697; | ### Instruction:
Как объявить переменную value со значением 133697 в JavaScript?
### Response:
let value = 133697; |
21,378,827 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая фильтрует только четные числа из списка. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Напишите на Python функцию, которая фильтрует только четные числа из списка.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
46,380,598 | en | Java | string_ops | intermediate | Write a function that counts vowels in a text in Java. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in Java.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
85,143,417 | 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;
} |
520,966 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 135. | 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(135) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 135.
### 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(135) << std::endl; |
60,310,767 | kk | C# | logic_ops | intermediate | C# тилінде 403 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 403;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 403 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 403;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,807,427 | kk | Python | var_decl | beginner | Python тілінде 976942 мәнімен size айнымалысын қалай жариялауға болады? | size = 976942 | ### Instruction:
Python тілінде 976942 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
size = 976942 |
4,254,246 | kk | Unity | var_decl | beginner | Unity тілінде 189444 мәнімен health айнымалысын қалай жариялауға болады? | int health = 189444; | ### Instruction:
Unity тілінде 189444 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 189444; |
95,226,060 | ru | C++ | logic_ops | advanced | Напишите на C++ логику проверки, является ли год 2013 високосным. | public bool IsLeap() {
int y = 2013;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 2013 високосным.
### Response:
public bool IsLeap() {
int y = 2013;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,313,027 | ru | Java | var_decl | beginner | Как объявить переменную y со значением 93466 в Java? | int y = 93466; | ### Instruction:
Как объявить переменную y со значением 93466 в Java?
### Response:
int y = 93466; |
60,469,231 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 1947 високосным. | public bool IsLeap() {
int y = 1947;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 1947 високосным.
### Response:
public bool IsLeap() {
int y = 1947;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,703,253 | ru | Java | var_decl | beginner | Как объявить переменную result со значением 932321 в Java? | int result = 932321; | ### Instruction:
Как объявить переменную result со значением 932321 в Java?
### Response:
int result = 932321; |
17,998,109 | 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;
} |
11,775,483 | 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;
} |
18,863,299 | kk | C++ | array_ops | intermediate | C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
4,647,669 | en | Python | var_decl | beginner | How to declare a variable timer with value 339636 in Python? | timer = 339636 | ### Instruction:
How to declare a variable timer with value 339636 in Python?
### Response:
timer = 339636 |
648,555 | ru | C# | var_decl | beginner | Как объявить переменную weight со значением 527984 в C#? | int weight = 527984; | ### Instruction:
Как объявить переменную weight со значением 527984 в C#?
### Response:
int weight = 527984; |
18,077,062 | kk | Python | array_ops | advanced | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
79,700,711 | en | Python | logic_ops | advanced | Write logic to check if the year 2098 is a leap year in Python. | def is_leap():
year = 2098
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2098 is a leap year in Python.
### Response:
def is_leap():
year = 2098
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
1,194,648 | en | C++ | var_decl | beginner | How to declare a variable speed with value 844755 in C++? | int speed = 844755; | ### Instruction:
How to declare a variable speed with value 844755 in C++?
### Response:
int speed = 844755; |
63,027,202 | en | C++ | string_ops | intermediate | Write a function that converts a string to uppercase in C++. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in C++.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
3,198,849 | kk | Python | var_decl | beginner | Python тілінде 402287 мәнімен buffer айнымалысын қалай жариялауға болады? | buffer = 402287 | ### Instruction:
Python тілінде 402287 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
buffer = 402287 |
2,428,459 | kk | Unity | var_decl | beginner | Unity тілінде 904375 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 904375; | ### Instruction:
Unity тілінде 904375 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 904375; |
72,237,898 | ru | C++ | logic_ops | intermediate | Напишите на 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);
} |
31,555,372 | ru | 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;
} |
187,748 | kk | Python | var_decl | beginner | Python тілінде 624742 мәнімен weight айнымалысын қалай жариялауға болады? | weight = 624742 | ### Instruction:
Python тілінде 624742 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
weight = 624742 |
3,223,065 | ru | Unity | var_decl | beginner | Как объявить переменную health со значением 637705 в Unity? | int health = 637705; | ### Instruction:
Как объявить переменную health со значением 637705 в Unity?
### Response:
int health = 637705; |
4,588,065 | en | C++ | var_decl | beginner | How to declare a variable limit with value 948041 in C++? | int limit = 948041; | ### Instruction:
How to declare a variable limit with value 948041 in C++?
### Response:
int limit = 948041; |
2,451,709 | ru | Java | var_decl | beginner | Как объявить переменную buffer со значением 69267 в Java? | int buffer = 69267; | ### Instruction:
Как объявить переменную buffer со значением 69267 в Java?
### Response:
int buffer = 69267; |
85,943,517 | en | Python | logic_ops | intermediate | Write logic to check if the year 2032 is a leap year in Python. | def is_leap():
year = 2032
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2032 is a leap year in Python.
### Response:
def is_leap():
year = 2032
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
50,731,581 | 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);
} |
4,704,826 | kk | C# | var_decl | beginner | C# тілінде 899741 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 899741; | ### Instruction:
C# тілінде 899741 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 899741; |
964,217 | ru | Python | var_decl | beginner | Как объявить переменную limit со значением 869426 в Python? | limit = 869426 | ### Instruction:
Как объявить переменную limit со значением 869426 в Python?
### Response:
limit = 869426 |
65,206,574 | kk | Python | string_ops | advanced | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
81,237,607 | 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;
} |
4,170,318 | ru | Python | var_decl | beginner | Как объявить переменную level со значением 323231 в Python? | level = 323231 | ### Instruction:
Как объявить переменную level со значением 323231 в Python?
### Response:
level = 323231 |
93,690,234 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Java функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
4,788,909 | ru | Java | var_decl | beginner | Как объявить переменную y со значением 861682 в Java? | int y = 861682; | ### Instruction:
Как объявить переменную y со значением 861682 в Java?
### Response:
int y = 861682; |
81,904,032 | en | Java | string_ops | advanced | Write a function that converts a string to uppercase in Java. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Java.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
1,743,883 | kk | Java | var_decl | beginner | Java тілінде 67334 мәнімен data айнымалысын қалай жариялауға болады? | int data = 67334; | ### Instruction:
Java тілінде 67334 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 67334; |
95,044,590 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
82,121,097 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 107 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 107;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 107 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 107;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
700,220 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 6070. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(6070)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 6070.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(6070)); |
74,900,877 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 271 is prime in JavaScript. | function isPrime() {
let n = 271;
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 271 is prime in JavaScript.
### Response:
function isPrime() {
let n = 271;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
4,457,122 | ru | Python | var_decl | beginner | Как объявить переменную size со значением 721452 в Python? | size = 721452 | ### Instruction:
Как объявить переменную size со значением 721452 в Python?
### Response:
size = 721452 |
17,102,932 | 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] |
1,915,238 | en | Java | var_decl | beginner | How to declare a variable limit with value 57545 in Java? | int limit = 57545; | ### Instruction:
How to declare a variable limit with value 57545 in Java?
### Response:
int limit = 57545; |
4,242,865 | en | Java | var_decl | beginner | How to declare a variable size with value 212505 in Java? | int size = 212505; | ### Instruction:
How to declare a variable size with value 212505 in Java?
### Response:
int size = 212505; |
4,029,562 | ru | Unity | var_decl | beginner | Как объявить переменную amount со значением 260331 в Unity? | int amount = 260331; | ### Instruction:
Как объявить переменную amount со значением 260331 в Unity?
### Response:
int amount = 260331; |
2,565,258 | kk | C++ | var_decl | beginner | C++ тілінде 858023 мәнімен data айнымалысын қалай жариялауға болады? | int data = 858023; | ### Instruction:
C++ тілінде 858023 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 858023; |
1,792,414 | en | Python | var_decl | beginner | How to declare a variable total with value 391419 in Python? | total = 391419 | ### Instruction:
How to declare a variable total with value 391419 in Python?
### Response:
total = 391419 |
109,967 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 8639. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(8639)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 8639.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(8639)); |
96,844,854 | 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] |
1,366,173 | kk | C++ | var_decl | beginner | C++ тілінде 937870 мәнімен x айнымалысын қалай жариялауға болады? | int x = 937870; | ### Instruction:
C++ тілінде 937870 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 937870; |
58,294,060 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 1964 is a leap year in JavaScript. | function isLeap() {
let y = 1964;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1964 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1964;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
10,889,085 | 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;
} |
83,588,582 | en | Java | string_ops | advanced | Write a function that converts a string to uppercase in Java. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Java.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
2,807,654 | en | JavaScript | var_decl | beginner | How to declare a variable level with value 347087 in JavaScript? | let level = 347087; | ### Instruction:
How to declare a variable level with value 347087 in JavaScript?
### Response:
let level = 347087; |
84,486,714 | kk | Python | string_ops | intermediate | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
4,652,473 | kk | Unity | var_decl | beginner | Unity тілінде 177165 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 177165; | ### Instruction:
Unity тілінде 177165 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 177165; |
2,384,475 | kk | Java | var_decl | beginner | Java тілінде 266345 мәнімен score айнымалысын қалай жариялауға болады? | int score = 266345; | ### Instruction:
Java тілінде 266345 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 266345; |
82,844,133 | 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(''); |
1,630,377 | ru | C++ | var_decl | beginner | Как объявить переменную value со значением 103639 в C++? | int value = 103639; | ### Instruction:
Как объявить переменную value со значением 103639 в C++?
### Response:
int value = 103639; |
3,123,447 | en | Python | var_decl | beginner | How to declare a variable index with value 907232 in Python? | index = 907232 | ### Instruction:
How to declare a variable index with value 907232 in Python?
### Response:
index = 907232 |
1,665,576 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 246095 мәнімен data айнымалысын қалай жариялауға болады? | let data = 246095; | ### Instruction:
JavaScript тілінде 246095 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
let data = 246095; |
4,559,808 | ru | JavaScript | var_decl | beginner | Как объявить переменную buffer со значением 551421 в JavaScript? | let buffer = 551421; | ### Instruction:
Как объявить переменную buffer со значением 551421 в JavaScript?
### Response:
let buffer = 551421; |
77,964,280 | en | C# | logic_ops | advanced | Write a function that determines if the number 472 is prime in C#. | public bool IsPrime() {
int n = 472;
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 472 is prime in C#.
### Response:
public bool IsPrime() {
int n = 472;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
35,508,661 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 56 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 56;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 56 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 56;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
1,621,004 | kk | C++ | var_decl | beginner | C++ тілінде 58620 мәнімен data айнымалысын қалай жариялауға болады? | int data = 58620; | ### Instruction:
C++ тілінде 58620 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 58620; |
47,150,602 | 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);
} |
77,475,431 | en | C# | array_ops | advanced | Write a function that reverses a list in C#. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C#.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
4,843,930 | kk | Python | var_decl | beginner | Python тілінде 552086 мәнімен level айнымалысын қалай жариялауға болады? | level = 552086 | ### Instruction:
Python тілінде 552086 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
level = 552086 |
3,086,556 | en | Unity | var_decl | beginner | How to declare a variable offset with value 114942 in Unity? | int offset = 114942; | ### Instruction:
How to declare a variable offset with value 114942 in Unity?
### Response:
int offset = 114942; |
49,161,656 | en | Java | array_ops | advanced | 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;
} |
48,890,834 | en | Java | logic_ops | intermediate | Write a function that determines if the number 331 is prime in Java. | public bool IsPrime() {
int n = 331;
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 331 is prime in Java.
### Response:
public bool IsPrime() {
int n = 331;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
82,086,486 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
32,827,627 | en | Java | logic_ops | advanced | Write a function that determines if the number 235 is prime in Java. | public bool IsPrime() {
int n = 235;
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 235 is prime in Java.
### Response:
public bool IsPrime() {
int n = 235;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
84,232,595 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 94 простым. | function isPrime() {
let n = 94;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 94 простым.
### Response:
function isPrime() {
let n = 94;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
2,633,254 | ru | C# | var_decl | beginner | Как объявить переменную level со значением 592673 в C#? | int level = 592673; | ### Instruction:
Как объявить переменную level со значением 592673 в C#?
### Response:
int level = 592673; |
62,460,758 | ru | C# | logic_ops | intermediate | Напишите на C# функцию, определяющую, является ли число 388 простым. | public bool IsPrime() {
int n = 388;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 388 простым.
### Response:
public bool IsPrime() {
int n = 388;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
59,011,186 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
1,095,959 | en | Python | var_decl | beginner | How to declare a variable level with value 35796 in Python? | level = 35796 | ### Instruction:
How to declare a variable level with value 35796 in Python?
### Response:
level = 35796 |
67,665,023 | ru | C++ | array_ops | intermediate | Напишите на C++ функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на C++ функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
3,735,597 | kk | C# | var_decl | beginner | C# тілінде 204471 мәнімен x айнымалысын қалай жариялауға болады? | int x = 204471; | ### Instruction:
C# тілінде 204471 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 204471; |
83,760,735 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
2,915,683 | ru | C# | var_decl | beginner | Как объявить переменную weight со значением 548832 в C#? | int weight = 548832; | ### Instruction:
Как объявить переменную weight со значением 548832 в C#?
### Response:
int weight = 548832; |
49,775,144 | en | C++ | array_ops | advanced | Write a function that reverses a list in C++. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C++.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
4,095,939 | ru | Unity | var_decl | beginner | Как объявить переменную data со значением 618899 в Unity? | int data = 618899; | ### Instruction:
Как объявить переменную data со значением 618899 в Unity?
### Response:
int data = 618899; |
32,567,181 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 2074 високосным. | public bool IsLeap() {
int y = 2074;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2074 високосным.
### Response:
public bool IsLeap() {
int y = 2074;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
95,886,388 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 315 простым. | public bool IsPrime() {
int n = 315;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 315 простым.
### Response:
public bool IsPrime() {
int n = 315;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,035,097 | en | C++ | var_decl | beginner | How to declare a variable timer with value 243684 in C++? | int timer = 243684; | ### Instruction:
How to declare a variable timer with value 243684 in C++?
### Response:
int timer = 243684; |
84,576,718 | ru | Java | array_ops | intermediate | Напишите на Java функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Java функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
17,323,887 | kk | C# | string_ops | intermediate | C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
32,923,467 | 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();
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.