id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
53,886,444 | en | C++ | logic_ops | advanced | Write logic to check if the year 1934 is a leap year in C++. | public bool IsLeap() {
int y = 1934;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1934 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 1934;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
88,906,532 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая считает количество гласных букв в тексте. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Напишите на Python функцию, которая считает количество гласных букв в тексте.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
60,949,261 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1926 is a leap year in JavaScript. | function isLeap() {
let y = 1926;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1926 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1926;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
72,712,845 | 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;
} |
39,636 | kk | Unity | factorial | advanced | Unity тілінде 450 санының факториалын есептейтін функция жаз. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(450));
} | ### Instruction:
Unity тілінде 450 санының факториалын есептейтін функция жаз.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(450));
} |
3,822,846 | kk | Java | var_decl | beginner | Java тілінде 108078 мәнімен value айнымалысын қалай жариялауға болады? | int value = 108078; | ### Instruction:
Java тілінде 108078 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 108078; |
1,444,693 | kk | C# | var_decl | beginner | C# тілінде 805244 мәнімен health айнымалысын қалай жариялауға болады? | int health = 805244; | ### Instruction:
C# тілінде 805244 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 805244; |
4,190,393 | kk | C++ | var_decl | beginner | C++ тілінде 693606 мәнімен x айнымалысын қалай жариялауға болады? | int x = 693606; | ### Instruction:
C++ тілінде 693606 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 693606; |
72,823,982 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 486 простым. | public bool IsPrime() {
int n = 486;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 486 простым.
### Response:
public bool IsPrime() {
int n = 486;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
957,383 | en | Java | var_decl | beginner | How to declare a variable score with value 857268 in Java? | int score = 857268; | ### Instruction:
How to declare a variable score with value 857268 in Java?
### Response:
int score = 857268; |
16,828,996 | 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;
} |
1,213,764 | en | JavaScript | var_decl | beginner | How to declare a variable limit with value 590988 in JavaScript? | let limit = 590988; | ### Instruction:
How to declare a variable limit with value 590988 in JavaScript?
### Response:
let limit = 590988; |
15,374,229 | 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();
} |
64,489,591 | 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;
} |
68,868,286 | kk | Java | string_ops | intermediate | Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
428,111 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 4093. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4093)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 4093.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4093)); |
326,640 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 3365. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(3365)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 3365.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(3365)); |
3,111,883 | en | C++ | var_decl | beginner | How to declare a variable timer with value 424813 in C++? | int timer = 424813; | ### Instruction:
How to declare a variable timer with value 424813 in C++?
### Response:
int timer = 424813; |
25,238,765 | 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;
} |
34,715,826 | 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(''); |
88,053,018 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
48,051,310 | 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;
} |
67,015,851 | kk | C# | logic_ops | intermediate | C# тилінде 1930 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1930;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1930 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1930;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,950,224 | kk | Java | var_decl | beginner | Java тілінде 492868 мәнімен health айнымалысын қалай жариялауға болады? | int health = 492868; | ### Instruction:
Java тілінде 492868 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 492868; |
20,609,832 | ru | C++ | array_ops | advanced | Напишите на C++ функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на C++ функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
2,016,373 | kk | Python | var_decl | beginner | Python тілінде 37473 мәнімен x айнымалысын қалай жариялауға болады? | x = 37473 | ### Instruction:
Python тілінде 37473 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
x = 37473 |
28,129,743 | kk | Java | string_ops | advanced | 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;
} |
61,447,224 | kk | Unity | string_ops | intermediate | Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
77,585,194 | en | C++ | string_ops | advanced | Write a function that checks if a string is a palindrome in C++. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in C++.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
1,065,157 | en | Java | var_decl | beginner | How to declare a variable data with value 809496 in Java? | int data = 809496; | ### Instruction:
How to declare a variable data with value 809496 in Java?
### Response:
int data = 809496; |
94,587,012 | kk | C# | string_ops | advanced | C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
32,632,181 | ru | Java | logic_ops | intermediate | Напишите на Java логику проверки, является ли год 2074 високосным. | public bool IsLeap() {
int y = 2074;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2074 високосным.
### Response:
public bool IsLeap() {
int y = 2074;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,514,069 | kk | Java | var_decl | beginner | Java тілінде 850367 мәнімен level айнымалысын қалай жариялауға болады? | int level = 850367; | ### Instruction:
Java тілінде 850367 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 850367; |
4,957,344 | kk | C++ | var_decl | beginner | C++ тілінде 367886 мәнімен value айнымалысын қалай жариялауға болады? | int value = 367886; | ### Instruction:
C++ тілінде 367886 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 367886; |
245,097 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 1479. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1479)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 1479.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1479)); |
41,588,918 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
2,441,526 | ru | C++ | var_decl | beginner | Как объявить переменную speed со значением 571106 в C++? | int speed = 571106; | ### Instruction:
Как объявить переменную speed со значением 571106 в C++?
### Response:
int speed = 571106; |
1,298,177 | kk | Java | var_decl | beginner | Java тілінде 825499 мәнімен total айнымалысын қалай жариялауға болады? | int total = 825499; | ### Instruction:
Java тілінде 825499 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 825499; |
82,813,733 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
1,950,702 | en | Unity | var_decl | beginner | How to declare a variable buffer with value 30933 in Unity? | int buffer = 30933; | ### Instruction:
How to declare a variable buffer with value 30933 in Unity?
### Response:
int buffer = 30933; |
33,198,948 | kk | C++ | logic_ops | advanced | C++ тилінде 391 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 391;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 391 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 391;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
98,375,945 | en | Java | string_ops | intermediate | Write a function that converts a string to uppercase in Java. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Java.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
31,209,455 | 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;
} |
11,295,206 | kk | Python | array_ops | advanced | Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
119,332 | kk | C# | sum_n | intermediate | C# тілінде 1-ден 5239-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(5239)); | ### Instruction:
C# тілінде 1-ден 5239-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(5239)); |
92,826,954 | 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;
} |
89,075,064 | ru | Unity | string_ops | advanced | Напишите на Unity функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Unity функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
1,741,102 | ru | Unity | var_decl | beginner | Как объявить переменную limit со значением 244346 в Unity? | int limit = 244346; | ### Instruction:
Как объявить переменную limit со значением 244346 в Unity?
### Response:
int limit = 244346; |
19,256,777 | 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;
} |
2,529,137 | ru | JavaScript | var_decl | beginner | Как объявить переменную size со значением 824113 в JavaScript? | let size = 824113; | ### Instruction:
Как объявить переменную size со значением 824113 в JavaScript?
### Response:
let size = 824113; |
67,332,026 | 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;
} |
35,078,155 | ru | 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);
} |
50,569,097 | kk | Python | string_ops | intermediate | Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
def is_palindrome(s):
return s == s[::-1] |
53,668,277 | ru | C# | string_ops | advanced | Напишите на C# функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на C# функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
467,518 | kk | C++ | factorial | advanced | C++ тілінде 5189 санының факториалын есептейтін функция жаз. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(5189) << std::endl; | ### Instruction:
C++ тілінде 5189 санының факториалын есептейтін функция жаз.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(5189) << std::endl; |
39,124,457 | ru | Java | array_ops | advanced | Напишите на Java функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Java функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
27,177,287 | 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);
} |
99,085,573 | 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) |
88,543,104 | kk | Java | string_ops | advanced | 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;
} |
2,044,013 | kk | Unity | var_decl | beginner | Unity тілінде 392135 мәнімен level айнымалысын қалай жариялауға болады? | int level = 392135; | ### Instruction:
Unity тілінде 392135 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 392135; |
585,399 | ru | C++ | var_decl | beginner | Как объявить переменную score со значением 449624 в C++? | int score = 449624; | ### Instruction:
Как объявить переменную score со значением 449624 в C++?
### Response:
int score = 449624; |
4,493,677 | kk | C# | var_decl | beginner | C# тілінде 673146 мәнімен health айнымалысын қалай жариялауға болады? | int health = 673146; | ### Instruction:
C# тілінде 673146 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 673146; |
3,112,596 | ru | Unity | var_decl | beginner | Как объявить переменную data со значением 599906 в Unity? | int data = 599906; | ### Instruction:
Как объявить переменную data со значением 599906 в Unity?
### Response:
int data = 599906; |
793,076 | en | Unity | var_decl | beginner | How to declare a variable speed with value 258909 in Unity? | int speed = 258909; | ### Instruction:
How to declare a variable speed with value 258909 in Unity?
### Response:
int speed = 258909; |
73,992,726 | 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;
} |
221,624 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 162. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(162)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 162.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(162)); |
29,258,285 | kk | 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;
} |
1,881,109 | ru | JavaScript | var_decl | beginner | Как объявить переменную x со значением 646818 в JavaScript? | let x = 646818; | ### Instruction:
Как объявить переменную x со значением 646818 в JavaScript?
### Response:
let x = 646818; |
60,976,127 | kk | Unity | logic_ops | intermediate | Unity тилінде 2015 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2015;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2015 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2015;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
61,555,678 | en | Unity | array_ops | intermediate | Write a function that filters only even numbers from a list in 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:
Write a function that filters only even numbers from a list in 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;
} |
1,489,049 | en | Unity | var_decl | beginner | How to declare a variable size with value 18647 in Unity? | int size = 18647; | ### Instruction:
How to declare a variable size with value 18647 in Unity?
### Response:
int size = 18647; |
77,385,221 | 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;
} |
30,535,919 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 377 простым. | def is_prime():
n = 377
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 377 простым.
### Response:
def is_prime():
n = 377
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
91,113,204 | 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();
} |
2,745,700 | en | Java | var_decl | beginner | How to declare a variable timer with value 646619 in Java? | int timer = 646619; | ### Instruction:
How to declare a variable timer with value 646619 in Java?
### Response:
int timer = 646619; |
65,382,757 | ru | 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);
} |
96,155,591 | 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;
} |
91,198,181 | kk | Python | array_ops | intermediate | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
71,891,199 | 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;
} |
1,957,952 | en | Python | var_decl | beginner | How to declare a variable result with value 783168 in Python? | result = 783168 | ### Instruction:
How to declare a variable result with value 783168 in Python?
### Response:
result = 783168 |
94,230,670 | en | Python | string_ops | advanced | 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] |
59,492,241 | en | Unity | array_ops | intermediate | Write a function that filters only even numbers from a list in 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:
Write a function that filters only even numbers from a list in 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;
} |
2,765,917 | kk | Java | var_decl | beginner | Java тілінде 437762 мәнімен health айнымалысын қалай жариялауға болады? | int health = 437762; | ### Instruction:
Java тілінде 437762 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 437762; |
70,242,900 | ru | Unity | string_ops | advanced | Напишите на Unity функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Unity функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
4,564,997 | ru | Java | var_decl | beginner | Как объявить переменную score со значением 213183 в Java? | int score = 213183; | ### Instruction:
Как объявить переменную score со значением 213183 в Java?
### Response:
int score = 213183; |
59,611,130 | en | Unity | string_ops | intermediate | Write a function that checks if a string is a palindrome in 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:
Write a function that checks if a string is a palindrome in 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;
} |
2,964,067 | ru | C++ | var_decl | beginner | Как объявить переменную index со значением 706118 в C++? | int index = 706118; | ### Instruction:
Как объявить переменную index со значением 706118 в C++?
### Response:
int index = 706118; |
3,838,407 | ru | C# | var_decl | beginner | Как объявить переменную weight со значением 362009 в C#? | int weight = 362009; | ### Instruction:
Как объявить переменную weight со значением 362009 в C#?
### Response:
int weight = 362009; |
99,073,192 | kk | Unity | logic_ops | advanced | Unity тилінде 1935 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1935;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1935 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1935;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,380,698 | ru | C# | var_decl | beginner | Как объявить переменную speed со значением 68879 в C#? | int speed = 68879; | ### Instruction:
Как объявить переменную speed со значением 68879 в C#?
### Response:
int speed = 68879; |
91,725,516 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
4,258,362 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 799218 мәнімен result айнымалысын қалай жариялауға болады? | let result = 799218; | ### Instruction:
JavaScript тілінде 799218 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
let result = 799218; |
33,841,584 | kk | Python | string_ops | intermediate | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
48,882,207 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
937,577 | en | JavaScript | var_decl | beginner | How to declare a variable timer with value 742653 in JavaScript? | let timer = 742653; | ### Instruction:
How to declare a variable timer with value 742653 in JavaScript?
### Response:
let timer = 742653; |
36,942,207 | ru | Unity | string_ops | intermediate | Напишите на Unity функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Unity функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
84,940,025 | 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;
} |
24,647,318 | 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; |
91,870,359 | en | Java | logic_ops | intermediate | Write a function that determines if the number 410 is prime in Java. | public bool IsPrime() {
int n = 410;
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 410 is prime in Java.
### Response:
public bool IsPrime() {
int n = 410;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
84,104,368 | 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();
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.