id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
4,319,441
ru
C++
var_decl
beginner
Как объявить переменную count со значением 780501 в C++?
int count = 780501;
### Instruction: Как объявить переменную count со значением 780501 в C++? ### Response: int count = 780501;
523,578
kk
C#
factorial
advanced
C# тілінде 2827 санының факториалын есептейтін функция жаз.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(2827));
### Instruction: C# тілінде 2827 санының факториалын есептейтін функция жаз. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(2827));
4,365,157
kk
JavaScript
var_decl
beginner
JavaScript тілінде 486679 мәнімен speed айнымалысын қалай жариялауға болады?
let speed = 486679;
### Instruction: JavaScript тілінде 486679 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: let speed = 486679;
75,799,585
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
72,276,491
en
Java
logic_ops
advanced
Write logic to check if the year 1998 is a leap year in Java.
public bool IsLeap() { int y = 1998; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1998 is a leap year in Java. ### Response: public bool IsLeap() { int y = 1998; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
53,139,445
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]
3,344,434
en
C#
var_decl
beginner
How to declare a variable score with value 764958 in C#?
int score = 764958;
### Instruction: How to declare a variable score with value 764958 in C#? ### Response: int score = 764958;
3,180,838
kk
Java
var_decl
beginner
Java тілінде 232868 мәнімен level айнымалысын қалай жариялауға болады?
int level = 232868;
### Instruction: Java тілінде 232868 мәнімен level айнымалысын қалай жариялауға болады? ### Response: int level = 232868;
1,299,692
en
JavaScript
var_decl
beginner
How to declare a variable level with value 425005 in JavaScript?
let level = 425005;
### Instruction: How to declare a variable level with value 425005 in JavaScript? ### Response: let level = 425005;
29,842,379
ru
JavaScript
logic_ops
advanced
Напишите на JavaScript логику проверки, является ли год 1991 високосным.
function isLeap() { let y = 1991; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 1991 високосным. ### Response: function isLeap() { let y = 1991; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
61,790,968
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 2097 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2097; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2097 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2097; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
2,600,832
en
JavaScript
var_decl
beginner
How to declare a variable health with value 893033 in JavaScript?
let health = 893033;
### Instruction: How to declare a variable health with value 893033 in JavaScript? ### Response: let health = 893033;
1,265,957
ru
C++
var_decl
beginner
Как объявить переменную count со значением 510372 в C++?
int count = 510372;
### Instruction: Как объявить переменную count со значением 510372 в C++? ### Response: int count = 510372;
70,865,547
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; }
15,018,365
kk
Java
string_ops
advanced
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
16,494,675
ru
C#
logic_ops
advanced
Напишите на C# функцию, определяющую, является ли число 50 простым.
public bool IsPrime() { int n = 50; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 50 простым. ### Response: public bool IsPrime() { int n = 50; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
59,986,984
ru
Python
logic_ops
advanced
Напишите на Python логику проверки, является ли год 1958 високосным.
def is_leap(): year = 1958 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 1958 високосным. ### Response: def is_leap(): year = 1958 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
98,958,512
en
Java
string_ops
advanced
Write a function that checks if a string is a palindrome in 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: Write a function that checks if a string is a palindrome in 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; }
88,555,897
ru
Java
logic_ops
intermediate
Напишите на Java логику проверки, является ли год 1963 високосным.
public bool IsLeap() { int y = 1963; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 1963 високосным. ### Response: public bool IsLeap() { int y = 1963; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
87,989,011
en
Unity
array_ops
intermediate
Write a function that filters only even numbers from a list in 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: Write a function that filters only even numbers from a list in 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; }
13,787,418
en
Java
array_ops
advanced
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); }
20,144,885
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('');
50,756,134
kk
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);
4,233,141
kk
JavaScript
var_decl
beginner
JavaScript тілінде 838551 мәнімен rate айнымалысын қалай жариялауға болады?
let rate = 838551;
### Instruction: JavaScript тілінде 838551 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: let rate = 838551;
20,865,305
en
Java
array_ops
intermediate
Write a function that filters only even numbers from a list in Java.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Write a function that filters only even numbers from a list in Java. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
75,233,596
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,977,798
en
C++
var_decl
beginner
How to declare a variable y with value 740073 in C++?
int y = 740073;
### Instruction: How to declare a variable y with value 740073 in C++? ### Response: int y = 740073;
85,487,955
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
920,246
en
C#
var_decl
beginner
How to declare a variable total with value 982637 in C#?
int total = 982637;
### Instruction: How to declare a variable total with value 982637 in C#? ### Response: int total = 982637;
238,792
en
Unity
var_decl
beginner
How to declare a variable timer with value 708885 in Unity?
int timer = 708885;
### Instruction: How to declare a variable timer with value 708885 in Unity? ### Response: int timer = 708885;
327,945
kk
C#
var_decl
beginner
C# тілінде 231338 мәнімен y айнымалысын қалай жариялауға болады?
int y = 231338;
### Instruction: C# тілінде 231338 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 231338;
38,859,244
en
C++
string_ops
advanced
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; }
39,274,955
ru
C#
logic_ops
intermediate
Напишите на C# логику проверки, является ли год 2012 високосным.
public bool IsLeap() { int y = 2012; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2012 високосным. ### Response: public bool IsLeap() { int y = 2012; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,277,125
ru
Python
var_decl
beginner
Как объявить переменную buffer со значением 935679 в Python?
buffer = 935679
### Instruction: Как объявить переменную buffer со значением 935679 в Python? ### Response: buffer = 935679
76,862,042
ru
C#
string_ops
intermediate
Напишите на C# функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на C# функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
386,044
ru
C#
var_decl
beginner
Как объявить переменную score со значением 392220 в C#?
int score = 392220;
### Instruction: Как объявить переменную score со значением 392220 в C#? ### Response: int score = 392220;
88,077,386
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 2052 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2052; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2052 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2052; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
1,488,659
en
JavaScript
var_decl
beginner
How to declare a variable speed with value 124032 in JavaScript?
let speed = 124032;
### Instruction: How to declare a variable speed with value 124032 in JavaScript? ### Response: let speed = 124032;
27,398,995
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; }
1,369,964
ru
C#
var_decl
beginner
Как объявить переменную amount со значением 794457 в C#?
int amount = 794457;
### Instruction: Как объявить переменную amount со значением 794457 в C#? ### Response: int amount = 794457;
16,018,212
en
C#
logic_ops
intermediate
Write a function that determines if the number 316 is prime in C#.
public bool IsPrime() { int n = 316; 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 316 is prime in C#. ### Response: public bool IsPrime() { int n = 316; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
60,832,681
en
C#
logic_ops
advanced
Write logic to check if the year 1940 is a leap year in C#.
public bool IsLeap() { int y = 1940; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1940 is a leap year in C#. ### Response: public bool IsLeap() { int y = 1940; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
808,064
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 3424.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(3424)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 3424. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(3424)); }
32,940,400
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); }
56,097,023
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 2045 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2045; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2045 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2045; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
66,226,864
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; }
2,647,038
en
Unity
var_decl
beginner
How to declare a variable offset with value 538553 in Unity?
int offset = 538553;
### Instruction: How to declare a variable offset with value 538553 in Unity? ### Response: int offset = 538553;
57,433,281
ru
Python
logic_ops
intermediate
Напишите на Python функцию, определяющую, является ли число 213 простым.
def is_prime(): n = 213 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 213 простым. ### Response: def is_prime(): n = 213 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
3,785,335
kk
Python
var_decl
beginner
Python тілінде 895797 мәнімен result айнымалысын қалай жариялауға болады?
result = 895797
### Instruction: Python тілінде 895797 мәнімен result айнымалысын қалай жариялауға болады? ### Response: result = 895797
17,702,080
kk
Unity
logic_ops
intermediate
Unity тилінде 1997 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1997; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1997 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1997; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
19,137,525
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); }
33,724,753
en
Python
logic_ops
advanced
Write a function that determines if the number 11 is prime in Python.
def is_prime(): n = 11 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 11 is prime in Python. ### Response: def is_prime(): n = 11 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
23,477,657
en
C++
logic_ops
intermediate
Write a function that determines if the number 186 is prime in C++.
public bool IsPrime() { int n = 186; 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 186 is prime in C++. ### Response: public bool IsPrime() { int n = 186; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
32,848,275
en
Java
logic_ops
intermediate
Write a function that determines if the number 169 is prime in Java.
public bool IsPrime() { int n = 169; 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 169 is prime in Java. ### Response: public bool IsPrime() { int n = 169; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
47,411,810
ru
Python
array_ops
advanced
Напишите на Python функцию, которая находит максимальное число в массиве.
def get_max(arr): return max(arr)
### Instruction: Напишите на Python функцию, которая находит максимальное число в массиве. ### Response: def get_max(arr): return max(arr)
4,297,460
ru
Java
var_decl
beginner
Как объявить переменную amount со значением 643673 в Java?
int amount = 643673;
### Instruction: Как объявить переменную amount со значением 643673 в Java? ### Response: int amount = 643673;
70,610,817
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
1,098,459
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 9235.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(9235)); }
### Instruction: Write a function in Unity that calculates the factorial of 9235. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(9235)); }
276,042
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 9282.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(9282)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 9282. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(9282)); }
98,380,013
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('');
2,158,468
en
Java
var_decl
beginner
How to declare a variable value with value 72405 in Java?
int value = 72405;
### Instruction: How to declare a variable value with value 72405 in Java? ### Response: int value = 72405;
12,626,468
en
Java
string_ops
advanced
Write a function that checks if a string is a palindrome in 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: Write a function that checks if a string is a palindrome in 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; }
90,886,472
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); }
294,775
kk
C#
factorial
advanced
C# тілінде 9523 санының факториалын есептейтін функция жаз.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(9523));
### Instruction: C# тілінде 9523 санының факториалын есептейтін функция жаз. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(9523));
31,335
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 9779.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(9779));
### Instruction: Write a function in Java that sums numbers from 1 to 9779. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(9779));
80,456,376
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]
3,266,252
ru
Java
var_decl
beginner
Как объявить переменную total со значением 969354 в Java?
int total = 969354;
### Instruction: Как объявить переменную total со значением 969354 в Java? ### Response: int total = 969354;
2,518,302
ru
Python
var_decl
beginner
Как объявить переменную size со значением 564104 в Python?
size = 564104
### Instruction: Как объявить переменную size со значением 564104 в Python? ### Response: size = 564104
11,355,212
ru
Java
logic_ops
intermediate
Напишите на Java функцию, определяющую, является ли число 307 простым.
public bool IsPrime() { int n = 307; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 307 простым. ### Response: public bool IsPrime() { int n = 307; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
60,836,448
ru
Python
string_ops
advanced
Напишите на 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аеёиоуыэюя')
90,320,391
ru
Java
array_ops
advanced
Напишите на Java функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на Java функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
2,324,919
ru
Python
var_decl
beginner
Как объявить переменную result со значением 703282 в Python?
result = 703282
### Instruction: Как объявить переменную result со значением 703282 в Python? ### Response: result = 703282
1,437,764
kk
C#
var_decl
beginner
C# тілінде 529801 мәнімен total айнымалысын қалай жариялауға болады?
int total = 529801;
### Instruction: C# тілінде 529801 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 529801;
3,888,096
kk
JavaScript
var_decl
beginner
JavaScript тілінде 987331 мәнімен x айнымалысын қалай жариялауға болады?
let x = 987331;
### Instruction: JavaScript тілінде 987331 мәнімен x айнымалысын қалай жариялауға болады? ### Response: let x = 987331;
4,454,691
ru
C#
var_decl
beginner
Как объявить переменную buffer со значением 295924 в C#?
int buffer = 295924;
### Instruction: Как объявить переменную buffer со значением 295924 в C#? ### Response: int buffer = 295924;
85,412,290
ru
JavaScript
logic_ops
advanced
Напишите на JavaScript функцию, определяющую, является ли число 34 простым.
function isPrime() { let n = 34; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 34 простым. ### Response: function isPrime() { let n = 34; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
189,477
en
JavaScript
factorial
advanced
Write a function in JavaScript that calculates the factorial of 6801.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(6801));
### Instruction: Write a function in JavaScript that calculates the factorial of 6801. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(6801));
14,740,137
kk
JavaScript
array_ops
advanced
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
const reverseArr = arr => arr.reverse();
### Instruction: JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: const reverseArr = arr => arr.reverse();
73,929,450
kk
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); }
37,820,998
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]
84,183,897
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); }
91,992,138
en
C#
string_ops
advanced
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; }
4,966,545
en
JavaScript
var_decl
beginner
How to declare a variable buffer with value 669964 in JavaScript?
let buffer = 669964;
### Instruction: How to declare a variable buffer with value 669964 in JavaScript? ### Response: let buffer = 669964;
73,772,388
ru
Java
array_ops
advanced
Напишите на Java функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на Java функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
4,095,392
en
C#
var_decl
beginner
How to declare a variable value with value 672999 in C#?
int value = 672999;
### Instruction: How to declare a variable value with value 672999 in C#? ### Response: int value = 672999;
63,520,911
en
Unity
logic_ops
intermediate
Write a function that determines if the number 159 is prime in Unity.
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: Write a function that determines if the number 159 is prime in Unity. ### 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; }
1,476,101
ru
Java
var_decl
beginner
Как объявить переменную limit со значением 474708 в Java?
int limit = 474708;
### Instruction: Как объявить переменную limit со значением 474708 в Java? ### Response: int limit = 474708;
224,472
ru
C++
factorial
advanced
Напиши функцию на C++, которая вычисляет факториал числа 983.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(983) << std::endl;
### Instruction: Напиши функцию на C++, которая вычисляет факториал числа 983. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(983) << std::endl;
21,515,904
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аеёиоуыэюя')
2,115,805
en
JavaScript
var_decl
beginner
How to declare a variable speed with value 605489 in JavaScript?
let speed = 605489;
### Instruction: How to declare a variable speed with value 605489 in JavaScript? ### Response: let speed = 605489;
918,231
kk
C++
sum_n
intermediate
C++ тілінде 1-ден 5947-ге дейінгі сандардың қосындысын есептейтін функция жаз.
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(5947) << std::endl;
### Instruction: C++ тілінде 1-ден 5947-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### 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(5947) << std::endl;
3,209,341
ru
JavaScript
var_decl
beginner
Как объявить переменную total со значением 333779 в JavaScript?
let total = 333779;
### Instruction: Как объявить переменную total со значением 333779 в JavaScript? ### Response: let total = 333779;
1,391,603
en
C++
var_decl
beginner
How to declare a variable health with value 821015 in C++?
int health = 821015;
### Instruction: How to declare a variable health with value 821015 in C++? ### Response: int health = 821015;
60,644,694
kk
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]
3,942,752
en
JavaScript
var_decl
beginner
How to declare a variable timer with value 467040 in JavaScript?
let timer = 467040;
### Instruction: How to declare a variable timer with value 467040 in JavaScript? ### Response: let timer = 467040;
2,905,084
en
Python
var_decl
beginner
How to declare a variable amount with value 789527 in Python?
amount = 789527
### Instruction: How to declare a variable amount with value 789527 in Python? ### Response: amount = 789527
84,518,014
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; }
92,997,933
kk
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аеёиоуыэюя')
26,650,374
en
JavaScript
string_ops
advanced
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('');
668,840
kk
Java
var_decl
beginner
Java тілінде 511056 мәнімен count айнымалысын қалай жариялауға болады?
int count = 511056;
### Instruction: Java тілінде 511056 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 511056;