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
3,342,802
ru
C++
var_decl
beginner
Как объявить переменную level со значением 818669 в C++?
int level = 818669;
### Instruction: Как объявить переменную level со значением 818669 в C++? ### Response: int level = 818669;
1,012,536
en
Python
var_decl
beginner
How to declare a variable result with value 50840 in Python?
result = 50840
### Instruction: How to declare a variable result with value 50840 in Python? ### Response: result = 50840
18,280,663
en
Unity
array_ops
advanced
Write a function that reverses a list in Unity.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Unity. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
71,591,010
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 1901 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 1901; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 1901 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 1901; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
80,142,313
kk
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); }
88,332,502
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
252,732
ru
Java
factorial
advanced
Напиши функцию на Java, которая вычисляет факториал числа 6866.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(6866));
### Instruction: Напиши функцию на Java, которая вычисляет факториал числа 6866. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(6866));
73,188,873
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 2004 високосным.
public bool IsLeap() { int y = 2004; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2004 високосным. ### Response: public bool IsLeap() { int y = 2004; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,845,076
kk
C++
var_decl
beginner
C++ тілінде 494532 мәнімен y айнымалысын қалай жариялауға болады?
int y = 494532;
### Instruction: C++ тілінде 494532 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 494532;
987,756
en
JavaScript
var_decl
beginner
How to declare a variable limit with value 385117 in JavaScript?
let limit = 385117;
### Instruction: How to declare a variable limit with value 385117 in JavaScript? ### Response: let limit = 385117;
491,826
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 7519.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(7519))
### Instruction: Write a function in Python that sums numbers from 1 to 7519. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(7519))
2,428,051
ru
Unity
var_decl
beginner
Как объявить переменную rate со значением 774255 в Unity?
int rate = 774255;
### Instruction: Как объявить переменную rate со значением 774255 в Unity? ### Response: int rate = 774255;
4,569,693
ru
JavaScript
var_decl
beginner
Как объявить переменную x со значением 241775 в JavaScript?
let x = 241775;
### Instruction: Как объявить переменную x со значением 241775 в JavaScript? ### Response: let x = 241775;
3,344,764
en
JavaScript
var_decl
beginner
How to declare a variable result with value 811445 in JavaScript?
let result = 811445;
### Instruction: How to declare a variable result with value 811445 in JavaScript? ### Response: let result = 811445;
63,087,823
en
Unity
logic_ops
intermediate
Write logic to check if the year 2066 is a leap year in Unity.
public bool IsLeap() { int y = 2066; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2066 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2066; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
92,400,642
en
C++
logic_ops
advanced
Write a function that determines if the number 455 is prime in C++.
public bool IsPrime() { int n = 455; 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 455 is prime in C++. ### Response: public bool IsPrime() { int n = 455; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,187,775
kk
C++
var_decl
beginner
C++ тілінде 765896 мәнімен y айнымалысын қалай жариялауға болады?
int y = 765896;
### Instruction: C++ тілінде 765896 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 765896;
95,979,755
en
C++
string_ops
intermediate
Write a function that converts a string to uppercase in C++.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in C++. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
1,333,610
ru
JavaScript
var_decl
beginner
Как объявить переменную total со значением 162509 в JavaScript?
let total = 162509;
### Instruction: Как объявить переменную total со значением 162509 в JavaScript? ### Response: let total = 162509;
3,359,001
kk
Python
var_decl
beginner
Python тілінде 456183 мәнімен index айнымалысын қалай жариялауға болады?
index = 456183
### Instruction: Python тілінде 456183 мәнімен index айнымалысын қалай жариялауға болады? ### Response: index = 456183
30,469,065
ru
C++
logic_ops
intermediate
Напишите на C++ логику проверки, является ли год 2096 високосным.
public bool IsLeap() { int y = 2096; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 2096 високосным. ### Response: public bool IsLeap() { int y = 2096; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
85,184,866
en
Python
string_ops
advanced
Write a function that checks if a string is a palindrome in Python.
def is_palindrome(s): return s == s[::-1]
### Instruction: Write a function that checks if a string is a palindrome in Python. ### Response: def is_palindrome(s): return s == s[::-1]
1,953,439
kk
JavaScript
var_decl
beginner
JavaScript тілінде 791075 мәнімен buffer айнымалысын қалай жариялауға болады?
let buffer = 791075;
### Instruction: JavaScript тілінде 791075 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: let buffer = 791075;
89,407,839
kk
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; }
23,889,599
en
JavaScript
array_ops
advanced
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();
62,262,671
en
C++
logic_ops
intermediate
Write logic to check if the year 1915 is a leap year in C++.
public bool IsLeap() { int y = 1915; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1915 is a leap year in C++. ### Response: public bool IsLeap() { int y = 1915; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
34,666,678
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); }
85,154,195
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
102,789
kk
Java
sum_n
intermediate
Java тілінде 1-ден 3839-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(3839));
### Instruction: Java тілінде 1-ден 3839-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(3839));
4,509,898
kk
Unity
var_decl
beginner
Unity тілінде 340303 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 340303;
### Instruction: Unity тілінде 340303 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 340303;
97,702,966
ru
C#
array_ops
intermediate
Напишите на C# функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на C# функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
4,886,198
en
JavaScript
var_decl
beginner
How to declare a variable size with value 85736 in JavaScript?
let size = 85736;
### Instruction: How to declare a variable size with value 85736 in JavaScript? ### Response: let size = 85736;
31,408,586
ru
Java
string_ops
intermediate
Напишите на Java функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на Java функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
4,422,880
en
Java
var_decl
beginner
How to declare a variable amount with value 937001 in Java?
int amount = 937001;
### Instruction: How to declare a variable amount with value 937001 in Java? ### Response: int amount = 937001;
1,247,956
ru
C++
var_decl
beginner
Как объявить переменную offset со значением 996762 в C++?
int offset = 996762;
### Instruction: Как объявить переменную offset со значением 996762 в C++? ### Response: int offset = 996762;
69,991,767
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 1987 високосным.
public bool IsLeap() { int y = 1987; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 1987 високосным. ### Response: public bool IsLeap() { int y = 1987; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
96,316
kk
Unity
sum_n
intermediate
Unity тілінде 1-ден 9204-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(9204)); }
### Instruction: Unity тілінде 1-ден 9204-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(9204)); }
2,918,970
en
C#
var_decl
beginner
How to declare a variable result with value 121266 in C#?
int result = 121266;
### Instruction: How to declare a variable result with value 121266 in C#? ### Response: int result = 121266;
1,975,565
kk
Java
var_decl
beginner
Java тілінде 70311 мәнімен timer айнымалысын қалай жариялауға болады?
int timer = 70311;
### Instruction: Java тілінде 70311 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: int timer = 70311;
45,644,132
en
Unity
string_ops
intermediate
Write a function that converts a string to uppercase in Unity.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Unity. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
1,149,926
en
Java
var_decl
beginner
How to declare a variable offset with value 195871 in Java?
int offset = 195871;
### Instruction: How to declare a variable offset with value 195871 in Java? ### Response: int offset = 195871;
53,288,444
kk
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); }
98,918,517
ru
C++
array_ops
advanced
Напишите на 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; }
84,499,109
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(); }
30,031,833
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]
44,688,117
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('');
61,128,795
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]
82,645,361
ru
Java
array_ops
advanced
Напишите на 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; }
310,695
en
C++
factorial
advanced
Write a function in C++ that calculates the factorial of 8885.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(8885) << std::endl;
### Instruction: Write a function in C++ that calculates the factorial of 8885. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(8885) << std::endl;
67,736,288
kk
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); }
17,148,013
ru
C#
logic_ops
intermediate
Напишите на C# логику проверки, является ли год 2065 високосным.
public bool IsLeap() { int y = 2065; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2065 високосным. ### Response: public bool IsLeap() { int y = 2065; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
41,397,127
ru
Java
logic_ops
intermediate
Напишите на Java логику проверки, является ли год 1924 високосным.
public bool IsLeap() { int y = 1924; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 1924 високосным. ### Response: public bool IsLeap() { int y = 1924; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
74,337,886
ru
Python
logic_ops
intermediate
Напишите на Python функцию, определяющую, является ли число 345 простым.
def is_prime(): n = 345 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 345 простым. ### Response: def is_prime(): n = 345 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
83,505
en
Java
factorial
advanced
Write a function in Java that calculates the factorial of 6153.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(6153));
### Instruction: Write a function in Java that calculates the factorial of 6153. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(6153));
81,456,001
kk
Python
logic_ops
intermediate
Python тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
def is_leap(): year = 1920 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Python тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: def is_leap(): year = 1920 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
68,780,194
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
14,030,583
kk
Python
array_ops
advanced
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
def get_max(arr): return max(arr)
### Instruction: Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: def get_max(arr): return max(arr)
4,731,760
ru
C++
var_decl
beginner
Как объявить переменную limit со значением 214165 в C++?
int limit = 214165;
### Instruction: Как объявить переменную limit со значением 214165 в C++? ### Response: int limit = 214165;
57,324,715
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; }
3,138,638
ru
C++
var_decl
beginner
Как объявить переменную offset со значением 291178 в C++?
int offset = 291178;
### Instruction: Как объявить переменную offset со значением 291178 в C++? ### Response: int offset = 291178;
872,137
en
C++
var_decl
beginner
How to declare a variable score with value 64826 in C++?
int score = 64826;
### Instruction: How to declare a variable score with value 64826 in C++? ### Response: int score = 64826;
20,872,079
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; }
94,480,906
kk
C++
logic_ops
advanced
C++ тилінде 63 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 63; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C++ тилінде 63 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 63; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
29,646,690
en
Java
logic_ops
advanced
Write logic to check if the year 1924 is a leap year in Java.
public bool IsLeap() { int y = 1924; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1924 is a leap year in Java. ### Response: public bool IsLeap() { int y = 1924; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,970,213
en
C#
var_decl
beginner
How to declare a variable timer with value 160525 in C#?
int timer = 160525;
### Instruction: How to declare a variable timer with value 160525 in C#? ### Response: int timer = 160525;
90,182,843
ru
C#
array_ops
advanced
Напишите на 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; }
3,219,357
ru
C#
var_decl
beginner
Как объявить переменную rate со значением 680389 в C#?
int rate = 680389;
### Instruction: Как объявить переменную rate со значением 680389 в C#? ### Response: int rate = 680389;
1,879,279
ru
C#
var_decl
beginner
Как объявить переменную size со значением 695939 в C#?
int size = 695939;
### Instruction: Как объявить переменную size со значением 695939 в C#? ### Response: int size = 695939;
63,744
ru
Unity
var_decl
beginner
Как объявить переменную count со значением 159629 в Unity?
int count = 159629;
### Instruction: Как объявить переменную count со значением 159629 в Unity? ### Response: int count = 159629;
1,938,275
kk
JavaScript
var_decl
beginner
JavaScript тілінде 643257 мәнімен health айнымалысын қалай жариялауға болады?
let health = 643257;
### Instruction: JavaScript тілінде 643257 мәнімен health айнымалысын қалай жариялауға болады? ### Response: let health = 643257;
96,398,888
kk
Python
array_ops
intermediate
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
1,048,245
ru
Java
var_decl
beginner
Как объявить переменную level со значением 822140 в Java?
int level = 822140;
### Instruction: Как объявить переменную level со значением 822140 в Java? ### Response: int level = 822140;
1,656,281
ru
JavaScript
var_decl
beginner
Как объявить переменную index со значением 895640 в JavaScript?
let index = 895640;
### Instruction: Как объявить переменную index со значением 895640 в JavaScript? ### Response: let index = 895640;
2,228,308
ru
Python
var_decl
beginner
Как объявить переменную x со значением 947908 в Python?
x = 947908
### Instruction: Как объявить переменную x со значением 947908 в Python? ### Response: x = 947908
115,879
en
C#
var_decl
beginner
How to declare a variable weight with value 641712 in C#?
int weight = 641712;
### Instruction: How to declare a variable weight with value 641712 in C#? ### Response: int weight = 641712;
1,286,916
ru
Java
var_decl
beginner
Как объявить переменную timer со значением 611371 в Java?
int timer = 611371;
### Instruction: Как объявить переменную timer со значением 611371 в Java? ### Response: int timer = 611371;
87,615,337
ru
C#
array_ops
intermediate
Напишите на C# функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на C# функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
920,541
kk
Python
var_decl
beginner
Python тілінде 841156 мәнімен health айнымалысын қалай жариялауға болады?
health = 841156
### Instruction: Python тілінде 841156 мәнімен health айнымалысын қалай жариялауға болады? ### Response: health = 841156
36,600,118
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аеёиоуыэюя')
359,639
ru
C++
sum_n
intermediate
Напиши функцию на C++, которая считает сумму чисел от 1 до 4926.
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(4926) << std::endl;
### Instruction: Напиши функцию на C++, которая считает сумму чисел от 1 до 4926. ### 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(4926) << std::endl;
429,840
ru
Unity
factorial
advanced
Напиши функцию на Unity, которая вычисляет факториал числа 751.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(751)); }
### Instruction: Напиши функцию на Unity, которая вычисляет факториал числа 751. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(751)); }
3,455,981
en
Unity
var_decl
beginner
How to declare a variable speed with value 928705 in Unity?
int speed = 928705;
### Instruction: How to declare a variable speed with value 928705 in Unity? ### Response: int speed = 928705;
43,888,499
en
JavaScript
array_ops
advanced
Write a function that filters only even numbers from a list in JavaScript.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Write a function that filters only even numbers from a list in JavaScript. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
52,267,469
en
C#
logic_ops
intermediate
Write logic to check if the year 2004 is a leap year in C#.
public bool IsLeap() { int y = 2004; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2004 is a leap year in C#. ### Response: public bool IsLeap() { int y = 2004; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,199,638
kk
Java
var_decl
beginner
Java тілінде 306222 мәнімен total айнымалысын қалай жариялауға болады?
int total = 306222;
### Instruction: Java тілінде 306222 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 306222;
1,851,259
en
Python
var_decl
beginner
How to declare a variable total with value 185529 in Python?
total = 185529
### Instruction: How to declare a variable total with value 185529 in Python? ### Response: total = 185529
43,132,106
en
C++
array_ops
intermediate
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; }
1,850,005
kk
Python
var_decl
beginner
Python тілінде 813208 мәнімен offset айнымалысын қалай жариялауға болады?
offset = 813208
### Instruction: Python тілінде 813208 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: offset = 813208
43,719,333
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 446 простым.
public bool IsPrime() { int n = 446; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 446 простым. ### Response: public bool IsPrime() { int n = 446; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,744,692
kk
C#
var_decl
beginner
C# тілінде 950780 мәнімен score айнымалысын қалай жариялауға болады?
int score = 950780;
### Instruction: C# тілінде 950780 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 950780;
507,234
ru
C#
sum_n
intermediate
Напиши функцию на C#, которая считает сумму чисел от 1 до 8754.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(8754));
### Instruction: Напиши функцию на C#, которая считает сумму чисел от 1 до 8754. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(8754));
3,896,665
ru
Java
var_decl
beginner
Как объявить переменную health со значением 398992 в Java?
int health = 398992;
### Instruction: Как объявить переменную health со значением 398992 в Java? ### Response: int health = 398992;
33,280,360
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;
132,340
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 8522.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(8522)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 8522. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(8522)); }
98,253,424
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(); }
33,744,444
en
C#
logic_ops
intermediate
Write logic to check if the year 2018 is a leap year in C#.
public bool IsLeap() { int y = 2018; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2018 is a leap year in C#. ### Response: public bool IsLeap() { int y = 2018; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,395,620
en
C++
var_decl
beginner
How to declare a variable speed with value 191123 in C++?
int speed = 191123;
### Instruction: How to declare a variable speed with value 191123 in C++? ### Response: int speed = 191123;
80,717,819
kk
Unity
logic_ops
intermediate
Unity тилінде 1961 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1961; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1961 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1961; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
98,830,369
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 147 простым.
public bool IsPrime() { int n = 147; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 147 простым. ### Response: public bool IsPrime() { int n = 147; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
77,858,352
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('');