id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
85,168,367
kk
Python
string_ops
advanced
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
69,574,253
ru
Unity
array_ops
intermediate
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Unity функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
97,792,061
kk
Java
string_ops
advanced
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
4,006,038
kk
C#
var_decl
beginner
C# тілінде 819836 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 819836;
### Instruction: C# тілінде 819836 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 819836;
1,050,328
en
Python
var_decl
beginner
How to declare a variable rate with value 193721 in Python?
rate = 193721
### Instruction: How to declare a variable rate with value 193721 in Python? ### Response: rate = 193721
97,731,056
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;
14,754,553
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 2026 високосным.
public bool IsLeap() { int y = 2026; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2026 високосным. ### Response: public bool IsLeap() { int y = 2026; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
291,831
en
C#
sum_n
intermediate
Write a function in C# that sums numbers from 1 to 4059.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(4059));
### Instruction: Write a function in C# that sums numbers from 1 to 4059. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(4059));
51,596,025
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();
67,664,061
kk
Python
string_ops
advanced
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
28,293,185
en
Java
logic_ops
advanced
Write logic to check if the year 1928 is a leap year in Java.
public bool IsLeap() { int y = 1928; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1928 is a leap year in Java. ### Response: public bool IsLeap() { int y = 1928; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
59,178,256
en
Unity
array_ops
advanced
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; }
525,030
kk
C#
sum_n
intermediate
C# тілінде 1-ден 2135-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(2135));
### Instruction: C# тілінде 1-ден 2135-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(2135));
4,010,201
en
Unity
var_decl
beginner
How to declare a variable y with value 862529 in Unity?
int y = 862529;
### Instruction: How to declare a variable y with value 862529 in Unity? ### Response: int y = 862529;
11,030
kk
JavaScript
factorial
advanced
JavaScript тілінде 6440 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(6440));
### Instruction: JavaScript тілінде 6440 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(6440));
271,932
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 422.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(422));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 422. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(422));
3,535,708
ru
C++
var_decl
beginner
Как объявить переменную total со значением 174578 в C++?
int total = 174578;
### Instruction: Как объявить переменную total со значением 174578 в C++? ### Response: int total = 174578;
1,594,722
ru
JavaScript
var_decl
beginner
Как объявить переменную offset со значением 416677 в JavaScript?
let offset = 416677;
### Instruction: Как объявить переменную offset со значением 416677 в JavaScript? ### Response: let offset = 416677;
3,177,462
en
JavaScript
var_decl
beginner
How to declare a variable index with value 562244 in JavaScript?
let index = 562244;
### Instruction: How to declare a variable index with value 562244 in JavaScript? ### Response: let index = 562244;
8,382
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 9645.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(9645));
### Instruction: Write a function in Java that sums numbers from 1 to 9645. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(9645));
22,971,602
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 204 is prime in JavaScript.
function isPrime() { let n = 204; 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 204 is prime in JavaScript. ### Response: function isPrime() { let n = 204; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
2,024,855
kk
Unity
var_decl
beginner
Unity тілінде 782419 мәнімен score айнымалысын қалай жариялауға болады?
int score = 782419;
### Instruction: Unity тілінде 782419 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 782419;
4,116,060
en
JavaScript
var_decl
beginner
How to declare a variable value with value 869910 in JavaScript?
let value = 869910;
### Instruction: How to declare a variable value with value 869910 in JavaScript? ### Response: let value = 869910;
66,658,281
kk
C#
array_ops
intermediate
C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
21,283,621
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
11,479,443
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); }
1,839,343
ru
Python
var_decl
beginner
Как объявить переменную level со значением 328418 в Python?
level = 328418
### Instruction: Как объявить переменную level со значением 328418 в Python? ### Response: level = 328418
16,924,708
en
C++
logic_ops
advanced
Write logic to check if the year 1970 is a leap year in C++.
public bool IsLeap() { int y = 1970; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1970 is a leap year in C++. ### Response: public bool IsLeap() { int y = 1970; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
606,033
en
Python
factorial
advanced
Write a function in Python that calculates the factorial of 5611.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(5611))
### Instruction: Write a function in Python that calculates the factorial of 5611. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(5611))
739,195
kk
Python
var_decl
beginner
Python тілінде 54100 мәнімен amount айнымалысын қалай жариялауға болады?
amount = 54100
### Instruction: Python тілінде 54100 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: amount = 54100
69,794,107
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 14 простым.
public bool IsPrime() { int n = 14; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 14 простым. ### Response: public bool IsPrime() { int n = 14; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
60,371,732
ru
Java
logic_ops
intermediate
Напишите на Java логику проверки, является ли год 2098 високосным.
public bool IsLeap() { int y = 2098; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2098 високосным. ### Response: public bool IsLeap() { int y = 2098; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,212,565
en
Java
var_decl
beginner
How to declare a variable rate with value 822568 in Java?
int rate = 822568;
### Instruction: How to declare a variable rate with value 822568 in Java? ### Response: int rate = 822568;
14,442,362
en
C#
array_ops
advanced
Write a function that finds the maximum number in an array in C#.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in C#. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
31,282,592
ru
Unity
string_ops
intermediate
Напишите на Unity функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на Unity функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
53,564,797
kk
Unity
array_ops
advanced
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
12,889,085
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; }
148,049
en
C++
sum_n
intermediate
Write a function in C++ that sums numbers from 1 to 2327.
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(2327) << std::endl;
### Instruction: Write a function in C++ that sums numbers from 1 to 2327. ### 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(2327) << std::endl;
1,175,642
en
Java
var_decl
beginner
How to declare a variable y with value 269095 in Java?
int y = 269095;
### Instruction: How to declare a variable y with value 269095 in Java? ### Response: int y = 269095;
13,882,541
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; }
4,804,044
ru
Java
var_decl
beginner
Как объявить переменную result со значением 93570 в Java?
int result = 93570;
### Instruction: Как объявить переменную result со значением 93570 в Java? ### Response: int result = 93570;
50,136,860
en
Unity
array_ops
advanced
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; }
433,182
ru
Python
factorial
advanced
Напиши функцию на Python, которая вычисляет факториал числа 8998.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(8998))
### Instruction: Напиши функцию на Python, которая вычисляет факториал числа 8998. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(8998))
2,194,814
ru
Java
var_decl
beginner
Как объявить переменную limit со значением 721625 в Java?
int limit = 721625;
### Instruction: Как объявить переменную limit со значением 721625 в Java? ### Response: int limit = 721625;
69,752,703
en
Java
logic_ops
intermediate
Write a function that determines if the number 88 is prime in Java.
public bool IsPrime() { int n = 88; 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 88 is prime in Java. ### Response: public bool IsPrime() { int n = 88; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
642,761
ru
Python
factorial
advanced
Напиши функцию на Python, которая вычисляет факториал числа 7636.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(7636))
### Instruction: Напиши функцию на Python, которая вычисляет факториал числа 7636. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(7636))
373,852
ru
C#
factorial
advanced
Напиши функцию на C#, которая вычисляет факториал числа 1230.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(1230));
### Instruction: Напиши функцию на C#, которая вычисляет факториал числа 1230. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(1230));
84,991,880
ru
Python
logic_ops
advanced
Напишите на Python функцию, определяющую, является ли число 241 простым.
def is_prime(): n = 241 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 241 простым. ### Response: def is_prime(): n = 241 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
29,152
ru
C#
sum_n
intermediate
Напиши функцию на C#, которая считает сумму чисел от 1 до 7038.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(7038));
### Instruction: Напиши функцию на C#, которая считает сумму чисел от 1 до 7038. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(7038));
25,694,369
kk
C++
logic_ops
intermediate
C++ тилінде 1900 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1900; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1900 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1900; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
11,722,045
kk
JavaScript
array_ops
advanced
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
66,888,578
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; }
2,977,331
en
C++
var_decl
beginner
How to declare a variable size with value 438395 in C++?
int size = 438395;
### Instruction: How to declare a variable size with value 438395 in C++? ### Response: int size = 438395;
3,107,685
ru
Java
var_decl
beginner
Как объявить переменную offset со значением 771015 в Java?
int offset = 771015;
### Instruction: Как объявить переменную offset со значением 771015 в Java? ### Response: int offset = 771015;
3,602,531
ru
C++
var_decl
beginner
Как объявить переменную health со значением 630296 в C++?
int health = 630296;
### Instruction: Как объявить переменную health со значением 630296 в C++? ### Response: int health = 630296;
625,173
ru
Python
var_decl
beginner
Как объявить переменную total со значением 245798 в Python?
total = 245798
### Instruction: Как объявить переменную total со значением 245798 в Python? ### Response: total = 245798
4,138,269
ru
Unity
var_decl
beginner
Как объявить переменную score со значением 261359 в Unity?
int score = 261359;
### Instruction: Как объявить переменную score со значением 261359 в Unity? ### Response: int score = 261359;
89,198,302
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая находит максимальное число в массиве.
def get_max(arr): return max(arr)
### Instruction: Напишите на Python функцию, которая находит максимальное число в массиве. ### Response: def get_max(arr): return max(arr)
62,147,882
en
C#
logic_ops
intermediate
Write a function that determines if the number 363 is prime in C#.
public bool IsPrime() { int n = 363; 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 363 is prime in C#. ### Response: public bool IsPrime() { int n = 363; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,360,563
ru
Python
var_decl
beginner
Как объявить переменную weight со значением 12357 в Python?
weight = 12357
### Instruction: Как объявить переменную weight со значением 12357 в Python? ### Response: weight = 12357
3,650,455
en
C#
var_decl
beginner
How to declare a variable data with value 451167 in C#?
int data = 451167;
### Instruction: How to declare a variable data with value 451167 in C#? ### Response: int data = 451167;
70,249,293
ru
C#
string_ops
intermediate
Напишите на C# функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на C# функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
3,485,260
ru
C#
var_decl
beginner
Как объявить переменную health со значением 967534 в C#?
int health = 967534;
### Instruction: Как объявить переменную health со значением 967534 в C#? ### Response: int health = 967534;
3,175,459
kk
Python
var_decl
beginner
Python тілінде 201279 мәнімен data айнымалысын қалай жариялауға болады?
data = 201279
### Instruction: Python тілінде 201279 мәнімен data айнымалысын қалай жариялауға болады? ### Response: data = 201279
1,613,055
kk
C#
var_decl
beginner
C# тілінде 608895 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 608895;
### Instruction: C# тілінде 608895 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 608895;
87,579,833
kk
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; }
34,516,379
kk
C#
logic_ops
advanced
C# тилінде 1956 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1956; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C# тилінде 1956 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1956; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
41,085,857
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; }
524,240
ru
JavaScript
sum_n
intermediate
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 5041.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(5041));
### Instruction: Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 5041. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(5041));
2,305,018
kk
Python
var_decl
beginner
Python тілінде 641285 мәнімен total айнымалысын қалай жариялауға болады?
total = 641285
### Instruction: Python тілінде 641285 мәнімен total айнымалысын қалай жариялауға болады? ### Response: total = 641285
50,973,323
ru
C++
string_ops
intermediate
Напишите на C++ функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на C++ функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
41,517,976
kk
JavaScript
array_ops
intermediate
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
1,498,705
en
JavaScript
var_decl
beginner
How to declare a variable offset with value 569235 in JavaScript?
let offset = 569235;
### Instruction: How to declare a variable offset with value 569235 in JavaScript? ### Response: let offset = 569235;
30,267,847
en
C#
array_ops
advanced
Write a function that finds the maximum number in an array in C#.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in C#. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
40,374,038
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
2,790,086
ru
JavaScript
var_decl
beginner
Как объявить переменную speed со значением 386492 в JavaScript?
let speed = 386492;
### Instruction: Как объявить переменную speed со значением 386492 в JavaScript? ### Response: let speed = 386492;
22,715,865
ru
Unity
array_ops
advanced
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Unity функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
3,220,890
ru
Python
var_decl
beginner
Как объявить переменную index со значением 700813 в Python?
index = 700813
### Instruction: Как объявить переменную index со значением 700813 в Python? ### Response: index = 700813
4,637,108
ru
Python
var_decl
beginner
Как объявить переменную speed со значением 216335 в Python?
speed = 216335
### Instruction: Как объявить переменную speed со значением 216335 в Python? ### Response: speed = 216335
4,498,189
kk
Unity
var_decl
beginner
Unity тілінде 31929 мәнімен size айнымалысын қалай жариялауға болады?
int size = 31929;
### Instruction: Unity тілінде 31929 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 31929;
27,411,037
kk
C#
array_ops
intermediate
C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
14,425,477
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 2097 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2097; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2097 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2097; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
41,608,458
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; }
82,968,718
ru
Unity
string_ops
intermediate
Напишите на Unity функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на Unity функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
4,350,625
ru
Python
var_decl
beginner
Как объявить переменную y со значением 138747 в Python?
y = 138747
### Instruction: Как объявить переменную y со значением 138747 в Python? ### Response: y = 138747
41,604,469
en
C#
logic_ops
intermediate
Write logic to check if the year 2072 is a leap year in C#.
public bool IsLeap() { int y = 2072; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2072 is a leap year in C#. ### Response: public bool IsLeap() { int y = 2072; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
139,495
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 6609.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(6609)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 6609. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(6609)); }
87,125,220
kk
Java
logic_ops
advanced
Java тилінде 467 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 467; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 467 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 467; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
50,892,205
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(); }
4,971,096
ru
C++
var_decl
beginner
Как объявить переменную health со значением 940410 в C++?
int health = 940410;
### Instruction: Как объявить переменную health со значением 940410 в C++? ### Response: int health = 940410;
18,707,923
kk
JavaScript
array_ops
advanced
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
388,993
kk
C++
var_decl
beginner
C++ тілінде 991995 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 991995;
### Instruction: C++ тілінде 991995 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 991995;
71,971,313
ru
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; }
4,854,075
ru
C++
var_decl
beginner
Как объявить переменную y со значением 544960 в C++?
int y = 544960;
### Instruction: Как объявить переменную y со значением 544960 в C++? ### Response: int y = 544960;
1,918,601
kk
Java
var_decl
beginner
Java тілінде 695869 мәнімен level айнымалысын қалай жариялауға болады?
int level = 695869;
### Instruction: Java тілінде 695869 мәнімен level айнымалысын қалай жариялауға болады? ### Response: int level = 695869;
3,839,927
ru
JavaScript
var_decl
beginner
Как объявить переменную size со значением 137434 в JavaScript?
let size = 137434;
### Instruction: Как объявить переменную size со значением 137434 в JavaScript? ### Response: let size = 137434;
3,737,867
kk
JavaScript
var_decl
beginner
JavaScript тілінде 257753 мәнімен score айнымалысын қалай жариялауға болады?
let score = 257753;
### Instruction: JavaScript тілінде 257753 мәнімен score айнымалысын қалай жариялауға болады? ### Response: let score = 257753;
85,944
kk
C#
sum_n
intermediate
C# тілінде 1-ден 8297-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(8297));
### Instruction: C# тілінде 1-ден 8297-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(8297));
24,522,232
kk
Unity
array_ops
advanced
Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
3,664,440
ru
Unity
var_decl
beginner
Как объявить переменную result со значением 860881 в Unity?
int result = 860881;
### Instruction: Как объявить переменную result со значением 860881 в Unity? ### Response: int result = 860881;