id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
1,829,110
kk
Unity
var_decl
beginner
Unity тілінде 32332 мәнімен size айнымалысын қалай жариялауға болады?
int size = 32332;
### Instruction: Unity тілінде 32332 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 32332;
4,283,996
ru
Unity
var_decl
beginner
Как объявить переменную level со значением 782378 в Unity?
int level = 782378;
### Instruction: Как объявить переменную level со значением 782378 в Unity? ### Response: int level = 782378;
4,437,451
kk
JavaScript
var_decl
beginner
JavaScript тілінде 793636 мәнімен weight айнымалысын қалай жариялауға болады?
let weight = 793636;
### Instruction: JavaScript тілінде 793636 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: let weight = 793636;
1,431,955
kk
C#
factorial
advanced
C# тілінде 3922 санының факториалын есептейтін функция жаз.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(3922));
### Instruction: C# тілінде 3922 санының факториалын есептейтін функция жаз. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(3922));
4,829,172
ru
Python
var_decl
beginner
Как объявить переменную weight со значением 836350 в Python?
weight = 836350
### Instruction: Как объявить переменную weight со значением 836350 в Python? ### Response: weight = 836350
64,435,544
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;
87,012,786
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); }
1,205,096
kk
JavaScript
var_decl
beginner
JavaScript тілінде 34563 мәнімен score айнымалысын қалай жариялауға болады?
let score = 34563;
### Instruction: JavaScript тілінде 34563 мәнімен score айнымалысын қалай жариялауға болады? ### Response: let score = 34563;
95,382,631
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);
1,781,927
en
JavaScript
var_decl
beginner
How to declare a variable buffer with value 32877 in JavaScript?
let buffer = 32877;
### Instruction: How to declare a variable buffer with value 32877 in JavaScript? ### Response: let buffer = 32877;
1,893,977
kk
Unity
var_decl
beginner
Unity тілінде 244271 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 244271;
### Instruction: Unity тілінде 244271 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 244271;
32,458,951
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; }
30,970,860
en
Python
string_ops
intermediate
Write a function that converts a string to uppercase in Python.
def to_upper(s): return s.upper()
### Instruction: Write a function that converts a string to uppercase in Python. ### Response: def to_upper(s): return s.upper()
328,624
ru
C#
factorial
advanced
Напиши функцию на C#, которая вычисляет факториал числа 3111.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(3111));
### Instruction: Напиши функцию на C#, которая вычисляет факториал числа 3111. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(3111));
37,935,902
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 344 is prime in JavaScript.
function isPrime() { let n = 344; 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 344 is prime in JavaScript. ### Response: function isPrime() { let n = 344; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
19,326,469
en
Unity
logic_ops
advanced
Write a function that determines if the number 178 is prime in Unity.
public bool IsPrime() { int n = 178; 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 178 is prime in Unity. ### Response: public bool IsPrime() { int n = 178; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,943,733
en
C++
var_decl
beginner
How to declare a variable size with value 377237 in C++?
int size = 377237;
### Instruction: How to declare a variable size with value 377237 in C++? ### Response: int size = 377237;
12,485,218
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); }
3,450,885
ru
JavaScript
var_decl
beginner
Как объявить переменную offset со значением 653808 в JavaScript?
let offset = 653808;
### Instruction: Как объявить переменную offset со значением 653808 в JavaScript? ### Response: let offset = 653808;
97,076,049
kk
Python
logic_ops
intermediate
Python тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
def is_leap(): year = 1920 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Python тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: def is_leap(): year = 1920 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
66,932,057
kk
C#
logic_ops
advanced
C# тилінде 237 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 237; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 237 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 237; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,437,071
kk
Python
var_decl
beginner
Python тілінде 979412 мәнімен limit айнымалысын қалай жариялауға болады?
limit = 979412
### Instruction: Python тілінде 979412 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: limit = 979412
3,537,829
ru
Unity
var_decl
beginner
Как объявить переменную rate со значением 308746 в Unity?
int rate = 308746;
### Instruction: Как объявить переменную rate со значением 308746 в Unity? ### Response: int rate = 308746;
475,071
kk
Java
factorial
advanced
Java тілінде 1676 санының факториалын есептейтін функция жаз.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1676));
### Instruction: Java тілінде 1676 санының факториалын есептейтін функция жаз. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1676));
59,808,812
en
JavaScript
array_ops
intermediate
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();
3,343
en
Java
factorial
advanced
Write a function in Java that calculates the factorial of 265.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(265));
### Instruction: Write a function in Java that calculates the factorial of 265. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(265));
223,055
kk
Python
sum_n
intermediate
Python тілінде 1-ден 1902-ге дейінгі сандардың қосындысын есептейтін функция жаз.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1902))
### Instruction: Python тілінде 1-ден 1902-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1902))
13,801,494
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
66,386,510
ru
Python
logic_ops
intermediate
Напишите на Python логику проверки, является ли год 2027 високосным.
def is_leap(): year = 2027 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2027 високосным. ### Response: def is_leap(): year = 2027 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
93,215,251
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; }
45,471,258
en
JavaScript
array_ops
advanced
Write a function that filters only even numbers from a list in JavaScript.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Write a function that filters only even numbers from a list in JavaScript. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
66,016,459
kk
JavaScript
array_ops
intermediate
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
65,456
ru
C#
factorial
advanced
Напиши функцию на C#, которая вычисляет факториал числа 6349.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(6349));
### Instruction: Напиши функцию на C#, которая вычисляет факториал числа 6349. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(6349));
98,308,453
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; }
53,506,615
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; }
4,788,764
kk
JavaScript
var_decl
beginner
JavaScript тілінде 243715 мәнімен size айнымалысын қалай жариялауға болады?
let size = 243715;
### Instruction: JavaScript тілінде 243715 мәнімен size айнымалысын қалай жариялауға болады? ### Response: let size = 243715;
4,518,367
en
Python
var_decl
beginner
How to declare a variable data with value 815760 in Python?
data = 815760
### Instruction: How to declare a variable data with value 815760 in Python? ### Response: data = 815760
46,828,042
ru
C++
string_ops
advanced
Напишите на 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; }
20,258,814
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
84,182,075
kk
Java
string_ops
intermediate
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
1,652,349
ru
Java
var_decl
beginner
Как объявить переменную offset со значением 701941 в Java?
int offset = 701941;
### Instruction: Как объявить переменную offset со значением 701941 в Java? ### Response: int offset = 701941;
4,322,870
kk
Java
var_decl
beginner
Java тілінде 203675 мәнімен total айнымалысын қалай жариялауға болады?
int total = 203675;
### Instruction: Java тілінде 203675 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 203675;
36,722,907
ru
Unity
logic_ops
advanced
Напишите на Unity логику проверки, является ли год 1940 високосным.
public bool IsLeap() { int y = 1940; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1940 високосным. ### Response: public bool IsLeap() { int y = 1940; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,249,265
ru
Unity
var_decl
beginner
Как объявить переменную total со значением 901474 в Unity?
int total = 901474;
### Instruction: Как объявить переменную total со значением 901474 в Unity? ### Response: int total = 901474;
1,590,252
en
JavaScript
var_decl
beginner
How to declare a variable y with value 750400 in JavaScript?
let y = 750400;
### Instruction: How to declare a variable y with value 750400 in JavaScript? ### Response: let y = 750400;
68,514,784
kk
JavaScript
array_ops
advanced
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
45,811,863
kk
Python
array_ops
intermediate
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
def get_max(arr): return max(arr)
### Instruction: Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: def get_max(arr): return max(arr)
15,558,239
en
C++
logic_ops
intermediate
Write a function that determines if the number 348 is prime in C++.
public bool IsPrime() { int n = 348; 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 348 is prime in C++. ### Response: public bool IsPrime() { int n = 348; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
26,907
kk
JavaScript
sum_n
intermediate
JavaScript тілінде 1-ден 402-ге дейінгі сандардың қосындысын есептейтін функция жаз.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(402));
### Instruction: JavaScript тілінде 1-ден 402-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(402));
16,411,119
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(); }
2,726,571
en
Unity
var_decl
beginner
How to declare a variable amount with value 197892 in Unity?
int amount = 197892;
### Instruction: How to declare a variable amount with value 197892 in Unity? ### Response: int amount = 197892;
23,897,926
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; }
2,581,489
kk
Java
var_decl
beginner
Java тілінде 141025 мәнімен value айнымалысын қалай жариялауға болады?
int value = 141025;
### Instruction: Java тілінде 141025 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 141025;
61,009,237
kk
Python
logic_ops
intermediate
Python тилінде 1924 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
def is_leap(): year = 1924 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Python тилінде 1924 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: def is_leap(): year = 1924 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
56,083,348
en
C++
string_ops
advanced
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; }
3,727,985
kk
Python
var_decl
beginner
Python тілінде 933448 мәнімен speed айнымалысын қалай жариялауға болады?
speed = 933448
### Instruction: Python тілінде 933448 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: speed = 933448
1,922,310
kk
Python
var_decl
beginner
Python тілінде 679059 мәнімен limit айнымалысын қалай жариялауға болады?
limit = 679059
### Instruction: Python тілінде 679059 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: limit = 679059
3,448,975
en
Java
var_decl
beginner
How to declare a variable score with value 957389 in Java?
int score = 957389;
### Instruction: How to declare a variable score with value 957389 in Java? ### Response: int score = 957389;
303,723
ru
Unity
var_decl
beginner
Как объявить переменную count со значением 5143 в Unity?
int count = 5143;
### Instruction: Как объявить переменную count со значением 5143 в Unity? ### Response: int count = 5143;
47,762,068
ru
Unity
logic_ops
advanced
Напишите на Unity логику проверки, является ли год 1969 високосным.
public bool IsLeap() { int y = 1969; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1969 високосным. ### Response: public bool IsLeap() { int y = 1969; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,116,790
ru
Java
var_decl
beginner
Как объявить переменную timer со значением 330768 в Java?
int timer = 330768;
### Instruction: Как объявить переменную timer со значением 330768 в Java? ### Response: int timer = 330768;
3,485,405
ru
Python
var_decl
beginner
Как объявить переменную amount со значением 583813 в Python?
amount = 583813
### Instruction: Как объявить переменную amount со значением 583813 в Python? ### Response: amount = 583813
11,121,062
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); }
89,528,522
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 2019 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2019; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2019 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2019; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
55,896,842
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(); }
68,935,498
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; }
50,109,580
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; }
98,393,219
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; }
3,423,509
kk
Python
var_decl
beginner
Python тілінде 523307 мәнімен result айнымалысын қалай жариялауға болады?
result = 523307
### Instruction: Python тілінде 523307 мәнімен result айнымалысын қалай жариялауға болады? ### Response: result = 523307
62,777,707
en
Python
logic_ops
intermediate
Write logic to check if the year 1910 is a leap year in Python.
def is_leap(): year = 1910 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 1910 is a leap year in Python. ### Response: def is_leap(): year = 1910 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
1,119,742
ru
C#
var_decl
beginner
Как объявить переменную speed со значением 403181 в C#?
int speed = 403181;
### Instruction: Как объявить переменную speed со значением 403181 в C#? ### Response: int speed = 403181;
2,461,538
ru
JavaScript
var_decl
beginner
Как объявить переменную level со значением 370372 в JavaScript?
let level = 370372;
### Instruction: Как объявить переменную level со значением 370372 в JavaScript? ### Response: let level = 370372;
26,150,454
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; }
29,520
kk
C#
factorial
advanced
C# тілінде 6540 санының факториалын есептейтін функция жаз.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(6540));
### Instruction: C# тілінде 6540 санының факториалын есептейтін функция жаз. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(6540));
1,157,597
en
Python
var_decl
beginner
How to declare a variable amount with value 951608 in Python?
amount = 951608
### Instruction: How to declare a variable amount with value 951608 in Python? ### Response: amount = 951608
44,540,063
en
Python
logic_ops
advanced
Write logic to check if the year 2078 is a leap year in Python.
def is_leap(): year = 2078 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2078 is a leap year in Python. ### Response: def is_leap(): year = 2078 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
50,288,214
en
C++
logic_ops
advanced
Write a function that determines if the number 450 is prime in C++.
public bool IsPrime() { int n = 450; 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 450 is prime in C++. ### Response: public bool IsPrime() { int n = 450; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,151,837
kk
Unity
var_decl
beginner
Unity тілінде 710988 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 710988;
### Instruction: Unity тілінде 710988 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 710988;
2,628,307
en
Python
var_decl
beginner
How to declare a variable value with value 774628 in Python?
value = 774628
### Instruction: How to declare a variable value with value 774628 in Python? ### Response: value = 774628
84,282,926
ru
Python
logic_ops
intermediate
Напишите на Python логику проверки, является ли год 2074 високосным.
def is_leap(): year = 2074 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2074 високосным. ### Response: def is_leap(): year = 2074 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
29,585,486
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); }
4,567,008
kk
Unity
var_decl
beginner
Unity тілінде 682841 мәнімен result айнымалысын қалай жариялауға болады?
int result = 682841;
### Instruction: Unity тілінде 682841 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 682841;
4,455,757
en
JavaScript
var_decl
beginner
How to declare a variable health with value 793079 in JavaScript?
let health = 793079;
### Instruction: How to declare a variable health with value 793079 in JavaScript? ### Response: let health = 793079;
12,561,310
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; }
36,386,614
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; }
55,819,911
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); }
4,319,224
ru
Unity
var_decl
beginner
Как объявить переменную weight со значением 291133 в Unity?
int weight = 291133;
### Instruction: Как объявить переменную weight со значением 291133 в Unity? ### Response: int weight = 291133;
129,002
en
C++
sum_n
intermediate
Write a function in C++ that sums numbers from 1 to 3010.
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(3010) << std::endl;
### Instruction: Write a function in C++ that sums numbers from 1 to 3010. ### 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(3010) << std::endl;
39,417,275
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 161 простым.
public bool IsPrime() { int n = 161; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 161 простым. ### Response: public bool IsPrime() { int n = 161; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
48,081,202
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; }
291,649
en
C#
var_decl
beginner
How to declare a variable total with value 584972 in C#?
int total = 584972;
### Instruction: How to declare a variable total with value 584972 in C#? ### Response: int total = 584972;
13,060,138
en
JavaScript
array_ops
advanced
Write a function that filters only even numbers from a list in JavaScript.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Write a function that filters only even numbers from a list in JavaScript. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
68,935,473
en
Java
logic_ops
intermediate
Write logic to check if the year 2034 is a leap year in Java.
public bool IsLeap() { int y = 2034; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2034 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2034; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
74,326,717
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(); }
60,261,405
en
C#
string_ops
advanced
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; }
17,965,284
ru
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]
36,346,141
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; }
65,959,588
en
Python
logic_ops
intermediate
Write logic to check if the year 2012 is a leap year in Python.
def is_leap(): year = 2012 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2012 is a leap year in Python. ### Response: def is_leap(): year = 2012 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
3,341,541
ru
C++
var_decl
beginner
Как объявить переменную total со значением 485151 в C++?
int total = 485151;
### Instruction: Как объявить переменную total со значением 485151 в C++? ### Response: int total = 485151;
99,451,421
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; }