id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
742,912
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 2223.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(2223)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 2223. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(2223)); }
1,252,387
ru
C++
var_decl
beginner
Как объявить переменную level со значением 93724 в C++?
int level = 93724;
### Instruction: Как объявить переменную level со значением 93724 в C++? ### Response: int level = 93724;
4,913,728
kk
Python
var_decl
beginner
Python тілінде 308998 мәнімен buffer айнымалысын қалай жариялауға болады?
buffer = 308998
### Instruction: Python тілінде 308998 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: buffer = 308998
3,873,371
ru
C++
var_decl
beginner
Как объявить переменную result со значением 488321 в C++?
int result = 488321;
### Instruction: Как объявить переменную result со значением 488321 в C++? ### Response: int result = 488321;
4,422,736
en
JavaScript
var_decl
beginner
How to declare a variable timer with value 882149 in JavaScript?
let timer = 882149;
### Instruction: How to declare a variable timer with value 882149 in JavaScript? ### Response: let timer = 882149;
2,340,880
kk
Java
var_decl
beginner
Java тілінде 202628 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 202628;
### Instruction: Java тілінде 202628 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 202628;
70,946,349
kk
JavaScript
array_ops
advanced
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
82,784,902
en
Java
array_ops
advanced
Write a function that finds the maximum number in an array in Java.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in Java. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
32,796,172
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
4,916,162
kk
Unity
var_decl
beginner
Unity тілінде 390301 мәнімен size айнымалысын қалай жариялауға болады?
int size = 390301;
### Instruction: Unity тілінде 390301 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 390301;
4,000,684
ru
C#
var_decl
beginner
Как объявить переменную speed со значением 365079 в C#?
int speed = 365079;
### Instruction: Как объявить переменную speed со значением 365079 в C#? ### Response: int speed = 365079;
2,827,767
en
Python
var_decl
beginner
How to declare a variable level with value 806627 in Python?
level = 806627
### Instruction: How to declare a variable level with value 806627 in Python? ### Response: level = 806627
191,477
kk
Unity
sum_n
intermediate
Unity тілінде 1-ден 1102-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1102)); }
### Instruction: Unity тілінде 1-ден 1102-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1102)); }
63,326,206
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 185 is prime in JavaScript.
function isPrime() { let n = 185; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Write a function that determines if the number 185 is prime in JavaScript. ### Response: function isPrime() { let n = 185; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
4,473,661
ru
Python
var_decl
beginner
Как объявить переменную y со значением 501630 в Python?
y = 501630
### Instruction: Как объявить переменную y со значением 501630 в Python? ### Response: y = 501630
4,565,602
en
Unity
var_decl
beginner
How to declare a variable rate with value 849955 in Unity?
int rate = 849955;
### Instruction: How to declare a variable rate with value 849955 in Unity? ### Response: int rate = 849955;
4,548,390
kk
JavaScript
var_decl
beginner
JavaScript тілінде 457573 мәнімен buffer айнымалысын қалай жариялауға болады?
let buffer = 457573;
### Instruction: JavaScript тілінде 457573 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: let buffer = 457573;
41,134,227
kk
Unity
logic_ops
intermediate
Unity тилінде 35 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 35; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 35 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 35; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
67,443,817
ru
Python
logic_ops
advanced
Напишите на Python логику проверки, является ли год 2023 високосным.
def is_leap(): year = 2023 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2023 високосным. ### Response: def is_leap(): year = 2023 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
18,248,902
ru
C#
array_ops
advanced
Напишите на C# функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на C# функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
19,388,481
en
Python
logic_ops
advanced
Write logic to check if the year 2095 is a leap year in Python.
def is_leap(): year = 2095 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2095 is a leap year in Python. ### Response: def is_leap(): year = 2095 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
1,712,845
ru
Python
var_decl
beginner
Как объявить переменную size со значением 75835 в Python?
size = 75835
### Instruction: Как объявить переменную size со значением 75835 в Python? ### Response: size = 75835
3,391,157
en
Unity
var_decl
beginner
How to declare a variable speed with value 793524 in Unity?
int speed = 793524;
### Instruction: How to declare a variable speed with value 793524 in Unity? ### Response: int speed = 793524;
16,454,649
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
303,987
kk
JavaScript
factorial
advanced
JavaScript тілінде 4865 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(4865));
### Instruction: JavaScript тілінде 4865 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(4865));
61,000,325
en
Java
logic_ops
advanced
Write a function that determines if the number 174 is prime in Java.
public bool IsPrime() { int n = 174; 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 174 is prime in Java. ### Response: public bool IsPrime() { int n = 174; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
49,576,033
kk
Python
array_ops
intermediate
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]
96,646,214
en
Python
array_ops
intermediate
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]
1,509,622
en
C++
var_decl
beginner
How to declare a variable y with value 411383 in C++?
int y = 411383;
### Instruction: How to declare a variable y with value 411383 in C++? ### Response: int y = 411383;
35,475,155
en
C++
logic_ops
intermediate
Write logic to check if the year 1961 is a leap year in C++.
public bool IsLeap() { int y = 1961; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1961 is a leap year in C++. ### Response: public bool IsLeap() { int y = 1961; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
910,369
ru
Unity
var_decl
beginner
Как объявить переменную total со значением 483245 в Unity?
int total = 483245;
### Instruction: Как объявить переменную total со значением 483245 в Unity? ### Response: int total = 483245;
2,094,245
kk
JavaScript
var_decl
beginner
JavaScript тілінде 358571 мәнімен total айнымалысын қалай жариялауға болады?
let total = 358571;
### Instruction: JavaScript тілінде 358571 мәнімен total айнымалысын қалай жариялауға болады? ### Response: let total = 358571;
48,056,264
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; }
1,020,528
kk
Java
var_decl
beginner
Java тілінде 646465 мәнімен result айнымалысын қалай жариялауға болады?
int result = 646465;
### Instruction: Java тілінде 646465 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 646465;
78,080,971
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 182 простым.
public bool IsPrime() { int n = 182; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 182 простым. ### Response: public bool IsPrime() { int n = 182; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
11,422,230
kk
C#
array_ops
intermediate
C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
15,206,800
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); }
96,872,609
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; }
3,882,197
en
Java
var_decl
beginner
How to declare a variable rate with value 74087 in Java?
int rate = 74087;
### Instruction: How to declare a variable rate with value 74087 in Java? ### Response: int rate = 74087;
442,742
kk
Unity
var_decl
beginner
Unity тілінде 737362 мәнімен index айнымалысын қалай жариялауға болады?
int index = 737362;
### Instruction: Unity тілінде 737362 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 737362;
62,384,242
kk
Java
logic_ops
advanced
Java тилінде 1990 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1990; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1990 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1990; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
77,381,631
kk
Unity
logic_ops
advanced
Unity тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1920; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1920; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,550,534
ru
C++
var_decl
beginner
Как объявить переменную limit со значением 717012 в C++?
int limit = 717012;
### Instruction: Как объявить переменную limit со значением 717012 в C++? ### Response: int limit = 717012;
1,693,305
ru
JavaScript
var_decl
beginner
Как объявить переменную value со значением 652991 в JavaScript?
let value = 652991;
### Instruction: Как объявить переменную value со значением 652991 в JavaScript? ### Response: let value = 652991;
2,850,123
en
Unity
var_decl
beginner
How to declare a variable amount with value 6267 in Unity?
int amount = 6267;
### Instruction: How to declare a variable amount with value 6267 in Unity? ### Response: int amount = 6267;
36,170,419
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; }
18,515,004
kk
JavaScript
string_ops
advanced
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
const toUpper = s => s.toUpperCase();
### Instruction: JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: const toUpper = s => s.toUpperCase();
88,498,859
en
C#
string_ops
advanced
Write a function that converts a string to uppercase in C#.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in C#. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
2,139,194
ru
C++
var_decl
beginner
Как объявить переменную index со значением 384053 в C++?
int index = 384053;
### Instruction: Как объявить переменную index со значением 384053 в C++? ### Response: int index = 384053;
77,137,243
en
JavaScript
array_ops
advanced
Write a function that finds the maximum number in an array in JavaScript.
const getMax = arr => Math.max(...arr);
### Instruction: Write a function that finds the maximum number in an array in JavaScript. ### Response: const getMax = arr => Math.max(...arr);
4,368,092
en
Java
var_decl
beginner
How to declare a variable value with value 130776 in Java?
int value = 130776;
### Instruction: How to declare a variable value with value 130776 in Java? ### Response: int value = 130776;
1,951,648
en
Python
var_decl
beginner
How to declare a variable index with value 547059 in Python?
index = 547059
### Instruction: How to declare a variable index with value 547059 in Python? ### Response: index = 547059
24,802,879
en
C#
string_ops
intermediate
Write a function that checks if a string is a palindrome in C#.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in C#. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
269,995
en
Python
var_decl
beginner
How to declare a variable data with value 266510 in Python?
data = 266510
### Instruction: How to declare a variable data with value 266510 in Python? ### Response: data = 266510
43,046,446
en
C#
array_ops
intermediate
Write a function that finds the maximum number in an array in C#.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in C#. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
49,413,955
kk
C#
array_ops
advanced
C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
23,153,684
kk
Unity
logic_ops
advanced
Unity тилінде 2043 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2043; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2043 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2043; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,216,865
en
C#
var_decl
beginner
How to declare a variable x with value 271865 in C#?
int x = 271865;
### Instruction: How to declare a variable x with value 271865 in C#? ### Response: int x = 271865;
11,517,614
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; }
20,211,264
en
Unity
array_ops
intermediate
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); }
84,941
kk
Unity
sum_n
intermediate
Unity тілінде 1-ден 8262-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(8262)); }
### Instruction: Unity тілінде 1-ден 8262-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(8262)); }
94,329,551
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; }
4,583,481
ru
Unity
var_decl
beginner
Как объявить переменную timer со значением 67459 в Unity?
int timer = 67459;
### Instruction: Как объявить переменную timer со значением 67459 в Unity? ### Response: int timer = 67459;
91,028,362
ru
Java
logic_ops
intermediate
Напишите на Java логику проверки, является ли год 2054 високосным.
public bool IsLeap() { int y = 2054; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2054 високосным. ### Response: public bool IsLeap() { int y = 2054; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
201,752
ru
Unity
factorial
advanced
Напиши функцию на Unity, которая вычисляет факториал числа 1987.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(1987)); }
### Instruction: Напиши функцию на Unity, которая вычисляет факториал числа 1987. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(1987)); }
3,061,824
ru
Unity
var_decl
beginner
Как объявить переменную weight со значением 361845 в Unity?
int weight = 361845;
### Instruction: Как объявить переменную weight со значением 361845 в Unity? ### Response: int weight = 361845;
3,578,619
kk
Java
var_decl
beginner
Java тілінде 372614 мәнімен score айнымалысын қалай жариялауға болады?
int score = 372614;
### Instruction: Java тілінде 372614 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 372614;
3,823,079
kk
Python
var_decl
beginner
Python тілінде 621898 мәнімен size айнымалысын қалай жариялауға болады?
size = 621898
### Instruction: Python тілінде 621898 мәнімен size айнымалысын қалай жариялауға болады? ### Response: size = 621898
76,482,682
kk
Unity
string_ops
intermediate
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
23,974,567
ru
Python
logic_ops
advanced
Напишите на Python логику проверки, является ли год 2004 високосным.
def is_leap(): year = 2004 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2004 високосным. ### Response: def is_leap(): year = 2004 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
80,244,507
kk
Unity
logic_ops
advanced
Unity тилінде 2045 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2045; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2045 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2045; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,887,067
kk
C++
var_decl
beginner
C++ тілінде 883872 мәнімен result айнымалысын қалай жариялауға болады?
int result = 883872;
### Instruction: C++ тілінде 883872 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 883872;
25,098,270
en
Unity
logic_ops
intermediate
Write a function that determines if the number 50 is prime in Unity.
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: Write a function that determines if the number 50 is prime in Unity. ### 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; }
2,505,316
ru
C#
var_decl
beginner
Как объявить переменную speed со значением 982721 в C#?
int speed = 982721;
### Instruction: Как объявить переменную speed со значением 982721 в C#? ### Response: int speed = 982721;
18,810,175
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
2,302,203
en
C++
var_decl
beginner
How to declare a variable x with value 546139 in C++?
int x = 546139;
### Instruction: How to declare a variable x with value 546139 in C++? ### Response: int x = 546139;
4,707,461
ru
JavaScript
var_decl
beginner
Как объявить переменную health со значением 690888 в JavaScript?
let health = 690888;
### Instruction: Как объявить переменную health со значением 690888 в JavaScript? ### Response: let health = 690888;
66,205,425
kk
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; }
3,618,860
en
JavaScript
var_decl
beginner
How to declare a variable size with value 848420 in JavaScript?
let size = 848420;
### Instruction: How to declare a variable size with value 848420 in JavaScript? ### Response: let size = 848420;
81,529,622
en
Python
array_ops
advanced
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]
63,064,446
ru
C++
string_ops
advanced
Напишите на C++ функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на C++ функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
40,215,498
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 416 простым.
public bool IsPrime() { int n = 416; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 416 простым. ### Response: public bool IsPrime() { int n = 416; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,026,163
en
C++
var_decl
beginner
How to declare a variable data with value 843208 in C++?
int data = 843208;
### Instruction: How to declare a variable data with value 843208 in C++? ### Response: int data = 843208;
71,744,217
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 185 простым.
public bool IsPrime() { int n = 185; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 185 простым. ### Response: public bool IsPrime() { int n = 185; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,642,544
ru
Java
var_decl
beginner
Как объявить переменную limit со значением 904101 в Java?
int limit = 904101;
### Instruction: Как объявить переменную limit со значением 904101 в Java? ### Response: int limit = 904101;
10,803,087
en
C++
string_ops
intermediate
Write a function that checks if a string is a palindrome in C++.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in C++. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
26,765,432
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; }
63,592,608
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;
91,556,863
kk
C++
logic_ops
intermediate
C++ тилінде 2059 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2059; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2059 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2059; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,372,092
ru
Unity
var_decl
beginner
Как объявить переменную amount со значением 418670 в Unity?
int amount = 418670;
### Instruction: Как объявить переменную amount со значением 418670 в Unity? ### Response: int amount = 418670;
53,586,519
en
JavaScript
string_ops
intermediate
Write a function that checks if a string is a palindrome in JavaScript.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Write a function that checks if a string is a palindrome in JavaScript. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
4,439,640
ru
Unity
var_decl
beginner
Как объявить переменную speed со значением 716603 в Unity?
int speed = 716603;
### Instruction: Как объявить переменную speed со значением 716603 в Unity? ### Response: int speed = 716603;
69,966,818
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); }
176,826
kk
Java
var_decl
beginner
Java тілінде 187688 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 187688;
### Instruction: Java тілінде 187688 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 187688;
86,077,581
kk
C#
logic_ops
intermediate
C# тилінде 2024 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2024; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C# тилінде 2024 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2024; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,537,404
ru
Java
var_decl
beginner
Как объявить переменную health со значением 752250 в Java?
int health = 752250;
### Instruction: Как объявить переменную health со значением 752250 в Java? ### Response: int health = 752250;
1,791,986
ru
JavaScript
var_decl
beginner
Как объявить переменную total со значением 823875 в JavaScript?
let total = 823875;
### Instruction: Как объявить переменную total со значением 823875 в JavaScript? ### Response: let total = 823875;
40,836,770
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript функцию, определяющую, является ли число 219 простым.
function isPrime() { let n = 219; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 219 простым. ### Response: function isPrime() { let n = 219; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
77,116,337
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(); }
2,113,936
en
Python
var_decl
beginner
How to declare a variable data with value 956367 in Python?
data = 956367
### Instruction: How to declare a variable data with value 956367 in Python? ### Response: data = 956367