id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
2,467,572 | kk | Python | var_decl | beginner | Python тілінде 718741 мәнімен weight айнымалысын қалай жариялауға болады? | weight = 718741 | ### Instruction:
Python тілінде 718741 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
weight = 718741 |
3,993,574 | kk | Java | var_decl | beginner | Java тілінде 556598 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 556598; | ### Instruction:
Java тілінде 556598 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 556598; |
57,191,298 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 1917 високосным. | public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1917 високосным.
### Response:
public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
18,252,565 | kk | Unity | logic_ops | advanced | Unity тилінде 43 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 43;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 43 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 43;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,205,291 | kk | C# | var_decl | beginner | C# тілінде 428402 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 428402; | ### Instruction:
C# тілінде 428402 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 428402; |
43,356,915 | ru | Java | logic_ops | intermediate | Напишите на Java функцию, определяющую, является ли число 82 простым. | public bool IsPrime() {
int n = 82;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 82 простым.
### Response:
public bool IsPrime() {
int n = 82;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
76,787,433 | 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();
} |
85,367,291 | 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;
} |
743,285 | kk | C++ | var_decl | beginner | C++ тілінде 569963 мәнімен result айнымалысын қалай жариялауға болады? | int result = 569963; | ### Instruction:
C++ тілінде 569963 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 569963; |
34,613,119 | 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();
} |
39,578,743 | kk | 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);
} |
46,090,653 | kk | C# | logic_ops | advanced | C# тилінде 2022 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2022;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 2022 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2022;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
53,453 | ru | C# | var_decl | beginner | Как объявить переменную data со значением 717763 в C#? | int data = 717763; | ### Instruction:
Как объявить переменную data со значением 717763 в C#?
### Response:
int data = 717763; |
59,005,656 | 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;
} |
47,418,020 | ru | C++ | array_ops | advanced | Напишите на C++ функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на C++ функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
94,259 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 4510. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(4510)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 4510.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(4510)); |
95,304 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 7520-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(7520));
} | ### Instruction:
Unity тілінде 1-ден 7520-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(7520));
} |
14,697,731 | ru | Unity | array_ops | advanced | Напишите на 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;
} |
411,618 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 787. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(787)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 787.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(787)); |
97,425,791 | 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();
} |
185,653 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 2864. | 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(2864) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 2864.
### 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(2864) << std::endl; |
1,736,946 | kk | Python | var_decl | beginner | Python тілінде 832672 мәнімен limit айнымалысын қалай жариялауға болады? | limit = 832672 | ### Instruction:
Python тілінде 832672 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
limit = 832672 |
2,573,932 | ru | Python | var_decl | beginner | Как объявить переменную total со значением 118216 в Python? | total = 118216 | ### Instruction:
Как объявить переменную total со значением 118216 в Python?
### Response:
total = 118216 |
24,759,094 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 2096 високосным. | function isLeap() {
let y = 2096;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 2096 високосным.
### Response:
function isLeap() {
let y = 2096;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
21,899,297 | ru | C# | array_ops | intermediate | Напишите на C# функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на C# функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
12,077,443 | ru | Unity | array_ops | advanced | Напишите на 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;
} |
3,463,558 | en | Unity | var_decl | beginner | How to declare a variable weight with value 401578 in Unity? | int weight = 401578; | ### Instruction:
How to declare a variable weight with value 401578 in Unity?
### Response:
int weight = 401578; |
67,117,761 | 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;
} |
152,712 | ru | C++ | factorial | advanced | Напиши функцию на C++, которая вычисляет факториал числа 7408. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(7408) << std::endl; | ### Instruction:
Напиши функцию на C++, которая вычисляет факториал числа 7408.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(7408) << std::endl; |
85,562,394 | ru | 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;
} |
52,477 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 4101. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(4101));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 4101.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(4101));
} |
59,547,430 | 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);
} |
3,131,569 | en | Unity | var_decl | beginner | How to declare a variable total with value 383329 in Unity? | int total = 383329; | ### Instruction:
How to declare a variable total with value 383329 in Unity?
### Response:
int total = 383329; |
4,513,888 | ru | C++ | var_decl | beginner | Как объявить переменную index со значением 90667 в C++? | int index = 90667; | ### Instruction:
Как объявить переменную index со значением 90667 в C++?
### Response:
int index = 90667; |
4,553,196 | ru | C++ | var_decl | beginner | Как объявить переменную index со значением 842741 в C++? | int index = 842741; | ### Instruction:
Как объявить переменную index со значением 842741 в C++?
### Response:
int index = 842741; |
87,268,978 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
898,058 | en | Java | var_decl | beginner | How to declare a variable score with value 59931 in Java? | int score = 59931; | ### Instruction:
How to declare a variable score with value 59931 in Java?
### Response:
int score = 59931; |
2,538,376 | kk | C++ | var_decl | beginner | C++ тілінде 452527 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 452527; | ### Instruction:
C++ тілінде 452527 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 452527; |
86,072,048 | 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;
} |
58,071,922 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
3,273,305 | en | Unity | var_decl | beginner | How to declare a variable data with value 863445 in Unity? | int data = 863445; | ### Instruction:
How to declare a variable data with value 863445 in Unity?
### Response:
int data = 863445; |
20,629,687 | en | JavaScript | array_ops | advanced | Write a function that reverses a list in JavaScript. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Write a function that reverses a list in JavaScript.
### Response:
const reverseArr = arr => arr.reverse(); |
39,152,258 | 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);
} |
47,531,423 | en | JavaScript | string_ops | advanced | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
30,710,106 | 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();
} |
3,418,063 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 434982 мәнімен offset айнымалысын қалай жариялауға болады? | let offset = 434982; | ### Instruction:
JavaScript тілінде 434982 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
let offset = 434982; |
3,438,232 | ru | C# | var_decl | beginner | Как объявить переменную weight со значением 303916 в C#? | int weight = 303916; | ### Instruction:
Как объявить переменную weight со значением 303916 в C#?
### Response:
int weight = 303916; |
22,594 | en | C++ | var_decl | beginner | How to declare a variable level with value 930957 in C++? | int level = 930957; | ### Instruction:
How to declare a variable level with value 930957 in C++?
### Response:
int level = 930957; |
44,830,765 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 7 простым. | public bool IsPrime() {
int n = 7;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 7 простым.
### Response:
public bool IsPrime() {
int n = 7;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
266,445 | kk | C# | factorial | advanced | C# тілінде 6787 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(6787)); | ### Instruction:
C# тілінде 6787 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(6787)); |
80,825,440 | 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;
} |
4,391,230 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 39944 мәнімен weight айнымалысын қалай жариялауға болады? | let weight = 39944; | ### Instruction:
JavaScript тілінде 39944 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
let weight = 39944; |
45,230,061 | kk | C++ | logic_ops | intermediate | C++ тилінде 2039 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2039;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2039 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2039;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
705,070 | ru | JavaScript | var_decl | beginner | Как объявить переменную level со значением 303197 в JavaScript? | let level = 303197; | ### Instruction:
Как объявить переменную level со значением 303197 в JavaScript?
### Response:
let level = 303197; |
76,889 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 2194. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(2194) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 2194.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(2194) << std::endl; |
14,915,419 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 182 is prime in C++. | public bool IsPrime() {
int n = 182;
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 182 is prime in C++.
### Response:
public bool IsPrime() {
int n = 182;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,760,407 | kk | Java | var_decl | beginner | Java тілінде 326230 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 326230; | ### Instruction:
Java тілінде 326230 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 326230; |
44,352,986 | en | Java | array_ops | advanced | Write a function that finds the maximum number in an array in Java. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in Java.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
44,002,174 | kk | Unity | array_ops | advanced | Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
196,630 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 3226. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(3226));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 3226.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(3226));
} |
2,528,432 | kk | Unity | var_decl | beginner | Unity тілінде 645816 мәнімен data айнымалысын қалай жариялауға болады? | int data = 645816; | ### Instruction:
Unity тілінде 645816 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 645816; |
49,916,227 | ru | 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] |
32,075,355 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
58,787,289 | ru | Unity | logic_ops | advanced | Напишите на Unity функцию, определяющую, является ли число 262 простым. | public bool IsPrime() {
int n = 262;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 262 простым.
### Response:
public bool IsPrime() {
int n = 262;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
373,880 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 8626. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8626)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 8626.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8626)); |
87,457,861 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 226 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 226;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 226 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 226;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
97,410,182 | en | JavaScript | array_ops | intermediate | Write a function that finds the maximum number in an array in JavaScript. | const getMax = arr => Math.max(...arr); | ### Instruction:
Write a function that finds the maximum number in an array in JavaScript.
### Response:
const getMax = arr => Math.max(...arr); |
14,544,990 | 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);
} |
23,836,969 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1944 is a leap year in JavaScript. | function isLeap() {
let y = 1944;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1944 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1944;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
97,240,941 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая фильтрует только четные числа из списка. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Напишите на Python функцию, которая фильтрует только четные числа из списка.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
13,670,798 | kk | Python | logic_ops | advanced | Python тилінде 1940 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1940
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1940 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1940
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
63,526,853 | kk | C# | array_ops | advanced | C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
37,739,144 | en | C# | string_ops | advanced | 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();
} |
1,932,891 | ru | JavaScript | var_decl | beginner | Как объявить переменную buffer со значением 307233 в JavaScript? | let buffer = 307233; | ### Instruction:
Как объявить переменную buffer со значением 307233 в JavaScript?
### Response:
let buffer = 307233; |
770,966 | en | C# | var_decl | beginner | How to declare a variable value with value 706475 in C#? | int value = 706475; | ### Instruction:
How to declare a variable value with value 706475 in C#?
### Response:
int value = 706475; |
23,012,038 | en | Java | logic_ops | advanced | Write logic to check if the year 2048 is a leap year in Java. | public bool IsLeap() {
int y = 2048;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2048 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2048;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
13,789 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 8035. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8035)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 8035.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8035)); |
79,293,229 | 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);
} |
67,476,613 | kk | Java | logic_ops | advanced | Java тилінде 1986 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1986;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1986 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1986;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
143,082 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 5237. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(5237)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 5237.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(5237)); |
89,452,805 | 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;
} |
46,156,385 | 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);
} |
4,653,583 | en | C# | var_decl | beginner | How to declare a variable score with value 953997 in C#? | int score = 953997; | ### Instruction:
How to declare a variable score with value 953997 in C#?
### Response:
int score = 953997; |
54,243,636 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 1955 високосным. | def is_leap():
year = 1955
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1955 високосным.
### Response:
def is_leap():
year = 1955
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
2,456,951 | en | Unity | var_decl | beginner | How to declare a variable offset with value 983979 in Unity? | int offset = 983979; | ### Instruction:
How to declare a variable offset with value 983979 in Unity?
### Response:
int offset = 983979; |
94,095,209 | en | Python | string_ops | intermediate | 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() |
1,792,541 | ru | Unity | var_decl | beginner | Как объявить переменную y со значением 209928 в Unity? | int y = 209928; | ### Instruction:
Как объявить переменную y со значением 209928 в Unity?
### Response:
int y = 209928; |
1,924,566 | kk | Python | var_decl | beginner | Python тілінде 160046 мәнімен total айнымалысын қалай жариялауға болады? | total = 160046 | ### Instruction:
Python тілінде 160046 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
total = 160046 |
66,152,926 | kk | Python | logic_ops | intermediate | Python тилінде 1964 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1964
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1964 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1964
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
962,862 | kk | Java | var_decl | beginner | Java тілінде 900286 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 900286; | ### Instruction:
Java тілінде 900286 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 900286; |
4,530,912 | en | C# | var_decl | beginner | How to declare a variable index with value 585065 in C#? | int index = 585065; | ### Instruction:
How to declare a variable index with value 585065 in C#?
### Response:
int index = 585065; |
61,202,601 | kk | 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аеёиоуыэюя') |
19,923,589 | 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);
} |
69,108,035 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 446 простым. | public bool IsPrime() {
int n = 446;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 446 простым.
### Response:
public bool IsPrime() {
int n = 446;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
27,097,484 | 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);
} |
78,757,344 | kk | Python | logic_ops | intermediate | Python тилінде 470 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 470
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 470 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 470
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
646,861 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 8581. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8581)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 8581.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8581)); |
27,320,535 | kk | C++ | logic_ops | advanced | C++ тилінде 2081 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2081;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2081 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2081;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
59,880,575 | en | C++ | logic_ops | advanced | Write a function that determines if the number 267 is prime in C++. | public bool IsPrime() {
int n = 267;
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 267 is prime in C++.
### Response:
public bool IsPrime() {
int n = 267;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,191,598 | kk | C++ | var_decl | beginner | C++ тілінде 803173 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 803173; | ### Instruction:
C++ тілінде 803173 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 803173; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.