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
69,378,290
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
12,260,249
kk
Unity
logic_ops
advanced
Unity тилінде 459 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 459; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 459 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 459; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,436,513
en
C++
var_decl
beginner
How to declare a variable total with value 872128 in C++?
int total = 872128;
### Instruction: How to declare a variable total with value 872128 in C++? ### Response: int total = 872128;
16,975,824
en
Python
array_ops
advanced
Write a function that reverses a list in Python.
def reverse_list(arr): return arr[::-1]
### Instruction: Write a function that reverses a list in Python. ### Response: def reverse_list(arr): return arr[::-1]
36,410,560
ru
Python
array_ops
advanced
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
305,791
kk
Python
factorial
advanced
Python тілінде 5627 санының факториалын есептейтін функция жаз.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(5627))
### Instruction: Python тілінде 5627 санының факториалын есептейтін функция жаз. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(5627))
95,818,006
ru
C++
string_ops
intermediate
Напишите на C++ функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на C++ функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
1,668,406
en
Unity
var_decl
beginner
How to declare a variable index with value 146028 in Unity?
int index = 146028;
### Instruction: How to declare a variable index with value 146028 in Unity? ### Response: int index = 146028;
17,049,860
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 2018 високосным.
public bool IsLeap() { int y = 2018; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2018 високосным. ### Response: public bool IsLeap() { int y = 2018; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
41,609,609
kk
Java
logic_ops
intermediate
Java тилінде 1927 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1927; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1927 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1927; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,840,147
kk
Java
var_decl
beginner
Java тілінде 564789 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 564789;
### Instruction: Java тілінде 564789 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 564789;
12,413,865
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 117 is prime in JavaScript.
function isPrime() { let n = 117; 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 117 is prime in JavaScript. ### Response: function isPrime() { let n = 117; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
1,362,591
en
Java
var_decl
beginner
How to declare a variable value with value 869169 in Java?
int value = 869169;
### Instruction: How to declare a variable value with value 869169 in Java? ### Response: int value = 869169;
2,048,994
en
JavaScript
var_decl
beginner
How to declare a variable y with value 797325 in JavaScript?
let y = 797325;
### Instruction: How to declare a variable y with value 797325 in JavaScript? ### Response: let y = 797325;
46,548,423
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая считает количество гласных букв в тексте.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Напишите на Python функцию, которая считает количество гласных букв в тексте. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
817,469
kk
Unity
var_decl
beginner
Unity тілінде 861249 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 861249;
### Instruction: Unity тілінде 861249 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 861249;
58,369,707
en
Python
string_ops
intermediate
Write a function that converts a string to uppercase in Python.
def to_upper(s): return s.upper()
### Instruction: Write a function that converts a string to uppercase in Python. ### Response: def to_upper(s): return s.upper()
31,186,533
en
Java
logic_ops
intermediate
Write a function that determines if the number 64 is prime in Java.
public bool IsPrime() { int n = 64; 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 64 is prime in Java. ### Response: public bool IsPrime() { int n = 64; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,476,531
en
Python
var_decl
beginner
How to declare a variable limit with value 940650 in Python?
limit = 940650
### Instruction: How to declare a variable limit with value 940650 in Python? ### Response: limit = 940650
195,204
kk
C#
sum_n
intermediate
C# тілінде 1-ден 368-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(368));
### Instruction: C# тілінде 1-ден 368-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(368));
76,928,791
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('');
2,227,891
ru
JavaScript
var_decl
beginner
Как объявить переменную timer со значением 767321 в JavaScript?
let timer = 767321;
### Instruction: Как объявить переменную timer со значением 767321 в JavaScript? ### Response: let timer = 767321;
26,939,973
ru
Python
logic_ops
advanced
Напишите на Python логику проверки, является ли год 2062 високосным.
def is_leap(): year = 2062 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2062 високосным. ### Response: def is_leap(): year = 2062 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
3,121,185
ru
Unity
var_decl
beginner
Как объявить переменную value со значением 993104 в Unity?
int value = 993104;
### Instruction: Как объявить переменную value со значением 993104 в Unity? ### Response: int value = 993104;
1,502,094
kk
Python
var_decl
beginner
Python тілінде 234192 мәнімен limit айнымалысын қалай жариялауға болады?
limit = 234192
### Instruction: Python тілінде 234192 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: limit = 234192
823,194
en
Unity
var_decl
beginner
How to declare a variable value with value 439539 in Unity?
int value = 439539;
### Instruction: How to declare a variable value with value 439539 in Unity? ### Response: int value = 439539;
61,570,685
en
Unity
array_ops
intermediate
Write a function that finds the maximum number in an array in Unity.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in Unity. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
346,067
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 1787.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(1787)); }
### Instruction: Write a function in Unity that calculates the factorial of 1787. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(1787)); }
13,941,733
kk
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; }
146,782
ru
C#
factorial
advanced
Напиши функцию на C#, которая вычисляет факториал числа 7084.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7084));
### Instruction: Напиши функцию на C#, которая вычисляет факториал числа 7084. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7084));
95,978,543
ru
Java
array_ops
intermediate
Напишите на Java функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Java функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
35,802,234
en
JavaScript
array_ops
intermediate
Write a function that reverses a list in JavaScript.
const reverseArr = arr => arr.reverse();
### Instruction: Write a function that reverses a list in JavaScript. ### Response: const reverseArr = arr => arr.reverse();
4,842,912
kk
JavaScript
var_decl
beginner
JavaScript тілінде 468506 мәнімен value айнымалысын қалай жариялауға болады?
let value = 468506;
### Instruction: JavaScript тілінде 468506 мәнімен value айнымалысын қалай жариялауға болады? ### Response: let value = 468506;
26,688,097
kk
Python
string_ops
intermediate
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
68,251,748
kk
Java
logic_ops
advanced
Java тилінде 1957 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1957; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1957 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1957; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
40,553,942
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,465,341
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(); }
17,563,675
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; }
22,621,293
kk
C#
logic_ops
intermediate
C# тилінде 133 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 133; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 133 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 133; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
526,471
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 3034.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(3034))
### Instruction: Write a function in Python that sums numbers from 1 to 3034. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(3034))
42,022,086
en
C#
logic_ops
advanced
Write logic to check if the year 1905 is a leap year in C#.
public bool IsLeap() { int y = 1905; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1905 is a leap year in C#. ### Response: public bool IsLeap() { int y = 1905; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
42,492,489
kk
Python
logic_ops
advanced
Python тилінде 143 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 143 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 143 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 143 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
74,711,117
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)
66,668,710
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(); }
182,199
ru
Unity
var_decl
beginner
Как объявить переменную rate со значением 474356 в Unity?
int rate = 474356;
### Instruction: Как объявить переменную rate со значением 474356 в Unity? ### Response: int rate = 474356;
38,162,326
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; }
4,778,155
en
C#
var_decl
beginner
How to declare a variable count with value 471747 in C#?
int count = 471747;
### Instruction: How to declare a variable count with value 471747 in C#? ### Response: int count = 471747;
72,426,242
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(); }
3,688,046
en
C++
var_decl
beginner
How to declare a variable score with value 171950 in C++?
int score = 171950;
### Instruction: How to declare a variable score with value 171950 in C++? ### Response: int score = 171950;
56,484,668
ru
Python
logic_ops
intermediate
Напишите на Python логику проверки, является ли год 2057 високосным.
def is_leap(): year = 2057 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2057 високосным. ### Response: def is_leap(): year = 2057 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
80,539,679
en
C#
logic_ops
intermediate
Write a function that determines if the number 452 is prime in C#.
public bool IsPrime() { int n = 452; 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 452 is prime in C#. ### Response: public bool IsPrime() { int n = 452; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
93,758,487
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; }
21,516,561
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('');
31,180,502
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; }
4,938,411
ru
Unity
var_decl
beginner
Как объявить переменную buffer со значением 523743 в Unity?
int buffer = 523743;
### Instruction: Как объявить переменную buffer со значением 523743 в Unity? ### Response: int buffer = 523743;
55,097,619
en
Java
logic_ops
intermediate
Write a function that determines if the number 213 is prime in Java.
public bool IsPrime() { int n = 213; 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 213 is prime in Java. ### Response: public bool IsPrime() { int n = 213; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,021,051
en
Unity
var_decl
beginner
How to declare a variable speed with value 730808 in Unity?
int speed = 730808;
### Instruction: How to declare a variable speed with value 730808 in Unity? ### Response: int speed = 730808;
38,705,857
ru
Python
string_ops
advanced
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
def is_palindrome(s): return s == s[::-1]
### Instruction: Напишите на Python функцию, которая проверяет, является ли строка палиндромом. ### Response: def is_palindrome(s): return s == s[::-1]
15,847,871
en
C#
string_ops
intermediate
Write a function that checks if a string is a palindrome in C#.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in C#. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
33,459,943
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; }
4,340,169
ru
JavaScript
var_decl
beginner
Как объявить переменную x со значением 753828 в JavaScript?
let x = 753828;
### Instruction: Как объявить переменную x со значением 753828 в JavaScript? ### Response: let x = 753828;
2,961,377
ru
Java
var_decl
beginner
Как объявить переменную x со значением 776254 в Java?
int x = 776254;
### Instruction: Как объявить переменную x со значением 776254 в Java? ### Response: int x = 776254;
13,850,360
en
Java
array_ops
intermediate
Write a function that finds the maximum number in an array in Java.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in Java. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
52,489,917
ru
Java
string_ops
advanced
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на Java функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
2,819,670
kk
Java
var_decl
beginner
Java тілінде 660691 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 660691;
### Instruction: Java тілінде 660691 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 660691;
550,119
en
C#
sum_n
intermediate
Write a function in C# that sums numbers from 1 to 3124.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(3124));
### Instruction: Write a function in C# that sums numbers from 1 to 3124. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(3124));
4,166,750
en
Python
var_decl
beginner
How to declare a variable total with value 881383 in Python?
total = 881383
### Instruction: How to declare a variable total with value 881383 in Python? ### Response: total = 881383
4,532,534
kk
Python
var_decl
beginner
Python тілінде 88358 мәнімен result айнымалысын қалай жариялауға болады?
result = 88358
### Instruction: Python тілінде 88358 мәнімен result айнымалысын қалай жариялауға болады? ### Response: result = 88358
194,276
en
JavaScript
factorial
advanced
Write a function in JavaScript that calculates the factorial of 3829.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(3829));
### Instruction: Write a function in JavaScript that calculates the factorial of 3829. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(3829));
650,883
en
Python
var_decl
beginner
How to declare a variable health with value 606843 in Python?
health = 606843
### Instruction: How to declare a variable health with value 606843 in Python? ### Response: health = 606843
935,519
ru
Java
var_decl
beginner
Как объявить переменную amount со значением 611937 в Java?
int amount = 611937;
### Instruction: Как объявить переменную amount со значением 611937 в Java? ### Response: int amount = 611937;
4,948,144
ru
C#
var_decl
beginner
Как объявить переменную result со значением 261311 в C#?
int result = 261311;
### Instruction: Как объявить переменную result со значением 261311 в C#? ### Response: int result = 261311;
3,983,547
ru
C#
var_decl
beginner
Как объявить переменную speed со значением 678626 в C#?
int speed = 678626;
### Instruction: Как объявить переменную speed со значением 678626 в C#? ### Response: int speed = 678626;
1,195,696
en
JavaScript
var_decl
beginner
How to declare a variable limit with value 802007 in JavaScript?
let limit = 802007;
### Instruction: How to declare a variable limit with value 802007 in JavaScript? ### Response: let limit = 802007;
76,197,530
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 305 is prime in JavaScript.
function isPrime() { let n = 305; 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 305 is prime in JavaScript. ### Response: function isPrime() { let n = 305; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
25,394,588
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 81 простым.
public bool IsPrime() { int n = 81; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 81 простым. ### Response: public bool IsPrime() { int n = 81; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
62,892,689
en
Java
logic_ops
advanced
Write a function that determines if the number 399 is prime in Java.
public bool IsPrime() { int n = 399; 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 399 is prime in Java. ### Response: public bool IsPrime() { int n = 399; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
71,873,733
en
Unity
logic_ops
advanced
Write logic to check if the year 1976 is a leap year in Unity.
public bool IsLeap() { int y = 1976; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1976 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 1976; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
52,679
ru
JavaScript
factorial
advanced
Напиши функцию на JavaScript, которая вычисляет факториал числа 7077.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(7077));
### Instruction: Напиши функцию на JavaScript, которая вычисляет факториал числа 7077. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(7077));
4,793,584
ru
Java
var_decl
beginner
Как объявить переменную x со значением 635196 в Java?
int x = 635196;
### Instruction: Как объявить переменную x со значением 635196 в Java? ### Response: int x = 635196;
25,557,409
ru
Python
logic_ops
advanced
Напишите на Python функцию, определяющую, является ли число 274 простым.
def is_prime(): n = 274 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 274 простым. ### Response: def is_prime(): n = 274 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
4,556,227
kk
C++
var_decl
beginner
C++ тілінде 574236 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 574236;
### Instruction: C++ тілінде 574236 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 574236;
39,730,085
en
Python
logic_ops
intermediate
Write a function that determines if the number 231 is prime in Python.
def is_prime(): n = 231 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Write a function that determines if the number 231 is prime in Python. ### Response: def is_prime(): n = 231 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
14,914,772
ru
Unity
logic_ops
intermediate
Напишите на Unity логику проверки, является ли год 1972 високосным.
public bool IsLeap() { int y = 1972; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1972 високосным. ### Response: public bool IsLeap() { int y = 1972; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
76,858,375
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; }
481,563
en
Python
var_decl
beginner
How to declare a variable total with value 499401 in Python?
total = 499401
### Instruction: How to declare a variable total with value 499401 in Python? ### Response: total = 499401
83,128,314
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; }
63,814,581
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(); }
22,333,093
en
Python
logic_ops
intermediate
Write a function that determines if the number 263 is prime in Python.
def is_prime(): n = 263 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Write a function that determines if the number 263 is prime in Python. ### Response: def is_prime(): n = 263 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
25,031,588
en
JavaScript
string_ops
advanced
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;
4,504,871
en
Java
var_decl
beginner
How to declare a variable score with value 85148 in Java?
int score = 85148;
### Instruction: How to declare a variable score with value 85148 in Java? ### Response: int score = 85148;
54,007,437
kk
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; }
39,902,976
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; }
13,568,524
kk
JavaScript
array_ops
intermediate
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
const reverseArr = arr => arr.reverse();
### Instruction: JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: const reverseArr = arr => arr.reverse();
3,273,936
en
Unity
var_decl
beginner
How to declare a variable result with value 20030 in Unity?
int result = 20030;
### Instruction: How to declare a variable result with value 20030 in Unity? ### Response: int result = 20030;
4,836,182
ru
Python
var_decl
beginner
Как объявить переменную buffer со значением 651917 в Python?
buffer = 651917
### Instruction: Как объявить переменную buffer со значением 651917 в Python? ### Response: buffer = 651917
64,338,882
kk
C++
logic_ops
advanced
C++ тилінде 1980 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1980; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1980 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1980; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
56,109,456
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; }
27,213,745
kk
Python
logic_ops
intermediate
Python тилінде 391 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 391 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 391 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 391 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
65,382,085
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(); }