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
4,005,036
en
C#
var_decl
beginner
How to declare a variable result with value 676814 in C#?
int result = 676814;
### Instruction: How to declare a variable result with value 676814 in C#? ### Response: int result = 676814;
15,655,609
kk
Java
logic_ops
intermediate
Java тилінде 2061 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2061; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 2061 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2061; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
66,246,187
en
Java
array_ops
intermediate
Write a function that filters only even numbers from a list in 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: Write a function that filters only even numbers from a list in 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; }
1,959,661
en
C++
var_decl
beginner
How to declare a variable limit with value 879413 in C++?
int limit = 879413;
### Instruction: How to declare a variable limit with value 879413 in C++? ### Response: int limit = 879413;
409,699
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 8789.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8789));
### Instruction: Write a function in Java that sums numbers from 1 to 8789. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8789));
90,446,891
ru
Java
logic_ops
advanced
Напишите на Java функцию, определяющую, является ли число 145 простым.
public bool IsPrime() { int n = 145; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 145 простым. ### Response: public bool IsPrime() { int n = 145; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
381,854
ru
Python
factorial
advanced
Напиши функцию на Python, которая вычисляет факториал числа 6737.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(6737))
### Instruction: Напиши функцию на Python, которая вычисляет факториал числа 6737. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(6737))
62,747,006
en
Python
string_ops
intermediate
Write a function that checks if a string is a palindrome in Python.
def is_palindrome(s): return s == s[::-1]
### Instruction: Write a function that checks if a string is a palindrome in Python. ### Response: def is_palindrome(s): return s == s[::-1]
39,011,837
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; }
89,050,349
ru
C#
string_ops
advanced
Напишите на C# функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на C# функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
41,184,173
ru
JavaScript
logic_ops
advanced
Напишите на JavaScript логику проверки, является ли год 1930 високосным.
function isLeap() { let y = 1930; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 1930 високосным. ### Response: function isLeap() { let y = 1930; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
2,140,206
ru
C#
var_decl
beginner
Как объявить переменную result со значением 766536 в C#?
int result = 766536;
### Instruction: Как объявить переменную result со значением 766536 в C#? ### Response: int result = 766536;
1,479,014
en
Unity
var_decl
beginner
How to declare a variable timer with value 575400 in Unity?
int timer = 575400;
### Instruction: How to declare a variable timer with value 575400 in Unity? ### Response: int timer = 575400;
79,897,166
ru
C#
array_ops
intermediate
Напишите на C# функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на C# функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
3,277,319
kk
Unity
var_decl
beginner
Unity тілінде 393357 мәнімен score айнымалысын қалай жариялауға болады?
int score = 393357;
### Instruction: Unity тілінде 393357 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 393357;
3,717,640
kk
C#
var_decl
beginner
C# тілінде 288738 мәнімен index айнымалысын қалай жариялауға болады?
int index = 288738;
### Instruction: C# тілінде 288738 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 288738;
12,626,093
en
Python
array_ops
advanced
Write a function that finds the maximum number in an array in Python.
def get_max(arr): return max(arr)
### Instruction: Write a function that finds the maximum number in an array in Python. ### Response: def get_max(arr): return max(arr)
528,745
en
Java
var_decl
beginner
How to declare a variable amount with value 833735 in Java?
int amount = 833735;
### Instruction: How to declare a variable amount with value 833735 in Java? ### Response: int amount = 833735;
41,296,298
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript функцию, определяющую, является ли число 289 простым.
function isPrime() { let n = 289; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 289 простым. ### Response: function isPrime() { let n = 289; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
47,402,640
en
C#
logic_ops
advanced
Write logic to check if the year 2063 is a leap year in C#.
public bool IsLeap() { int y = 2063; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2063 is a leap year in C#. ### Response: public bool IsLeap() { int y = 2063; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
23,911,081
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;
697,741
en
JavaScript
var_decl
beginner
How to declare a variable level with value 672671 in JavaScript?
let level = 672671;
### Instruction: How to declare a variable level with value 672671 in JavaScript? ### Response: let level = 672671;
63,274,573
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; }
40,541,220
en
JavaScript
logic_ops
advanced
Write a function that determines if the number 175 is prime in JavaScript.
function isPrime() { let n = 175; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Write a function that determines if the number 175 is prime in JavaScript. ### Response: function isPrime() { let n = 175; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
85,351,299
kk
Java
string_ops
advanced
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
72,152,313
kk
Unity
array_ops
intermediate
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
44,889,716
kk
Unity
array_ops
intermediate
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
12,690,702
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); }
319,233
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 5042.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(5042));
### Instruction: Write a function in Java that sums numbers from 1 to 5042. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(5042));
82,423,100
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; }
4,156,850
kk
C#
var_decl
beginner
C# тілінде 578649 мәнімен index айнымалысын қалай жариялауға болады?
int index = 578649;
### Instruction: C# тілінде 578649 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 578649;
99,819,948
ru
C#
string_ops
advanced
Напишите на C# функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на C# функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
3,233,137
ru
Java
var_decl
beginner
Как объявить переменную rate со значением 973331 в Java?
int rate = 973331;
### Instruction: Как объявить переменную rate со значением 973331 в Java? ### Response: int rate = 973331;
727,895
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 825.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(825));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 825. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(825));
4,186,539
ru
Python
var_decl
beginner
Как объявить переменную amount со значением 322959 в Python?
amount = 322959
### Instruction: Как объявить переменную amount со значением 322959 в Python? ### Response: amount = 322959
693,237
ru
JavaScript
var_decl
beginner
Как объявить переменную x со значением 42024 в JavaScript?
let x = 42024;
### Instruction: Как объявить переменную x со значением 42024 в JavaScript? ### Response: let x = 42024;
55,185,745
en
C#
logic_ops
advanced
Write logic to check if the year 2063 is a leap year in C#.
public bool IsLeap() { int y = 2063; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2063 is a leap year in C#. ### Response: public bool IsLeap() { int y = 2063; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
74,599,339
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; }
2,885,079
ru
C++
var_decl
beginner
Как объявить переменную x со значением 194361 в C++?
int x = 194361;
### Instruction: Как объявить переменную x со значением 194361 в C++? ### Response: int x = 194361;
1,692,532
ru
JavaScript
var_decl
beginner
Как объявить переменную value со значением 754716 в JavaScript?
let value = 754716;
### Instruction: Как объявить переменную value со значением 754716 в JavaScript? ### Response: let value = 754716;
291,427
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 7189.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7189)); }
### Instruction: Write a function in Unity that calculates the factorial of 7189. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7189)); }
66,630,920
en
Python
logic_ops
advanced
Write a function that determines if the number 423 is prime in Python.
def is_prime(): n = 423 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 423 is prime in Python. ### Response: def is_prime(): n = 423 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
16,195,820
en
Python
array_ops
intermediate
Write a function that filters only even numbers from a list in Python.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Write a function that filters only even numbers from a list in Python. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
54,726,065
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; }
99,114,869
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; }
85,717,518
kk
C#
logic_ops
advanced
C# тилінде 169 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 169; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 169 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 169; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,830,604
en
JavaScript
var_decl
beginner
How to declare a variable value with value 502388 in JavaScript?
let value = 502388;
### Instruction: How to declare a variable value with value 502388 in JavaScript? ### Response: let value = 502388;
2,527,922
ru
Unity
var_decl
beginner
Как объявить переменную x со значением 497990 в Unity?
int x = 497990;
### Instruction: Как объявить переменную x со значением 497990 в Unity? ### Response: int x = 497990;
84,408,077
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('');
437,726
ru
C++
sum_n
intermediate
Напиши функцию на C++, которая считает сумму чисел от 1 до 9814.
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(9814) << std::endl;
### Instruction: Напиши функцию на C++, которая считает сумму чисел от 1 до 9814. ### 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(9814) << std::endl;
78,315,106
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
1,568,502
ru
Java
var_decl
beginner
Как объявить переменную health со значением 853390 в Java?
int health = 853390;
### Instruction: Как объявить переменную health со значением 853390 в Java? ### Response: int health = 853390;
28,278,947
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; }
165,501
ru
Unity
factorial
advanced
Напиши функцию на Unity, которая вычисляет факториал числа 7559.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7559)); }
### Instruction: Напиши функцию на Unity, которая вычисляет факториал числа 7559. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7559)); }
5,519
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 5072.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(5072))
### Instruction: Write a function in Python that sums numbers from 1 to 5072. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(5072))
42,413,792
kk
C#
logic_ops
advanced
C# тилінде 2063 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2063; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C# тилінде 2063 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2063; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
48,459,044
en
C#
string_ops
intermediate
Write a function that converts a string to uppercase in C#.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in C#. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
4,885,168
ru
Python
var_decl
beginner
Как объявить переменную count со значением 67298 в Python?
count = 67298
### Instruction: Как объявить переменную count со значением 67298 в Python? ### Response: count = 67298
44,774,987
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; }
86,652,589
en
JavaScript
string_ops
advanced
Write a function that converts a string to uppercase in JavaScript.
const toUpper = s => s.toUpperCase();
### Instruction: Write a function that converts a string to uppercase in JavaScript. ### Response: const toUpper = s => s.toUpperCase();
99,792,676
en
Python
logic_ops
intermediate
Write logic to check if the year 2030 is a leap year in Python.
def is_leap(): year = 2030 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2030 is a leap year in Python. ### Response: def is_leap(): year = 2030 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
2,116,995
ru
C++
var_decl
beginner
Как объявить переменную amount со значением 989206 в C++?
int amount = 989206;
### Instruction: Как объявить переменную amount со значением 989206 в C++? ### Response: int amount = 989206;
66,092,377
kk
C++
logic_ops
intermediate
C++ тилінде 1972 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1972; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1972 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1972; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
50,179,336
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(); }
80,720,987
en
Java
array_ops
advanced
Write a function that reverses a list in Java.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Java. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
285,565
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 6408.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(6408));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 6408. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(6408));
45,407,432
kk
Unity
array_ops
intermediate
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
1,073,534
ru
Unity
var_decl
beginner
Как объявить переменную total со значением 682156 в Unity?
int total = 682156;
### Instruction: Как объявить переменную total со значением 682156 в Unity? ### Response: int total = 682156;
57,954,791
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; }
15,249,629
en
Python
array_ops
intermediate
Write a function that finds the maximum number in an array in Python.
def get_max(arr): return max(arr)
### Instruction: Write a function that finds the maximum number in an array in Python. ### Response: def get_max(arr): return max(arr)
3,269,340
kk
Unity
var_decl
beginner
Unity тілінде 589275 мәнімен x айнымалысын қалай жариялауға болады?
int x = 589275;
### Instruction: Unity тілінде 589275 мәнімен x айнымалысын қалай жариялауға болады? ### Response: int x = 589275;
1,280,641
ru
JavaScript
var_decl
beginner
Как объявить переменную weight со значением 44746 в JavaScript?
let weight = 44746;
### Instruction: Как объявить переменную weight со значением 44746 в JavaScript? ### Response: let weight = 44746;
1,799,616
en
Java
var_decl
beginner
How to declare a variable limit with value 933949 in Java?
int limit = 933949;
### Instruction: How to declare a variable limit with value 933949 in Java? ### Response: int limit = 933949;
4,965,432
en
C++
var_decl
beginner
How to declare a variable limit with value 301682 in C++?
int limit = 301682;
### Instruction: How to declare a variable limit with value 301682 in C++? ### Response: int limit = 301682;
450,846
en
Python
var_decl
beginner
How to declare a variable health with value 504488 in Python?
health = 504488
### Instruction: How to declare a variable health with value 504488 in Python? ### Response: health = 504488
4,467,405
ru
Java
var_decl
beginner
Как объявить переменную x со значением 417060 в Java?
int x = 417060;
### Instruction: Как объявить переменную x со значением 417060 в Java? ### Response: int x = 417060;
26,116,599
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 436 простым.
public bool IsPrime() { int n = 436; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 436 простым. ### Response: public bool IsPrime() { int n = 436; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
297,058
ru
Java
sum_n
intermediate
Напиши функцию на Java, которая считает сумму чисел от 1 до 8163.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8163));
### Instruction: Напиши функцию на Java, которая считает сумму чисел от 1 до 8163. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8163));
135,910
kk
C++
factorial
advanced
C++ тілінде 9734 санының факториалын есептейтін функция жаз.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(9734) << std::endl;
### Instruction: C++ тілінде 9734 санының факториалын есептейтін функция жаз. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(9734) << std::endl;
57,867,826
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(); }
44,427,522
ru
Java
array_ops
advanced
Напишите на 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; }
836,713
en
JavaScript
var_decl
beginner
How to declare a variable score with value 890207 in JavaScript?
let score = 890207;
### Instruction: How to declare a variable score with value 890207 in JavaScript? ### Response: let score = 890207;
10,983,604
en
Java
string_ops
intermediate
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; }
86,313,899
ru
Python
logic_ops
advanced
Напишите на Python функцию, определяющую, является ли число 279 простым.
def is_prime(): n = 279 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 279 простым. ### Response: def is_prime(): n = 279 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
997,960
kk
Python
var_decl
beginner
Python тілінде 639392 мәнімен count айнымалысын қалай жариялауға болады?
count = 639392
### Instruction: Python тілінде 639392 мәнімен count айнымалысын қалай жариялауға болады? ### Response: count = 639392
37,877,681
en
Java
array_ops
advanced
Write a function that reverses a list in Java.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Java. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
1,315,032
ru
Python
var_decl
beginner
Как объявить переменную speed со значением 887303 в Python?
speed = 887303
### Instruction: Как объявить переменную speed со значением 887303 в Python? ### Response: speed = 887303
13,447,313
en
Python
string_ops
advanced
Write a function that converts a string to uppercase in Python.
def to_upper(s): return s.upper()
### Instruction: Write a function that converts a string to uppercase in Python. ### Response: def to_upper(s): return s.upper()
44,170,648
ru
Java
logic_ops
advanced
Напишите на Java функцию, определяющую, является ли число 418 простым.
public bool IsPrime() { int n = 418; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 418 простым. ### Response: public bool IsPrime() { int n = 418; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,419,758
ru
C#
var_decl
beginner
Как объявить переменную timer со значением 852757 в C#?
int timer = 852757;
### Instruction: Как объявить переменную timer со значением 852757 в C#? ### Response: int timer = 852757;
38,804,301
ru
Python
array_ops
advanced
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
4,346,883
ru
C++
var_decl
beginner
Как объявить переменную weight со значением 740150 в C++?
int weight = 740150;
### Instruction: Как объявить переменную weight со значением 740150 в C++? ### Response: int weight = 740150;
31,770,527
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); }
2,828,146
en
JavaScript
var_decl
beginner
How to declare a variable score with value 674379 in JavaScript?
let score = 674379;
### Instruction: How to declare a variable score with value 674379 in JavaScript? ### Response: let score = 674379;
52,887,337
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; }
4,107,711
ru
C#
var_decl
beginner
Как объявить переменную value со значением 33796 в C#?
int value = 33796;
### Instruction: Как объявить переменную value со значением 33796 в C#? ### Response: int value = 33796;
2,184,195
ru
JavaScript
var_decl
beginner
Как объявить переменную value со значением 460599 в JavaScript?
let value = 460599;
### Instruction: Как объявить переменную value со значением 460599 в JavaScript? ### Response: let value = 460599;
1,199,385
kk
C#
var_decl
beginner
C# тілінде 600431 мәнімен health айнымалысын қалай жариялауға болады?
int health = 600431;
### Instruction: C# тілінде 600431 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 600431;
3,296,779
en
JavaScript
var_decl
beginner
How to declare a variable amount with value 354487 in JavaScript?
let amount = 354487;
### Instruction: How to declare a variable amount with value 354487 in JavaScript? ### Response: let amount = 354487;
3,323,339
en
Unity
var_decl
beginner
How to declare a variable data with value 230079 in Unity?
int data = 230079;
### Instruction: How to declare a variable data with value 230079 in Unity? ### Response: int data = 230079;