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 |
|---|---|---|---|---|---|---|---|
49,769,874 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
772,360 | kk | C++ | factorial | advanced | C++ тілінде 2352 санының факториалын есептейтін функция жаз. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(2352) << std::endl; | ### Instruction:
C++ тілінде 2352 санының факториалын есептейтін функция жаз.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(2352) << std::endl; |
674,242 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 5712. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(5712)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 5712.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(5712)); |
370,618 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 8367. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(8367));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 8367.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(8367));
} |
76,018,093 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
366,865 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 4563. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(4563));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 4563.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(4563));
} |
96,733,931 | en | Python | array_ops | advanced | Write a function that finds the maximum number in an array in Python. | def get_max(arr):
return max(arr) | ### Instruction:
Write a function that finds the maximum number in an array in Python.
### Response:
def get_max(arr):
return max(arr) |
411,086 | ru | Unity | var_decl | beginner | Как объявить переменную data со значением 864730 в Unity? | int data = 864730; | ### Instruction:
Как объявить переменную data со значением 864730 в Unity?
### Response:
int data = 864730; |
4,646,883 | kk | Python | var_decl | beginner | Python тілінде 575730 мәнімен limit айнымалысын қалай жариялауға болады? | limit = 575730 | ### Instruction:
Python тілінде 575730 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
limit = 575730 |
2,495,595 | ru | JavaScript | var_decl | beginner | Как объявить переменную health со значением 641332 в JavaScript? | let health = 641332; | ### Instruction:
Как объявить переменную health со значением 641332 в JavaScript?
### Response:
let health = 641332; |
62,923,570 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 159 простым. | public bool IsPrime() {
int n = 159;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 159 простым.
### Response:
public bool IsPrime() {
int n = 159;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
23,425,870 | en | Unity | string_ops | advanced | Write a function that counts vowels in a text in Unity. | 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 Unity.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
672,238 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 4134. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(4134)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 4134.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(4134)); |
1,914,782 | kk | C# | var_decl | beginner | C# тілінде 729193 мәнімен total айнымалысын қалай жариялауға болады? | int total = 729193; | ### Instruction:
C# тілінде 729193 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 729193; |
81,260,189 | en | C# | logic_ops | intermediate | Write a function that determines if the number 380 is prime in C#. | public bool IsPrime() {
int n = 380;
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 380 is prime in C#.
### Response:
public bool IsPrime() {
int n = 380;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,799,507 | en | Python | var_decl | beginner | How to declare a variable x with value 114699 in Python? | x = 114699 | ### Instruction:
How to declare a variable x with value 114699 in Python?
### Response:
x = 114699 |
3,373,792 | en | C++ | var_decl | beginner | How to declare a variable amount with value 674833 in C++? | int amount = 674833; | ### Instruction:
How to declare a variable amount with value 674833 in C++?
### Response:
int amount = 674833; |
92,139,756 | 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);
} |
40,453,417 | ru | C++ | string_ops | advanced | Напишите на C++ функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на C++ функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
4,088,357 | en | Python | var_decl | beginner | How to declare a variable health with value 47096 in Python? | health = 47096 | ### Instruction:
How to declare a variable health with value 47096 in Python?
### Response:
health = 47096 |
489,034 | ru | C# | sum_n | intermediate | Напиши функцию на C#, которая считает сумму чисел от 1 до 8765. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(8765)); | ### Instruction:
Напиши функцию на C#, которая считает сумму чисел от 1 до 8765.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(8765)); |
30,003,881 | en | Python | string_ops | advanced | Write a function that counts vowels in a text in Python. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Write a function that counts vowels in a text in Python.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
79,933,382 | kk | C++ | logic_ops | advanced | C++ тилінде 397 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 397;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 397 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 397;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
55,543,172 | ru | Unity | array_ops | advanced | Напишите на Unity функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
2,350,153 | kk | Java | var_decl | beginner | Java тілінде 379216 мәнімен y айнымалысын қалай жариялауға болады? | int y = 379216; | ### Instruction:
Java тілінде 379216 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
int y = 379216; |
4,336,178 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 366957 мәнімен amount айнымалысын қалай жариялауға болады? | let amount = 366957; | ### Instruction:
JavaScript тілінде 366957 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
let amount = 366957; |
4,592,487 | ru | C++ | var_decl | beginner | Как объявить переменную rate со значением 471835 в C++? | int rate = 471835; | ### Instruction:
Как объявить переменную rate со значением 471835 в C++?
### Response:
int rate = 471835; |
561,631 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 9389. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9389)); | ### Instruction:
Write a function in C# that calculates the factorial of 9389.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9389)); |
325,818 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 2053. | 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(2053) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 2053.
### 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(2053) << std::endl; |
91,474,149 | 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);
} |
16,176,132 | 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;
} |
3,337,954 | kk | C++ | var_decl | beginner | C++ тілінде 818791 мәнімен health айнымалысын қалай жариялауға болады? | int health = 818791; | ### Instruction:
C++ тілінде 818791 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 818791; |
42,745,321 | 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();
} |
563,840 | kk | C++ | factorial | advanced | C++ тілінде 6143 санының факториалын есептейтін функция жаз. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(6143) << std::endl; | ### Instruction:
C++ тілінде 6143 санының факториалын есептейтін функция жаз.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(6143) << std::endl; |
96,038,656 | 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;
} |
3,905,232 | ru | C# | var_decl | beginner | Как объявить переменную rate со значением 435715 в C#? | int rate = 435715; | ### Instruction:
Как объявить переменную rate со значением 435715 в C#?
### Response:
int rate = 435715; |
91,397,330 | 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;
} |
1,528,605 | en | Unity | var_decl | beginner | How to declare a variable timer with value 217919 in Unity? | int timer = 217919; | ### Instruction:
How to declare a variable timer with value 217919 in Unity?
### Response:
int timer = 217919; |
41,101,425 | en | Java | array_ops | intermediate | Write a function that reverses a list in Java. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Java.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
3,009,987 | ru | C# | var_decl | beginner | Как объявить переменную total со значением 695658 в C#? | int total = 695658; | ### Instruction:
Как объявить переменную total со значением 695658 в C#?
### Response:
int total = 695658; |
92,266,434 | en | Python | array_ops | intermediate | Write a function that filters only even numbers from a list in Python. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Write a function that filters only even numbers from a list in Python.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
306,133 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 4682. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(4682));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 4682.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(4682));
} |
45,340,896 | kk | JavaScript | array_ops | advanced | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
16,092,034 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
47,753 | en | C++ | var_decl | beginner | How to declare a variable limit with value 400769 in C++? | int limit = 400769; | ### Instruction:
How to declare a variable limit with value 400769 in C++?
### Response:
int limit = 400769; |
902,441 | en | C++ | var_decl | beginner | How to declare a variable level with value 56054 in C++? | int level = 56054; | ### Instruction:
How to declare a variable level with value 56054 in C++?
### Response:
int level = 56054; |
2,877,074 | kk | C# | var_decl | beginner | C# тілінде 402251 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 402251; | ### Instruction:
C# тілінде 402251 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 402251; |
71,414,488 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
4,813,160 | ru | C# | var_decl | beginner | Как объявить переменную level со значением 684184 в C#? | int level = 684184; | ### Instruction:
Как объявить переменную level со значением 684184 в C#?
### Response:
int level = 684184; |
25,564,388 | ru | Unity | array_ops | advanced | Напишите на Unity функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
4,244,127 | en | Java | var_decl | beginner | How to declare a variable x with value 174739 in Java? | int x = 174739; | ### Instruction:
How to declare a variable x with value 174739 in Java?
### Response:
int x = 174739; |
20,384,462 | 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);
} |
821,739 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 520599 мәнімен index айнымалысын қалай жариялауға болады? | let index = 520599; | ### Instruction:
JavaScript тілінде 520599 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
let index = 520599; |
116,345 | ru | Unity | var_decl | beginner | Как объявить переменную offset со значением 280034 в Unity? | int offset = 280034; | ### Instruction:
Как объявить переменную offset со значением 280034 в Unity?
### Response:
int offset = 280034; |
3,769,628 | ru | Python | var_decl | beginner | Как объявить переменную health со значением 177866 в Python? | health = 177866 | ### Instruction:
Как объявить переменную health со значением 177866 в Python?
### Response:
health = 177866 |
1,632,873 | ru | C++ | var_decl | beginner | Как объявить переменную amount со значением 343201 в C++? | int amount = 343201; | ### Instruction:
Как объявить переменную amount со значением 343201 в C++?
### Response:
int amount = 343201; |
55,299,678 | en | C++ | logic_ops | intermediate | Write logic to check if the year 2042 is a leap year in C++. | public bool IsLeap() {
int y = 2042;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2042 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2042;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
23,207,608 | kk | Unity | logic_ops | intermediate | Unity тилінде 1929 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1929;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1929 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1929;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
15,818,601 | 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();
} |
60,972,192 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1946 високосным. | function isLeap() {
let y = 1946;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1946 високосным.
### Response:
function isLeap() {
let y = 1946;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
47,193,515 | en | JavaScript | string_ops | intermediate | Write a function that counts vowels in a text in JavaScript. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Write a function that counts vowels in a text in JavaScript.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
52,893,876 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 2005 високосным. | def is_leap():
year = 2005
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2005 високосным.
### Response:
def is_leap():
year = 2005
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
44,333,910 | en | Unity | string_ops | intermediate | Write a function that checks if a string is a palindrome in Unity. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in Unity.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
3,950,774 | kk | Unity | var_decl | beginner | Unity тілінде 339993 мәнімен result айнымалысын қалай жариялауға болады? | int result = 339993; | ### Instruction:
Unity тілінде 339993 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 339993; |
2,395,588 | kk | Java | var_decl | beginner | Java тілінде 657517 мәнімен index айнымалысын қалай жариялауға болады? | int index = 657517; | ### Instruction:
Java тілінде 657517 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 657517; |
251,501 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 6071. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(6071)); | ### Instruction:
Write a function in C# that calculates the factorial of 6071.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(6071)); |
1,664,247 | ru | C++ | var_decl | beginner | Как объявить переменную count со значением 663989 в C++? | int count = 663989; | ### Instruction:
Как объявить переменную count со значением 663989 в C++?
### Response:
int count = 663989; |
3,212,177 | ru | Python | var_decl | beginner | Как объявить переменную buffer со значением 988220 в Python? | buffer = 988220 | ### Instruction:
Как объявить переменную buffer со значением 988220 в Python?
### Response:
buffer = 988220 |
2,868,944 | kk | C++ | var_decl | beginner | C++ тілінде 191599 мәнімен result айнымалысын қалай жариялауға болады? | int result = 191599; | ### Instruction:
C++ тілінде 191599 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 191599; |
86,418,804 | ru | Unity | logic_ops | advanced | Напишите на Unity функцию, определяющую, является ли число 232 простым. | public bool IsPrime() {
int n = 232;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 232 простым.
### Response:
public bool IsPrime() {
int n = 232;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,332,297 | kk | Python | var_decl | beginner | Python тілінде 867114 мәнімен offset айнымалысын қалай жариялауға болады? | offset = 867114 | ### Instruction:
Python тілінде 867114 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
offset = 867114 |
94,570,004 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript функцию, определяющую, является ли число 474 простым. | function isPrime() {
let n = 474;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 474 простым.
### Response:
function isPrime() {
let n = 474;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
1,544,529 | en | Unity | var_decl | beginner | How to declare a variable score with value 953402 in Unity? | int score = 953402; | ### Instruction:
How to declare a variable score with value 953402 in Unity?
### Response:
int score = 953402; |
52,847,058 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 292 is prime in C++. | public bool IsPrime() {
int n = 292;
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 292 is prime in C++.
### Response:
public bool IsPrime() {
int n = 292;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
67,992,960 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 353 простым. | public bool IsPrime() {
int n = 353;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 353 простым.
### Response:
public bool IsPrime() {
int n = 353;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,668,458 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 924284 мәнімен level айнымалысын қалай жариялауға болады? | let level = 924284; | ### Instruction:
JavaScript тілінде 924284 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
let level = 924284; |
31,743,998 | 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;
} |
176,087 | ru | Python | factorial | advanced | Напиши функцию на Python, которая вычисляет факториал числа 4106. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(4106)) | ### Instruction:
Напиши функцию на Python, которая вычисляет факториал числа 4106.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(4106)) |
2,889,573 | en | C++ | var_decl | beginner | How to declare a variable offset with value 980370 in C++? | int offset = 980370; | ### Instruction:
How to declare a variable offset with value 980370 in C++?
### Response:
int offset = 980370; |
42,892,200 | 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;
} |
65,004,138 | 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;
} |
82,260,924 | kk | Java | logic_ops | advanced | Java тилінде 1936 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1936;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1936 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1936;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
48,152,173 | 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();
} |
48,875,166 | 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;
} |
42,767,292 | kk | C++ | logic_ops | advanced | C++ тилінде 2056 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2056;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2056 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2056;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
293,655 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 9118. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(9118)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 9118.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(9118)); |
2,684,713 | ru | Java | var_decl | beginner | Как объявить переменную offset со значением 230761 в Java? | int offset = 230761; | ### Instruction:
Как объявить переменную offset со значением 230761 в Java?
### Response:
int offset = 230761; |
11,178,598 | en | C++ | array_ops | intermediate | Write a function that reverses a list in C++. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C++.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
2,230,891 | en | Java | var_decl | beginner | How to declare a variable rate with value 642858 in Java? | int rate = 642858; | ### Instruction:
How to declare a variable rate with value 642858 in Java?
### Response:
int rate = 642858; |
3,559,212 | en | C# | var_decl | beginner | How to declare a variable rate with value 333709 in C#? | int rate = 333709; | ### Instruction:
How to declare a variable rate with value 333709 in C#?
### Response:
int rate = 333709; |
162,192 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 3927. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(3927)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 3927.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(3927)); |
1,538,478 | ru | Unity | var_decl | beginner | Как объявить переменную x со значением 533617 в Unity? | int x = 533617; | ### Instruction:
Как объявить переменную x со значением 533617 в Unity?
### Response:
int x = 533617; |
4,844,803 | ru | C++ | var_decl | beginner | Как объявить переменную count со значением 605049 в C++? | int count = 605049; | ### Instruction:
Как объявить переменную count со значением 605049 в C++?
### Response:
int count = 605049; |
3,587,007 | ru | C# | var_decl | beginner | Как объявить переменную amount со значением 176932 в C#? | int amount = 176932; | ### Instruction:
Как объявить переменную amount со значением 176932 в C#?
### Response:
int amount = 176932; |
67,310,600 | en | Python | logic_ops | advanced | Write logic to check if the year 1930 is a leap year in Python. | def is_leap():
year = 1930
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1930 is a leap year in Python.
### Response:
def is_leap():
year = 1930
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
68,470,904 | ru | C++ | logic_ops | advanced | Напишите на C++ логику проверки, является ли год 1933 високосным. | public bool IsLeap() {
int y = 1933;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 1933 високосным.
### Response:
public bool IsLeap() {
int y = 1933;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
11,684,981 | ru | C++ | logic_ops | intermediate | Напишите на C++ функцию, определяющую, является ли число 222 простым. | public bool IsPrime() {
int n = 222;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 222 простым.
### Response:
public bool IsPrime() {
int n = 222;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
96,082,603 | en | Java | array_ops | intermediate | Write a function that reverses a list in Java. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Java.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
1,089,806 | kk | C# | var_decl | beginner | C# тілінде 52347 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 52347; | ### Instruction:
C# тілінде 52347 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 52347; |
3,664,387 | en | C++ | var_decl | beginner | How to declare a variable score with value 590218 in C++? | int score = 590218; | ### Instruction:
How to declare a variable score with value 590218 in C++?
### Response:
int score = 590218; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.