id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
96,102,961
en
Unity
string_ops
advanced
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; }
856,498
ru
Unity
var_decl
beginner
Как объявить переменную total со значением 738856 в Unity?
int total = 738856;
### Instruction: Как объявить переменную total со значением 738856 в Unity? ### Response: int total = 738856;
435,138
kk
JavaScript
factorial
advanced
JavaScript тілінде 3746 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(3746));
### Instruction: JavaScript тілінде 3746 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(3746));
31,027,102
kk
Unity
logic_ops
advanced
Unity тилінде 252 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 252; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 252 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 252; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,975,313
ru
Java
var_decl
beginner
Как объявить переменную health со значением 689365 в Java?
int health = 689365;
### Instruction: Как объявить переменную health со значением 689365 в Java? ### Response: int health = 689365;
58,193,993
ru
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; }
71,482,645
en
C++
logic_ops
intermediate
Write a function that determines if the number 19 is prime in C++.
public bool IsPrime() { int n = 19; 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 19 is prime in C++. ### Response: public bool IsPrime() { int n = 19; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
12,731,510
kk
C++
string_ops
intermediate
C++ тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: C++ тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
44,608,195
ru
Unity
logic_ops
advanced
Напишите на Unity логику проверки, является ли год 1989 високосным.
public bool IsLeap() { int y = 1989; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1989 високосным. ### Response: public bool IsLeap() { int y = 1989; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
45,392
kk
C++
sum_n
intermediate
C++ тілінде 1-ден 522-ге дейінгі сандардың қосындысын есептейтін функция жаз.
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(522) << std::endl;
### Instruction: C++ тілінде 1-ден 522-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### 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(522) << std::endl;
91,103,430
kk
Unity
logic_ops
intermediate
Unity тилінде 1916 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1916; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1916 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1916; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,282,659
en
C#
var_decl
beginner
How to declare a variable x with value 386827 in C#?
int x = 386827;
### Instruction: How to declare a variable x with value 386827 in C#? ### Response: int x = 386827;
30,561,174
kk
Unity
string_ops
advanced
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,551,026
ru
C#
var_decl
beginner
Как объявить переменную x со значением 733336 в C#?
int x = 733336;
### Instruction: Как объявить переменную x со значением 733336 в C#? ### Response: int x = 733336;
26,369,380
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript логику проверки, является ли год 1998 високосным.
function isLeap() { let y = 1998; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 1998 високосным. ### Response: function isLeap() { let y = 1998; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
74,078,367
en
C++
logic_ops
intermediate
Write logic to check if the year 1901 is a leap year in C++.
public bool IsLeap() { int y = 1901; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1901 is a leap year in C++. ### Response: public bool IsLeap() { int y = 1901; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
28,049
en
C++
var_decl
beginner
How to declare a variable weight with value 166586 in C++?
int weight = 166586;
### Instruction: How to declare a variable weight with value 166586 in C++? ### Response: int weight = 166586;
96,596,652
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 397 простым.
public bool IsPrime() { int n = 397; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 397 простым. ### Response: public bool IsPrime() { int n = 397; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,607,357
en
Java
var_decl
beginner
How to declare a variable amount with value 274207 in Java?
int amount = 274207;
### Instruction: How to declare a variable amount with value 274207 in Java? ### Response: int amount = 274207;
36,327,781
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); }
219,667
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 1253.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(1253));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 1253. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(1253));
668,576
en
Python
var_decl
beginner
How to declare a variable amount with value 865068 in Python?
amount = 865068
### Instruction: How to declare a variable amount with value 865068 in Python? ### Response: amount = 865068
79,155,741
en
C++
array_ops
advanced
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; }
798,533
kk
Unity
factorial
advanced
Unity тілінде 9834 санының факториалын есептейтін функция жаз.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(9834)); }
### Instruction: Unity тілінде 9834 санының факториалын есептейтін функция жаз. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(9834)); }
57,049,774
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; }
83,775,036
kk
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; }
91,098
en
Java
factorial
advanced
Write a function in Java that calculates the factorial of 1944.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1944));
### Instruction: Write a function in Java that calculates the factorial of 1944. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1944));
45,240,333
en
C++
logic_ops
advanced
Write a function that determines if the number 481 is prime in C++.
public bool IsPrime() { int n = 481; 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 481 is prime in C++. ### Response: public bool IsPrime() { int n = 481; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
482,139
ru
Unity
var_decl
beginner
Как объявить переменную health со значением 445354 в Unity?
int health = 445354;
### Instruction: Как объявить переменную health со значением 445354 в Unity? ### Response: int health = 445354;
84,406,038
kk
Unity
array_ops
intermediate
Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
4,924,641
en
C++
var_decl
beginner
How to declare a variable timer with value 392863 in C++?
int timer = 392863;
### Instruction: How to declare a variable timer with value 392863 in C++? ### Response: int timer = 392863;
82,102,428
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
1,299,210
en
C#
var_decl
beginner
How to declare a variable timer with value 882002 in C#?
int timer = 882002;
### Instruction: How to declare a variable timer with value 882002 in C#? ### Response: int timer = 882002;
4,076,142
kk
Unity
var_decl
beginner
Unity тілінде 530941 мәнімен data айнымалысын қалай жариялауға болады?
int data = 530941;
### Instruction: Unity тілінде 530941 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 530941;
14,815,163
kk
Unity
array_ops
advanced
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
4,558,479
kk
Java
var_decl
beginner
Java тілінде 230662 мәнімен size айнымалысын қалай жариялауға болады?
int size = 230662;
### Instruction: Java тілінде 230662 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 230662;
98,629,646
ru
Python
logic_ops
advanced
Напишите на Python функцию, определяющую, является ли число 60 простым.
def is_prime(): n = 60 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 60 простым. ### Response: def is_prime(): n = 60 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
48,205,232
en
Python
array_ops
intermediate
Write a function that reverses a list in Python.
def reverse_list(arr): return arr[::-1]
### Instruction: Write a function that reverses a list in Python. ### Response: def reverse_list(arr): return arr[::-1]
237,557
ru
C++
factorial
advanced
Напиши функцию на C++, которая вычисляет факториал числа 8876.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(8876) << std::endl;
### Instruction: Напиши функцию на C++, которая вычисляет факториал числа 8876. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(8876) << std::endl;
185,656
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 6664.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(6664)); }
### Instruction: Write a function in Unity that calculates the factorial of 6664. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(6664)); }
99,568,246
en
Unity
logic_ops
advanced
Write a function that determines if the number 227 is prime in Unity.
public bool IsPrime() { int n = 227; 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 227 is prime in Unity. ### Response: public bool IsPrime() { int n = 227; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
69,101,498
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; }
2,611,126
kk
JavaScript
var_decl
beginner
JavaScript тілінде 79323 мәнімен limit айнымалысын қалай жариялауға болады?
let limit = 79323;
### Instruction: JavaScript тілінде 79323 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: let limit = 79323;
2,258,887
kk
Unity
var_decl
beginner
Unity тілінде 32514 мәнімен total айнымалысын қалай жариялауға болады?
int total = 32514;
### Instruction: Unity тілінде 32514 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 32514;
4,428,269
en
JavaScript
var_decl
beginner
How to declare a variable amount with value 335721 in JavaScript?
let amount = 335721;
### Instruction: How to declare a variable amount with value 335721 in JavaScript? ### Response: let amount = 335721;
25,368,667
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); }
99,156,321
ru
Unity
logic_ops
intermediate
Напишите на Unity логику проверки, является ли год 2057 високосным.
public bool IsLeap() { int y = 2057; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 2057 високосным. ### Response: public bool IsLeap() { int y = 2057; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,675,576
ru
Unity
var_decl
beginner
Как объявить переменную timer со значением 269807 в Unity?
int timer = 269807;
### Instruction: Как объявить переменную timer со значением 269807 в Unity? ### Response: int timer = 269807;
2,908,963
kk
Java
var_decl
beginner
Java тілінде 878225 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 878225;
### Instruction: Java тілінде 878225 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 878225;
253,478
kk
Unity
sum_n
intermediate
Unity тілінде 1-ден 2846-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(2846)); }
### Instruction: Unity тілінде 1-ден 2846-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(2846)); }
1,333,998
kk
C#
var_decl
beginner
C# тілінде 209713 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 209713;
### Instruction: C# тілінде 209713 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 209713;
39,970,912
en
Unity
logic_ops
intermediate
Write logic to check if the year 2098 is a leap year in Unity.
public bool IsLeap() { int y = 2098; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2098 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2098; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,758,088
ru
C++
var_decl
beginner
Как объявить переменную timer со значением 422411 в C++?
int timer = 422411;
### Instruction: Как объявить переменную timer со значением 422411 в C++? ### Response: int timer = 422411;
1,399,112
en
Java
var_decl
beginner
How to declare a variable result with value 341781 in Java?
int result = 341781;
### Instruction: How to declare a variable result with value 341781 in Java? ### Response: int result = 341781;
4,870,083
ru
Python
var_decl
beginner
Как объявить переменную buffer со значением 39617 в Python?
buffer = 39617
### Instruction: Как объявить переменную buffer со значением 39617 в Python? ### Response: buffer = 39617
2,682,873
ru
Unity
var_decl
beginner
Как объявить переменную offset со значением 540448 в Unity?
int offset = 540448;
### Instruction: Как объявить переменную offset со значением 540448 в Unity? ### Response: int offset = 540448;
30,413,794
en
C#
logic_ops
advanced
Write a function that determines if the number 273 is prime in C#.
public bool IsPrime() { int n = 273; 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 273 is prime in C#. ### Response: public bool IsPrime() { int n = 273; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
74,754,893
ru
C++
logic_ops
advanced
Напишите на C++ функцию, определяющую, является ли число 406 простым.
public bool IsPrime() { int n = 406; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 406 простым. ### Response: public bool IsPrime() { int n = 406; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,332,848
en
Java
var_decl
beginner
How to declare a variable offset with value 437483 in Java?
int offset = 437483;
### Instruction: How to declare a variable offset with value 437483 in Java? ### Response: int offset = 437483;
2,282,648
kk
JavaScript
var_decl
beginner
JavaScript тілінде 227497 мәнімен level айнымалысын қалай жариялауға болады?
let level = 227497;
### Instruction: JavaScript тілінде 227497 мәнімен level айнымалысын қалай жариялауға болады? ### Response: let level = 227497;
89,346,720
en
Java
logic_ops
advanced
Write a function that determines if the number 421 is prime in Java.
public bool IsPrime() { int n = 421; 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 421 is prime in Java. ### Response: public bool IsPrime() { int n = 421; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
38,382,810
kk
JavaScript
array_ops
advanced
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
3,298,636
en
Python
var_decl
beginner
How to declare a variable count with value 237183 in Python?
count = 237183
### Instruction: How to declare a variable count with value 237183 in Python? ### Response: count = 237183
170,081
en
Java
factorial
advanced
Write a function in Java that calculates the factorial of 6677.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(6677));
### Instruction: Write a function in Java that calculates the factorial of 6677. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(6677));
60,020,207
en
JavaScript
string_ops
advanced
Write a function that counts vowels in a text in JavaScript.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Write a function that counts vowels in a text in JavaScript. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
1,816,390
ru
Java
var_decl
beginner
Как объявить переменную data со значением 534266 в Java?
int data = 534266;
### Instruction: Как объявить переменную data со значением 534266 в Java? ### Response: int data = 534266;
4,470,574
ru
Python
var_decl
beginner
Как объявить переменную limit со значением 177900 в Python?
limit = 177900
### Instruction: Как объявить переменную limit со значением 177900 в Python? ### Response: limit = 177900
82,076,038
ru
Python
logic_ops
intermediate
Напишите на Python функцию, определяющую, является ли число 118 простым.
def is_prime(): n = 118 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 118 простым. ### Response: def is_prime(): n = 118 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
2,965,318
en
Java
var_decl
beginner
How to declare a variable size with value 720250 in Java?
int size = 720250;
### Instruction: How to declare a variable size with value 720250 in Java? ### Response: int size = 720250;
311,187
ru
C#
sum_n
intermediate
Напиши функцию на C#, которая считает сумму чисел от 1 до 230.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(230));
### Instruction: Напиши функцию на C#, которая считает сумму чисел от 1 до 230. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(230));
2,930,726
kk
C#
var_decl
beginner
C# тілінде 7573 мәнімен result айнымалысын қалай жариялауға болады?
int result = 7573;
### Instruction: C# тілінде 7573 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 7573;
2,764,677
kk
Unity
var_decl
beginner
Unity тілінде 320482 мәнімен data айнымалысын қалай жариялауға болады?
int data = 320482;
### Instruction: Unity тілінде 320482 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 320482;
3,918,013
ru
Python
var_decl
beginner
Как объявить переменную weight со значением 955716 в Python?
weight = 955716
### Instruction: Как объявить переменную weight со значением 955716 в Python? ### Response: weight = 955716
3,594,079
en
C++
var_decl
beginner
How to declare a variable limit with value 369698 in C++?
int limit = 369698;
### Instruction: How to declare a variable limit with value 369698 in C++? ### Response: int limit = 369698;
4,173,371
en
Java
var_decl
beginner
How to declare a variable rate with value 101083 in Java?
int rate = 101083;
### Instruction: How to declare a variable rate with value 101083 in Java? ### Response: int rate = 101083;
96,723,589
en
Unity
array_ops
advanced
Write a function that finds the maximum number in an array in Unity.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in Unity. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
4,757,157
en
Python
var_decl
beginner
How to declare a variable health with value 452461 in Python?
health = 452461
### Instruction: How to declare a variable health with value 452461 in Python? ### Response: health = 452461
2,337,558
ru
Unity
var_decl
beginner
Как объявить переменную health со значением 944975 в Unity?
int health = 944975;
### Instruction: Как объявить переменную health со значением 944975 в Unity? ### Response: int health = 944975;
48,375,374
ru
Unity
logic_ops
intermediate
Напишите на Unity логику проверки, является ли год 2054 високосным.
public bool IsLeap() { int y = 2054; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 2054 високосным. ### Response: public bool IsLeap() { int y = 2054; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
16,047,859
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(); }
54,303,825
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; }
25,445,841
kk
Unity
string_ops
advanced
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; }
97,436,431
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 400 простым.
public bool IsPrime() { int n = 400; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 400 простым. ### Response: public bool IsPrime() { int n = 400; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,926,559
ru
JavaScript
var_decl
beginner
Как объявить переменную offset со значением 816904 в JavaScript?
let offset = 816904;
### Instruction: Как объявить переменную offset со значением 816904 в JavaScript? ### Response: let offset = 816904;
1,432,813
kk
Java
var_decl
beginner
Java тілінде 322741 мәнімен index айнымалысын қалай жариялауға болады?
int index = 322741;
### Instruction: Java тілінде 322741 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 322741;
315,182
en
JavaScript
var_decl
beginner
How to declare a variable x with value 368269 in JavaScript?
let x = 368269;
### Instruction: How to declare a variable x with value 368269 in JavaScript? ### Response: let x = 368269;
571,578
ru
Unity
factorial
advanced
Напиши функцию на Unity, которая вычисляет факториал числа 5518.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(5518)); }
### Instruction: Напиши функцию на Unity, которая вычисляет факториал числа 5518. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(5518)); }
1,376,271
ru
JavaScript
var_decl
beginner
Как объявить переменную buffer со значением 57126 в JavaScript?
let buffer = 57126;
### Instruction: Как объявить переменную buffer со значением 57126 в JavaScript? ### Response: let buffer = 57126;
4,904,915
kk
JavaScript
var_decl
beginner
JavaScript тілінде 347925 мәнімен value айнымалысын қалай жариялауға болады?
let value = 347925;
### Instruction: JavaScript тілінде 347925 мәнімен value айнымалысын қалай жариялауға болады? ### Response: let value = 347925;
27,694,550
kk
C++
array_ops
intermediate
C++ тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: C++ тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
98,818,244
kk
C++
array_ops
intermediate
C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
615,095
kk
Python
var_decl
beginner
Python тілінде 387438 мәнімен offset айнымалысын қалай жариялауға болады?
offset = 387438
### Instruction: Python тілінде 387438 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: offset = 387438
55,812,419
kk
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; }
54,114,682
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,723,947
ru
Python
var_decl
beginner
Как объявить переменную data со значением 247101 в Python?
data = 247101
### Instruction: Как объявить переменную data со значением 247101 в Python? ### Response: data = 247101
765,496
kk
JavaScript
sum_n
intermediate
JavaScript тілінде 1-ден 2725-ге дейінгі сандардың қосындысын есептейтін функция жаз.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(2725));
### Instruction: JavaScript тілінде 1-ден 2725-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(2725));
43,715,706
en
Unity
string_ops
advanced
Write a function that converts a string to uppercase in Unity.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Unity. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
19,358,230
en
Java
logic_ops
intermediate
Write logic to check if the year 1968 is a leap year in Java.
public bool IsLeap() { int y = 1968; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1968 is a leap year in Java. ### Response: public bool IsLeap() { int y = 1968; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
76,657,859
kk
JavaScript
array_ops
intermediate
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
const reverseArr = arr => arr.reverse();
### Instruction: JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: const reverseArr = arr => arr.reverse();
336,519
en
C#
factorial
advanced
Write a function in C# that calculates the factorial of 9320.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(9320));
### Instruction: Write a function in C# that calculates the factorial of 9320. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(9320));