id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
95,367,686
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 77 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 77; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 77 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 77; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
12,621
en
Python
func_def
intermediate
Write a function handle in Python that takes amount and doubles it.
def handle(amount): return amount * 2
### Instruction: Write a function handle in Python that takes amount and doubles it. ### Response: def handle(amount): return amount * 2
1,586,499
kk
C++
var_decl
beginner
C++ тілінде 98791 мәнімен score айнымалысын қалай жариялауға болады?
int score = 98791;
### Instruction: C++ тілінде 98791 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 98791;
4,052,881
kk
Java
var_decl
beginner
Java тілінде 463350 мәнімен data айнымалысын қалай жариялауға болады?
int data = 463350;
### Instruction: Java тілінде 463350 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 463350;
1,744,211
en
Java
var_decl
beginner
How to declare a variable timer with value 981838 in Java?
int timer = 981838;
### Instruction: How to declare a variable timer with value 981838 in Java? ### Response: int timer = 981838;
81,458,067
ru
Unity
array_ops
intermediate
Напишите на Unity функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на Unity функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
83,777,582
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 1982 високосным.
public bool IsLeap() { int y = 1982; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 1982 високосным. ### Response: public bool IsLeap() { int y = 1982; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
47,819,504
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аеёиоуыэюя')
530,597
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 6341.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(6341)); }
### Instruction: Write a function in Unity that calculates the factorial of 6341. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(6341)); }
1,589,083
en
Unity
var_decl
beginner
How to declare a variable timer with value 818648 in Unity?
int timer = 818648;
### Instruction: How to declare a variable timer with value 818648 in Unity? ### Response: int timer = 818648;
1,422,788
ru
Python
var_decl
beginner
Как объявить переменную size со значением 418988 в Python?
size = 418988
### Instruction: Как объявить переменную size со значением 418988 в Python? ### Response: size = 418988
3,917,282
en
Python
var_decl
beginner
How to declare a variable buffer with value 195915 in Python?
buffer = 195915
### Instruction: How to declare a variable buffer with value 195915 in Python? ### Response: buffer = 195915
379,892
ru
C++
sum_n
intermediate
Напиши функцию на C++, которая считает сумму чисел от 1 до 8233.
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(8233) << std::endl;
### Instruction: Напиши функцию на C++, которая считает сумму чисел от 1 до 8233. ### 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(8233) << std::endl;
69,925,908
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 2075 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2075; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2075 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2075; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
656,233
kk
C#
var_decl
beginner
C# тілінде 341550 мәнімен y айнымалысын қалай жариялауға болады?
int y = 341550;
### Instruction: C# тілінде 341550 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 341550;
21,596,789
kk
Java
logic_ops
advanced
Java тилінде 1981 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1981; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1981 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1981; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,061,689
en
Unity
var_decl
beginner
How to declare a variable total with value 817517 in Unity?
int total = 817517;
### Instruction: How to declare a variable total with value 817517 in Unity? ### Response: int total = 817517;
25,679,532
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; }
90,972,785
en
Python
logic_ops
intermediate
Write a function that determines if the number 161 is prime in Python.
def is_prime(): n = 161 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 161 is prime in Python. ### Response: def is_prime(): n = 161 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
4,989,839
kk
C++
var_decl
beginner
C++ тілінде 380303 мәнімен size айнымалысын қалай жариялауға болады?
int size = 380303;
### Instruction: C++ тілінде 380303 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 380303;
975,516
kk
Java
var_decl
beginner
Java тілінде 369890 мәнімен index айнымалысын қалай жариялауға болады?
int index = 369890;
### Instruction: Java тілінде 369890 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 369890;
55,392,675
ru
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; }
79,741,761
kk
Java
string_ops
intermediate
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
3,474,877
en
Java
var_decl
beginner
How to declare a variable x with value 264927 in Java?
int x = 264927;
### Instruction: How to declare a variable x with value 264927 in Java? ### Response: int x = 264927;
35,726,529
kk
Unity
logic_ops
advanced
Unity тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1983; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1983; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
15,473,961
ru
Python
logic_ops
intermediate
Напишите на Python логику проверки, является ли год 2073 високосным.
def is_leap(): year = 2073 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2073 високосным. ### Response: def is_leap(): year = 2073 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
2,786,468
ru
C++
var_decl
beginner
Как объявить переменную value со значением 868691 в C++?
int value = 868691;
### Instruction: Как объявить переменную value со значением 868691 в C++? ### Response: int value = 868691;
2,408,176
ru
Java
var_decl
beginner
Как объявить переменную index со значением 415035 в Java?
int index = 415035;
### Instruction: Как объявить переменную index со значением 415035 в Java? ### Response: int index = 415035;
66,801
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 9244.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(9244)); }
### Instruction: Write a function in Unity that calculates the factorial of 9244. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(9244)); }
951,478
en
Java
var_decl
beginner
How to declare a variable health with value 907364 in Java?
int health = 907364;
### Instruction: How to declare a variable health with value 907364 in Java? ### Response: int health = 907364;
57,918
en
C#
factorial
advanced
Write a function in C# that calculates the factorial of 98.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(98));
### Instruction: Write a function in C# that calculates the factorial of 98. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(98));
4,055,450
kk
C#
var_decl
beginner
C# тілінде 348558 мәнімен result айнымалысын қалай жариялауға болады?
int result = 348558;
### Instruction: C# тілінде 348558 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 348558;
65,699,630
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; }
83,542,753
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,596,645
ru
C++
var_decl
beginner
Как объявить переменную data со значением 176641 в C++?
int data = 176641;
### Instruction: Как объявить переменную data со значением 176641 в C++? ### Response: int data = 176641;
33,025,468
en
Java
logic_ops
advanced
Write logic to check if the year 2013 is a leap year in Java.
public bool IsLeap() { int y = 2013; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2013 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2013; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
767,199
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 1461.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1461)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 1461. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1461)); }
13,187,482
kk
JavaScript
array_ops
intermediate
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
const reverseArr = arr => arr.reverse();
### Instruction: JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: const reverseArr = arr => arr.reverse();
86,240,689
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; }
43,793,110
ru
JavaScript
logic_ops
advanced
Напишите на JavaScript функцию, определяющую, является ли число 497 простым.
function isPrime() { let n = 497; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 497 простым. ### Response: function isPrime() { let n = 497; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
84,915
kk
Python
var_decl
beginner
Python тілінде 361294 мәнімен index айнымалысын қалай жариялауға болады?
index = 361294
### Instruction: Python тілінде 361294 мәнімен index айнымалысын қалай жариялауға болады? ### Response: index = 361294
36,897,772
en
C++
logic_ops
intermediate
Write a function that determines if the number 33 is prime in C++.
public bool IsPrime() { int n = 33; 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 33 is prime in C++. ### Response: public bool IsPrime() { int n = 33; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
29,613,478
kk
Unity
array_ops
intermediate
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
56,070,433
ru
Unity
logic_ops
advanced
Напишите на Unity логику проверки, является ли год 1911 високосным.
public bool IsLeap() { int y = 1911; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1911 високосным. ### Response: public bool IsLeap() { int y = 1911; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
73,220,656
en
Python
string_ops
intermediate
Write a function that counts vowels in a text in Python.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Write a function that counts vowels in a text in Python. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
3,873,150
ru
Java
var_decl
beginner
Как объявить переменную index со значением 191900 в Java?
int index = 191900;
### Instruction: Как объявить переменную index со значением 191900 в Java? ### Response: int index = 191900;
3,524,455
kk
Unity
var_decl
beginner
Unity тілінде 532269 мәнімен size айнымалысын қалай жариялауға болады?
int size = 532269;
### Instruction: Unity тілінде 532269 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 532269;
451,766
kk
C#
sum_n
intermediate
C# тілінде 1-ден 1789-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(1789));
### Instruction: C# тілінде 1-ден 1789-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(1789));
21,128,504
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 1945 високосным.
public bool IsLeap() { int y = 1945; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 1945 високосным. ### Response: public bool IsLeap() { int y = 1945; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
981,055
en
Python
var_decl
beginner
How to declare a variable amount with value 787757 in Python?
amount = 787757
### Instruction: How to declare a variable amount with value 787757 in Python? ### Response: amount = 787757
42,693,853
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 1986 високосным.
public bool IsLeap() { int y = 1986; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 1986 високосным. ### Response: public bool IsLeap() { int y = 1986; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
89,615,370
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; }
98,150,991
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
2,161,007
ru
C#
var_decl
beginner
Как объявить переменную index со значением 544962 в C#?
int index = 544962;
### Instruction: Как объявить переменную index со значением 544962 в C#? ### Response: int index = 544962;
79,083,476
ru
Unity
array_ops
advanced
Напишите на Unity функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на Unity функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
2,672,682
en
Java
var_decl
beginner
How to declare a variable score with value 334521 in Java?
int score = 334521;
### Instruction: How to declare a variable score with value 334521 in Java? ### Response: int score = 334521;
2,377,319
en
Unity
var_decl
beginner
How to declare a variable size with value 660190 in Unity?
int size = 660190;
### Instruction: How to declare a variable size with value 660190 in Unity? ### Response: int size = 660190;
95,653,790
kk
Unity
array_ops
intermediate
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
1,085,779
ru
Java
sum_n
intermediate
Напиши функцию на Java, которая считает сумму чисел от 1 до 3745.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(3745));
### Instruction: Напиши функцию на Java, которая считает сумму чисел от 1 до 3745. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(3745));
19,718,964
kk
Unity
string_ops
advanced
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
3,347,548
kk
Java
var_decl
beginner
Java тілінде 833020 мәнімен index айнымалысын қалай жариялауға болады?
int index = 833020;
### Instruction: Java тілінде 833020 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 833020;
906,029
ru
C#
var_decl
beginner
Как объявить переменную size со значением 877262 в C#?
int size = 877262;
### Instruction: Как объявить переменную size со значением 877262 в C#? ### Response: int size = 877262;
37,559,229
en
JavaScript
string_ops
intermediate
Write a function that counts vowels in a text in JavaScript.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Write a function that counts vowels in a text in JavaScript. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
92,533,056
kk
Unity
string_ops
advanced
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; }
55,153,556
kk
JavaScript
string_ops
intermediate
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
642,066
en
C++
var_decl
beginner
How to declare a variable result with value 605987 in C++?
int result = 605987;
### Instruction: How to declare a variable result with value 605987 in C++? ### Response: int result = 605987;
1,871,108
kk
Java
var_decl
beginner
Java тілінде 262856 мәнімен total айнымалысын қалай жариялауға болады?
int total = 262856;
### Instruction: Java тілінде 262856 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 262856;
14,732,804
kk
Unity
logic_ops
intermediate
Unity тилінде 1917 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1917; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1917 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1917; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
84,366,374
ru
Unity
logic_ops
advanced
Напишите на Unity логику проверки, является ли год 2029 високосным.
public bool IsLeap() { int y = 2029; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 2029 високосным. ### Response: public bool IsLeap() { int y = 2029; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
72,617,229
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]
987,430
ru
C++
factorial
advanced
Напиши функцию на C++, которая вычисляет факториал числа 7693.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(7693) << std::endl;
### Instruction: Напиши функцию на C++, которая вычисляет факториал числа 7693. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(7693) << std::endl;
69,712,300
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('');
3,643,365
ru
C++
var_decl
beginner
Как объявить переменную rate со значением 186636 в C++?
int rate = 186636;
### Instruction: Как объявить переменную rate со значением 186636 в C++? ### Response: int rate = 186636;
360,744
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 7254.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7254));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 7254. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7254));
23,658,492
kk
Java
logic_ops
intermediate
Java тилінде 71 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 71; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 71 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 71; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,814,827
en
C#
var_decl
beginner
How to declare a variable x with value 149902 in C#?
int x = 149902;
### Instruction: How to declare a variable x with value 149902 in C#? ### Response: int x = 149902;
4,070,349
ru
C++
var_decl
beginner
Как объявить переменную x со значением 217910 в C++?
int x = 217910;
### Instruction: Как объявить переменную x со значением 217910 в C++? ### Response: int x = 217910;
71,010,037
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); }
63,613,238
kk
Python
array_ops
advanced
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
def get_max(arr): return max(arr)
### Instruction: Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: def get_max(arr): return max(arr)
38,407,505
kk
Java
logic_ops
advanced
Java тилінде 2016 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2016; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 2016 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2016; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
90,663,693
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); }
203,954
kk
C#
sum_n
intermediate
C# тілінде 1-ден 3395-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(3395));
### Instruction: C# тілінде 1-ден 3395-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(3395));
4,467,559
ru
JavaScript
var_decl
beginner
Как объявить переменную y со значением 790146 в JavaScript?
let y = 790146;
### Instruction: Как объявить переменную y со значением 790146 в JavaScript? ### Response: let y = 790146;
1,498,973
en
JavaScript
var_decl
beginner
How to declare a variable x with value 400505 in JavaScript?
let x = 400505;
### Instruction: How to declare a variable x with value 400505 in JavaScript? ### Response: let x = 400505;
19,048,021
kk
Python
logic_ops
intermediate
Python тилінде 463 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 463 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 463 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 463 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
1,367,548
en
C++
var_decl
beginner
How to declare a variable amount with value 829018 in C++?
int amount = 829018;
### Instruction: How to declare a variable amount with value 829018 in C++? ### Response: int amount = 829018;
3,507,716
en
C#
var_decl
beginner
How to declare a variable buffer with value 623552 in C#?
int buffer = 623552;
### Instruction: How to declare a variable buffer with value 623552 in C#? ### Response: int buffer = 623552;
2,296,853
en
Unity
var_decl
beginner
How to declare a variable size with value 76353 in Unity?
int size = 76353;
### Instruction: How to declare a variable size with value 76353 in Unity? ### Response: int size = 76353;
1,097,483
kk
JavaScript
var_decl
beginner
JavaScript тілінде 499207 мәнімен level айнымалысын қалай жариялауға болады?
let level = 499207;
### Instruction: JavaScript тілінде 499207 мәнімен level айнымалысын қалай жариялауға болады? ### Response: let level = 499207;
4,346,170
kk
JavaScript
var_decl
beginner
JavaScript тілінде 637133 мәнімен timer айнымалысын қалай жариялауға болады?
let timer = 637133;
### Instruction: JavaScript тілінде 637133 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: let timer = 637133;
3,966,268
ru
C++
var_decl
beginner
Как объявить переменную data со значением 718998 в C++?
int data = 718998;
### Instruction: Как объявить переменную data со значением 718998 в C++? ### Response: int data = 718998;
3,738,904
kk
C++
var_decl
beginner
C++ тілінде 499532 мәнімен health айнымалысын қалай жариялауға болады?
int health = 499532;
### Instruction: C++ тілінде 499532 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 499532;
98,134,890
en
Unity
string_ops
intermediate
Write a function that counts vowels in a text in Unity.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in Unity. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
263,739
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 4665.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(4665)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 4665. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(4665)); }
37,690,236
en
Java
string_ops
intermediate
Write a function that counts vowels in a text in Java.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in Java. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
41,954,189
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; }
1,630,470
ru
C#
var_decl
beginner
Как объявить переменную health со значением 337004 в C#?
int health = 337004;
### Instruction: Как объявить переменную health со значением 337004 в C#? ### Response: int health = 337004;
3,089,250
en
C#
var_decl
beginner
How to declare a variable result with value 695221 in C#?
int result = 695221;
### Instruction: How to declare a variable result with value 695221 in C#? ### Response: int result = 695221;
70,209,660
en
Java
string_ops
intermediate
Write a function that converts a string to uppercase in Java.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Java. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
40,421,736
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 6 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 6; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 6 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 6; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }