id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
2,788,224
kk
Unity
var_decl
beginner
Unity тілінде 740716 мәнімен size айнымалысын қалай жариялауға болады?
int size = 740716;
### Instruction: Unity тілінде 740716 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 740716;
23,192,930
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript логику проверки, является ли год 1977 високосным.
function isLeap() { let y = 1977; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 1977 високосным. ### Response: function isLeap() { let y = 1977; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
3,204,781
ru
Java
var_decl
beginner
Как объявить переменную limit со значением 211486 в Java?
int limit = 211486;
### Instruction: Как объявить переменную limit со значением 211486 в Java? ### Response: int limit = 211486;
78,958,549
en
Java
logic_ops
advanced
Write a function that determines if the number 121 is prime in Java.
public bool IsPrime() { int n = 121; 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 121 is prime in Java. ### Response: public bool IsPrime() { int n = 121; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
43,397,569
kk
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; }
26,996,320
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(); }
2,536,702
kk
Java
var_decl
beginner
Java тілінде 394336 мәнімен x айнымалысын қалай жариялауға болады?
int x = 394336;
### Instruction: Java тілінде 394336 мәнімен x айнымалысын қалай жариялауға болады? ### Response: int x = 394336;
72,064,761
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
185,848
kk
JavaScript
factorial
advanced
JavaScript тілінде 6311 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(6311));
### Instruction: JavaScript тілінде 6311 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(6311));
34,169,676
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('');
582,026
kk
JavaScript
sum_n
intermediate
JavaScript тілінде 1-ден 3502-ге дейінгі сандардың қосындысын есептейтін функция жаз.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(3502));
### Instruction: JavaScript тілінде 1-ден 3502-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(3502));
3,323,511
kk
JavaScript
var_decl
beginner
JavaScript тілінде 391119 мәнімен speed айнымалысын қалай жариялауға болады?
let speed = 391119;
### Instruction: JavaScript тілінде 391119 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: let speed = 391119;
296,678
kk
Unity
factorial
advanced
Unity тілінде 7230 санының факториалын есептейтін функция жаз.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7230)); }
### Instruction: Unity тілінде 7230 санының факториалын есептейтін функция жаз. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7230)); }
478,532
ru
Java
var_decl
beginner
Как объявить переменную health со значением 620596 в Java?
int health = 620596;
### Instruction: Как объявить переменную health со значением 620596 в Java? ### Response: int health = 620596;
75,479,208
en
C++
logic_ops
intermediate
Write a function that determines if the number 494 is prime in C++.
public bool IsPrime() { int n = 494; 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 494 is prime in C++. ### Response: public bool IsPrime() { int n = 494; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,899,404
ru
JavaScript
var_decl
beginner
Как объявить переменную amount со значением 730822 в JavaScript?
let amount = 730822;
### Instruction: Как объявить переменную amount со значением 730822 в JavaScript? ### Response: let amount = 730822;
4,984,495
ru
C#
var_decl
beginner
Как объявить переменную score со значением 619289 в C#?
int score = 619289;
### Instruction: Как объявить переменную score со значением 619289 в C#? ### Response: int score = 619289;
72,546,239
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; }
903,090
ru
Python
var_decl
beginner
Как объявить переменную score со значением 68853 в Python?
score = 68853
### Instruction: Как объявить переменную score со значением 68853 в Python? ### Response: score = 68853
84,794,088
kk
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; }
30,071,392
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; }
68,639,992
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 2090 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2090; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2090 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2090; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
21,671,940
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(); }
71,560,527
en
C#
string_ops
intermediate
Write a function that checks if a string is a palindrome in C#.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in C#. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
29,711,936
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; }
59,173,099
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
2,169,488
kk
Unity
var_decl
beginner
Unity тілінде 21082 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 21082;
### Instruction: Unity тілінде 21082 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 21082;
3,914,322
kk
C#
var_decl
beginner
C# тілінде 532143 мәнімен count айнымалысын қалай жариялауға болады?
int count = 532143;
### Instruction: C# тілінде 532143 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 532143;
3,086,346
kk
Java
var_decl
beginner
Java тілінде 401990 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 401990;
### Instruction: Java тілінде 401990 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 401990;
597,995
en
Python
var_decl
beginner
How to declare a variable x with value 287281 in Python?
x = 287281
### Instruction: How to declare a variable x with value 287281 in Python? ### Response: x = 287281
58,323,349
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; }
56,773,524
kk
Java
logic_ops
intermediate
Java тилінде 1918 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1918; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1918 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1918; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,526,225
ru
Java
var_decl
beginner
Как объявить переменную limit со значением 641190 в Java?
int limit = 641190;
### Instruction: Как объявить переменную limit со значением 641190 в Java? ### Response: int limit = 641190;
71,877,835
kk
C++
logic_ops
advanced
C++ тилінде 1960 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1960; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1960 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1960; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
670,525
en
JavaScript
var_decl
beginner
How to declare a variable x with value 215067 in JavaScript?
let x = 215067;
### Instruction: How to declare a variable x with value 215067 in JavaScript? ### Response: let x = 215067;
1,482,689
en
C#
var_decl
beginner
How to declare a variable limit with value 705187 in C#?
int limit = 705187;
### Instruction: How to declare a variable limit with value 705187 in C#? ### Response: int limit = 705187;
69,727,242
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); }
21,579,176
kk
JavaScript
string_ops
intermediate
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
31,495,184
kk
Python
array_ops
advanced
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
1,346,351
ru
Unity
var_decl
beginner
Как объявить переменную offset со значением 996409 в Unity?
int offset = 996409;
### Instruction: Как объявить переменную offset со значением 996409 в Unity? ### Response: int offset = 996409;
3,954,877
kk
C#
var_decl
beginner
C# тілінде 241243 мәнімен score айнымалысын қалай жариялауға болады?
int score = 241243;
### Instruction: C# тілінде 241243 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 241243;
18,160,870
kk
C#
logic_ops
advanced
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; }
378,189
kk
Python
sum_n
intermediate
Python тілінде 1-ден 1848-ге дейінгі сандардың қосындысын есептейтін функция жаз.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1848))
### Instruction: Python тілінде 1-ден 1848-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1848))
1,113,708
en
Python
var_decl
beginner
How to declare a variable result with value 218699 in Python?
result = 218699
### Instruction: How to declare a variable result with value 218699 in Python? ### Response: result = 218699
47,820,375
en
Java
string_ops
advanced
Write a function that checks if a string is a palindrome in 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: Write a function that checks if a string is a palindrome in 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; }
45,801,824
en
Unity
logic_ops
advanced
Write a function that determines if the number 159 is prime in Unity.
public bool IsPrime() { int n = 159; 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 159 is prime in Unity. ### Response: public bool IsPrime() { int n = 159; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
92,488,996
ru
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);
87,741,848
ru
Java
string_ops
intermediate
Напишите на Java функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на Java функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
25,767,357
en
C#
logic_ops
advanced
Write logic to check if the year 2097 is a leap year in C#.
public bool IsLeap() { int y = 2097; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2097 is a leap year in C#. ### Response: public bool IsLeap() { int y = 2097; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
64,451,478
en
Unity
logic_ops
intermediate
Write logic to check if the year 2054 is a leap year in Unity.
public bool IsLeap() { int y = 2054; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2054 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2054; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
920,784
kk
C++
var_decl
beginner
C++ тілінде 99520 мәнімен index айнымалысын қалай жариялауға болады?
int index = 99520;
### Instruction: C++ тілінде 99520 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 99520;
93,257,992
kk
JavaScript
array_ops
intermediate
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
1,621,333
kk
C#
var_decl
beginner
C# тілінде 509936 мәнімен index айнымалысын қалай жариялауға болады?
int index = 509936;
### Instruction: C# тілінде 509936 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 509936;
94,117,144
ru
Python
string_ops
advanced
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
15,500,899
ru
Java
array_ops
intermediate
Напишите на Java функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на Java функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
89,487,591
ru
Java
logic_ops
advanced
Напишите на Java функцию, определяющую, является ли число 181 простым.
public bool IsPrime() { int n = 181; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 181 простым. ### Response: public bool IsPrime() { int n = 181; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
25,199,521
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; }
92,377,953
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();
233,112
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 4479.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(4479))
### Instruction: Write a function in Python that sums numbers from 1 to 4479. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(4479))
4,363,614
en
Java
var_decl
beginner
How to declare a variable level with value 541330 in Java?
int level = 541330;
### Instruction: How to declare a variable level with value 541330 in Java? ### Response: int level = 541330;
73,995
en
C#
var_decl
beginner
How to declare a variable offset with value 230346 in C#?
int offset = 230346;
### Instruction: How to declare a variable offset with value 230346 in C#? ### Response: int offset = 230346;
70,138,240
en
Java
logic_ops
advanced
Write logic to check if the year 2003 is a leap year in Java.
public bool IsLeap() { int y = 2003; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2003 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2003; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,217,366
en
Java
var_decl
beginner
How to declare a variable health with value 903483 in Java?
int health = 903483;
### Instruction: How to declare a variable health with value 903483 in Java? ### Response: int health = 903483;
2,632,157
ru
C#
var_decl
beginner
Как объявить переменную result со значением 542648 в C#?
int result = 542648;
### Instruction: Как объявить переменную result со значением 542648 в C#? ### Response: int result = 542648;
2,636,355
kk
Unity
var_decl
beginner
Unity тілінде 783426 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 783426;
### Instruction: Unity тілінде 783426 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 783426;
130,604
kk
C#
factorial
advanced
C# тілінде 4048 санының факториалын есептейтін функция жаз.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(4048));
### Instruction: C# тілінде 4048 санының факториалын есептейтін функция жаз. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(4048));
16,455,727
en
C++
logic_ops
intermediate
Write a function that determines if the number 170 is prime in C++.
public bool IsPrime() { int n = 170; 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 170 is prime in C++. ### Response: public bool IsPrime() { int n = 170; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,844,177
ru
C#
var_decl
beginner
Как объявить переменную total со значением 85505 в C#?
int total = 85505;
### Instruction: Как объявить переменную total со значением 85505 в C#? ### Response: int total = 85505;
2,054,527
ru
Unity
var_decl
beginner
Как объявить переменную rate со значением 260404 в Unity?
int rate = 260404;
### Instruction: Как объявить переменную rate со значением 260404 в Unity? ### Response: int rate = 260404;
1,049,060
ru
Java
var_decl
beginner
Как объявить переменную size со значением 464210 в Java?
int size = 464210;
### Instruction: Как объявить переменную size со значением 464210 в Java? ### Response: int size = 464210;
18,058,065
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
def is_palindrome(s): return s == s[::-1]
### Instruction: Напишите на Python функцию, которая проверяет, является ли строка палиндромом. ### Response: def is_palindrome(s): return s == s[::-1]
69,036,901
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
11,773,454
en
Python
logic_ops
intermediate
Write logic to check if the year 2084 is a leap year in Python.
def is_leap(): year = 2084 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2084 is a leap year in Python. ### Response: def is_leap(): year = 2084 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
87,934,427
kk
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; }
55,006,772
en
Python
logic_ops
advanced
Write a function that determines if the number 373 is prime in Python.
def is_prime(): n = 373 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 373 is prime in Python. ### Response: def is_prime(): n = 373 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
606,092
en
C++
var_decl
beginner
How to declare a variable timer with value 559712 in C++?
int timer = 559712;
### Instruction: How to declare a variable timer with value 559712 in C++? ### Response: int timer = 559712;
44,959,447
en
Unity
logic_ops
advanced
Write a function that determines if the number 361 is prime in Unity.
public bool IsPrime() { int n = 361; 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 361 is prime in Unity. ### Response: public bool IsPrime() { int n = 361; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
57,903,506
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; }
92,659,132
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; }
95,248,387
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; }
35,536,473
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; }
3,456,095
en
C++
var_decl
beginner
How to declare a variable amount with value 461141 in C++?
int amount = 461141;
### Instruction: How to declare a variable amount with value 461141 in C++? ### Response: int amount = 461141;
47,134,287
en
C++
array_ops
intermediate
Write a function that reverses a list in C++.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in C++. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
37,280,063
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); }
2,215,846
ru
C#
var_decl
beginner
Как объявить переменную index со значением 554058 в C#?
int index = 554058;
### Instruction: Как объявить переменную index со значением 554058 в C#? ### Response: int index = 554058;
96,729,466
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 1953 високосным.
public bool IsLeap() { int y = 1953; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 1953 високосным. ### Response: public bool IsLeap() { int y = 1953; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
12,268,724
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; }
3,802,434
en
Java
var_decl
beginner
How to declare a variable health with value 980793 in Java?
int health = 980793;
### Instruction: How to declare a variable health with value 980793 in Java? ### Response: int health = 980793;
60,831,484
kk
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; }
78,012,170
kk
Unity
string_ops
advanced
Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
606,613
ru
Python
factorial
advanced
Напиши функцию на Python, которая вычисляет факториал числа 8975.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(8975))
### Instruction: Напиши функцию на Python, которая вычисляет факториал числа 8975. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(8975))
4,988,175
ru
C++
var_decl
beginner
Как объявить переменную result со значением 760290 в C++?
int result = 760290;
### Instruction: Как объявить переменную result со значением 760290 в C++? ### Response: int result = 760290;
30,691,361
en
Java
logic_ops
intermediate
Write logic to check if the year 1933 is a leap year in Java.
public bool IsLeap() { int y = 1933; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1933 is a leap year in Java. ### Response: public bool IsLeap() { int y = 1933; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,929,921
en
Java
var_decl
beginner
How to declare a variable timer with value 224753 in Java?
int timer = 224753;
### Instruction: How to declare a variable timer with value 224753 in Java? ### Response: int timer = 224753;
4,252,775
kk
Python
var_decl
beginner
Python тілінде 983009 мәнімен limit айнымалысын қалай жариялауға болады?
limit = 983009
### Instruction: Python тілінде 983009 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: limit = 983009
44,792,834
ru
C#
logic_ops
intermediate
Напишите на C# логику проверки, является ли год 2092 високосным.
public bool IsLeap() { int y = 2092; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2092 високосным. ### Response: public bool IsLeap() { int y = 2092; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
60,981,742
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
def is_palindrome(s): return s == s[::-1]
### Instruction: Напишите на Python функцию, которая проверяет, является ли строка палиндромом. ### Response: def is_palindrome(s): return s == s[::-1]
24,034,963
ru
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; }
559,526
en
C++
var_decl
beginner
How to declare a variable index with value 721130 in C++?
int index = 721130;
### Instruction: How to declare a variable index with value 721130 in C++? ### Response: int index = 721130;
3,679,369
ru
C#
var_decl
beginner
Как объявить переменную value со значением 99922 в C#?
int value = 99922;
### Instruction: Как объявить переменную value со значением 99922 в C#? ### Response: int value = 99922;