id
int64
0
100M
language
stringclasses
3 values
prog_lang
stringclasses
6 values
category
stringclasses
10 values
difficulty
stringclasses
3 values
instruction
stringlengths
30
86
output
stringlengths
7
192
text
stringlengths
92
300
1,380,772
ru
C#
var_decl
beginner
Как объявить переменную weight со значением 760569 в C#?
int weight = 760569;
### Instruction: Как объявить переменную weight со значением 760569 в C#? ### Response: int weight = 760569;
853,538
kk
C#
var_decl
beginner
C# тілінде 272932 мәнімен data айнымалысын қалай жариялауға болады?
int data = 272932;
### Instruction: C# тілінде 272932 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 272932;
562,189
kk
Unity
factorial
advanced
Unity тілінде 2526 санының факториалын есептейтін функция жаз.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(2526)); }
### Instruction: Unity тілінде 2526 санының факториалын есептейтін функция жаз. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(2526)); }
72,008,438
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 464 простым.
public bool IsPrime() { int n = 464; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 464 простым. ### Response: public bool IsPrime() { int n = 464; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
93,730,130
en
C++
logic_ops
intermediate
Write a function that determines if the number 189 is prime in C++.
public bool IsPrime() { int n = 189; 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 189 is prime in C++. ### Response: public bool IsPrime() { int n = 189; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
83,710,810
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 473 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 473; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 473 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 473; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
2,778,017
ru
JavaScript
var_decl
beginner
Как объявить переменную total со значением 140829 в JavaScript?
let total = 140829;
### Instruction: Как объявить переменную total со значением 140829 в JavaScript? ### Response: let total = 140829;
34,096,484
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);
316,988
kk
Python
sum_n
intermediate
Python тілінде 1-ден 1601-ге дейінгі сандардың қосындысын есептейтін функция жаз.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1601))
### Instruction: Python тілінде 1-ден 1601-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1601))
1,746,704
kk
C#
var_decl
beginner
C# тілінде 560416 мәнімен x айнымалысын қалай жариялауға болады?
int x = 560416;
### Instruction: C# тілінде 560416 мәнімен x айнымалысын қалай жариялауға болады? ### Response: int x = 560416;
25,882,076
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); }
62,763,485
en
C#
logic_ops
advanced
Write logic to check if the year 1913 is a leap year in C#.
public bool IsLeap() { int y = 1913; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1913 is a leap year in C#. ### Response: public bool IsLeap() { int y = 1913; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
581,934
en
C#
var_decl
beginner
How to declare a variable size with value 689382 in C#?
int size = 689382;
### Instruction: How to declare a variable size with value 689382 in C#? ### Response: int size = 689382;
76,092,131
kk
C#
logic_ops
intermediate
C# тилінде 470 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 470; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 470 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 470; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
23,419,978
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(); }
68,934,900
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]
4,795,996
kk
C#
var_decl
beginner
C# тілінде 269906 мәнімен timer айнымалысын қалай жариялауға болады?
int timer = 269906;
### Instruction: C# тілінде 269906 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: int timer = 269906;
95,243,049
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
51,969
ru
C++
sum_n
intermediate
Напиши функцию на C++, которая считает сумму чисел от 1 до 9508.
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(9508) << std::endl;
### Instruction: Напиши функцию на C++, которая считает сумму чисел от 1 до 9508. ### 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(9508) << std::endl;
2,818,630
kk
Java
var_decl
beginner
Java тілінде 380137 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 380137;
### Instruction: Java тілінде 380137 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 380137;
37,520,549
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(); }
3,359,758
ru
JavaScript
var_decl
beginner
Как объявить переменную index со значением 62939 в JavaScript?
let index = 62939;
### Instruction: Как объявить переменную index со значением 62939 в JavaScript? ### Response: let index = 62939;
2,729,331
ru
Unity
var_decl
beginner
Как объявить переменную amount со значением 663683 в Unity?
int amount = 663683;
### Instruction: Как объявить переменную amount со значением 663683 в Unity? ### Response: int amount = 663683;
531,175
en
C++
var_decl
beginner
How to declare a variable amount with value 338778 in C++?
int amount = 338778;
### Instruction: How to declare a variable amount with value 338778 in C++? ### Response: int amount = 338778;
60,562,401
kk
Java
array_ops
intermediate
Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
52,614,179
kk
JavaScript
string_ops
advanced
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
85,573,195
en
Unity
string_ops
intermediate
Write a function that counts vowels in a text in Unity.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in Unity. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
569,373
ru
C++
sum_n
intermediate
Напиши функцию на C++, которая считает сумму чисел от 1 до 5749.
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(5749) << std::endl;
### Instruction: Напиши функцию на C++, которая считает сумму чисел от 1 до 5749. ### 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(5749) << std::endl;
48,278,984
kk
Unity
logic_ops
intermediate
Unity тилінде 1938 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1938; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1938 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1938; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
110,572
en
C#
sum_n
intermediate
Write a function in C# that sums numbers from 1 to 1834.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(1834));
### Instruction: Write a function in C# that sums numbers from 1 to 1834. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(1834));
85,973,118
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; }
2,268,413
kk
C#
var_decl
beginner
C# тілінде 524421 мәнімен y айнымалысын қалай жариялауға болады?
int y = 524421;
### Instruction: C# тілінде 524421 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 524421;
81,752,645
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); }
93,035,467
ru
Java
string_ops
intermediate
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
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: Напишите на Java функцию, которая проверяет, является ли строка палиндромом. ### 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; }
40,650,159
kk
Python
array_ops
intermediate
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
1,387,441
kk
C++
var_decl
beginner
C++ тілінде 826284 мәнімен count айнымалысын қалай жариялауға болады?
int count = 826284;
### Instruction: C++ тілінде 826284 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 826284;
36,371,468
ru
C#
string_ops
advanced
Напишите на 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; }
62,533
kk
Python
var_decl
beginner
Python тілінде 406747 мәнімен health айнымалысын қалай жариялауға болады?
health = 406747
### Instruction: Python тілінде 406747 мәнімен health айнымалысын қалай жариялауға болады? ### Response: health = 406747
48,771,403
kk
Unity
logic_ops
intermediate
Unity тилінде 1910 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1910; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1910 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1910; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
22,138,791
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
3,442,253
kk
Unity
var_decl
beginner
Unity тілінде 544817 мәнімен level айнымалысын қалай жариялауға болады?
int level = 544817;
### Instruction: Unity тілінде 544817 мәнімен level айнымалысын қалай жариялауға болады? ### Response: int level = 544817;
32,611,154
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();
61,096,919
en
Unity
logic_ops
advanced
Write logic to check if the year 2093 is a leap year in Unity.
public bool IsLeap() { int y = 2093; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2093 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2093; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
38,540,085
kk
Python
string_ops
advanced
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
def is_palindrome(s): return s == s[::-1]
### Instruction: Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: def is_palindrome(s): return s == s[::-1]
77,500,061
kk
Python
string_ops
intermediate
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
20,322,381
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; }
19,282,082
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; }
1,830,150
en
Unity
var_decl
beginner
How to declare a variable index with value 29080 in Unity?
int index = 29080;
### Instruction: How to declare a variable index with value 29080 in Unity? ### Response: int index = 29080;
211,586
en
C#
factorial
advanced
Write a function in C# that calculates the factorial of 3119.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(3119));
### Instruction: Write a function in C# that calculates the factorial of 3119. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(3119));
68,791,984
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 471 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 471; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 471 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 471; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
66,567,651
en
Python
logic_ops
advanced
Write logic to check if the year 1930 is a leap year in Python.
def is_leap(): year = 1930 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 1930 is a leap year in Python. ### Response: def is_leap(): year = 1930 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
426,211
en
Python
var_decl
beginner
How to declare a variable timer with value 951164 in Python?
timer = 951164
### Instruction: How to declare a variable timer with value 951164 in Python? ### Response: timer = 951164
44,569,755
ru
C++
string_ops
advanced
Напишите на 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; }
61,313,455
kk
Python
logic_ops
advanced
Python тилінде 228 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 228 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 228 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 228 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
22,711,711
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; }
646,662
ru
C++
sum_n
intermediate
Напиши функцию на C++, которая считает сумму чисел от 1 до 6627.
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(6627) << std::endl;
### Instruction: Напиши функцию на C++, которая считает сумму чисел от 1 до 6627. ### 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(6627) << std::endl;
56,431,770
kk
Unity
logic_ops
intermediate
Unity тилінде 337 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 337; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 337 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 337; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
41,329
kk
Java
sum_n
intermediate
Java тілінде 1-ден 1780-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(1780));
### Instruction: Java тілінде 1-ден 1780-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(1780));
77,651,330
en
Java
string_ops
advanced
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; }
297,020
kk
Unity
sum_n
intermediate
Unity тілінде 1-ден 7474-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7474)); }
### Instruction: Unity тілінде 1-ден 7474-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7474)); }
4,462,686
ru
Python
var_decl
beginner
Как объявить переменную timer со значением 664428 в Python?
timer = 664428
### Instruction: Как объявить переменную timer со значением 664428 в Python? ### Response: timer = 664428
56,685,187
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 1932 високосным.
public bool IsLeap() { int y = 1932; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 1932 високосным. ### Response: public bool IsLeap() { int y = 1932; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
497,311
kk
C++
var_decl
beginner
C++ тілінде 497683 мәнімен value айнымалысын қалай жариялауға болады?
int value = 497683;
### Instruction: C++ тілінде 497683 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 497683;
99,195,273
en
C++
logic_ops
intermediate
Write logic to check if the year 2066 is a leap year in C++.
public bool IsLeap() { int y = 2066; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2066 is a leap year in C++. ### Response: public bool IsLeap() { int y = 2066; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
37,111,462
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
2,180,798
kk
Java
var_decl
beginner
Java тілінде 232925 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 232925;
### Instruction: Java тілінде 232925 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 232925;
218,089
en
Python
var_decl
beginner
How to declare a variable result with value 89568 in Python?
result = 89568
### Instruction: How to declare a variable result with value 89568 in Python? ### Response: result = 89568
38,094,239
ru
Unity
string_ops
advanced
Напишите на Unity функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на Unity функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
799,408
ru
Python
sum_n
intermediate
Напиши функцию на Python, которая считает сумму чисел от 1 до 1545.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1545))
### Instruction: Напиши функцию на Python, которая считает сумму чисел от 1 до 1545. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1545))
94,981,488
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; }
41,441,635
kk
Python
logic_ops
advanced
Python тилінде 1916 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
def is_leap(): year = 1916 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Python тилінде 1916 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: def is_leap(): year = 1916 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
58,270,246
ru
Unity
logic_ops
intermediate
Напишите на Unity логику проверки, является ли год 2009 високосным.
public bool IsLeap() { int y = 2009; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 2009 високосным. ### Response: public bool IsLeap() { int y = 2009; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
46,426,326
ru
C#
logic_ops
intermediate
Напишите на C# функцию, определяющую, является ли число 196 простым.
public bool IsPrime() { int n = 196; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 196 простым. ### Response: public bool IsPrime() { int n = 196; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
21,971,789
en
Python
logic_ops
intermediate
Write a function that determines if the number 99 is prime in Python.
def is_prime(): n = 99 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Write a function that determines if the number 99 is prime in Python. ### Response: def is_prime(): n = 99 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
20,395,961
ru
Java
array_ops
intermediate
Напишите на Java функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на Java функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
4,347,846
en
Unity
var_decl
beginner
How to declare a variable result with value 447141 in Unity?
int result = 447141;
### Instruction: How to declare a variable result with value 447141 in Unity? ### Response: int result = 447141;
2,360,538
en
JavaScript
var_decl
beginner
How to declare a variable limit with value 335771 in JavaScript?
let limit = 335771;
### Instruction: How to declare a variable limit with value 335771 in JavaScript? ### Response: let limit = 335771;
837,053
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 6494.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(6494)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 6494. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(6494)); }
1,612,977
kk
Java
var_decl
beginner
Java тілінде 621173 мәнімен health айнымалысын қалай жариялауға болады?
int health = 621173;
### Instruction: Java тілінде 621173 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 621173;
56,843,603
kk
Unity
logic_ops
advanced
Unity тилінде 1996 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1996; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1996 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1996; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,216,853
ru
C#
var_decl
beginner
Как объявить переменную y со значением 912760 в C#?
int y = 912760;
### Instruction: Как объявить переменную y со значением 912760 в C#? ### Response: int y = 912760;
2,069,998
en
C++
var_decl
beginner
How to declare a variable limit with value 937362 in C++?
int limit = 937362;
### Instruction: How to declare a variable limit with value 937362 in C++? ### Response: int limit = 937362;
205,502
ru
Python
var_decl
beginner
Как объявить переменную value со значением 907626 в Python?
value = 907626
### Instruction: Как объявить переменную value со значением 907626 в Python? ### Response: value = 907626
70,170,441
kk
C#
logic_ops
advanced
C# тилінде 382 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 382; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 382 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 382; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
80,944,406
en
C++
array_ops
intermediate
Write a function that filters only even numbers from a list in C++.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Write a function that filters only even numbers from a list in C++. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
2,766,944
ru
Python
var_decl
beginner
Как объявить переменную total со значением 37421 в Python?
total = 37421
### Instruction: Как объявить переменную total со значением 37421 в Python? ### Response: total = 37421
54,555,605
en
Java
logic_ops
advanced
Write logic to check if the year 2099 is a leap year in Java.
public bool IsLeap() { int y = 2099; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2099 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2099; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,071,987
ru
JavaScript
var_decl
beginner
Как объявить переменную limit со значением 370924 в JavaScript?
let limit = 370924;
### Instruction: Как объявить переменную limit со значением 370924 в JavaScript? ### Response: let limit = 370924;
70,818,514
kk
JavaScript
string_ops
advanced
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
const toUpper = s => s.toUpperCase();
### Instruction: JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: const toUpper = s => s.toUpperCase();
95,081,495
kk
Unity
string_ops
intermediate
Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
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: Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### 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; }
1,681,243
ru
C++
var_decl
beginner
Как объявить переменную buffer со значением 595391 в C++?
int buffer = 595391;
### Instruction: Как объявить переменную buffer со значением 595391 в C++? ### Response: int buffer = 595391;
4,838,586
kk
Python
var_decl
beginner
Python тілінде 363509 мәнімен x айнымалысын қалай жариялауға болады?
x = 363509
### Instruction: Python тілінде 363509 мәнімен x айнымалысын қалай жариялауға болады? ### Response: x = 363509
499,155
kk
C++
factorial
advanced
C++ тілінде 2990 санының факториалын есептейтін функция жаз.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(2990) << std::endl;
### Instruction: C++ тілінде 2990 санының факториалын есептейтін функция жаз. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(2990) << std::endl;
53,793,632
ru
Java
string_ops
intermediate
Напишите на Java функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на Java функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
93,067,412
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript функцию, определяющую, является ли число 214 простым.
function isPrime() { let n = 214; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 214 простым. ### Response: function isPrime() { let n = 214; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
21,812,165
kk
C++
string_ops
intermediate
C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
87,194
kk
Python
sum_n
intermediate
Python тілінде 1-ден 2170-ге дейінгі сандардың қосындысын есептейтін функция жаз.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(2170))
### Instruction: Python тілінде 1-ден 2170-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(2170))
3,146,425
kk
Unity
var_decl
beginner
Unity тілінде 690219 мәнімен level айнымалысын қалай жариялауға болады?
int level = 690219;
### Instruction: Unity тілінде 690219 мәнімен level айнымалысын қалай жариялауға болады? ### Response: int level = 690219;
16,515,136
kk
C++
logic_ops
intermediate
C++ тилінде 2046 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2046; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2046 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2046; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,596,889
en
Unity
var_decl
beginner
How to declare a variable total with value 781210 in Unity?
int total = 781210;
### Instruction: How to declare a variable total with value 781210 in Unity? ### Response: int total = 781210;