id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
52,466,662 | kk | Unity | logic_ops | intermediate | Unity тилінде 481 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 481;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 481 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 481;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
73,705,881 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
13,405,740 | ru | Java | logic_ops | intermediate | Напишите на Java функцию, определяющую, является ли число 170 простым. | public bool IsPrime() {
int n = 170;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 170 простым.
### Response:
public bool IsPrime() {
int n = 170;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
235,633 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 4241-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(4241));
} | ### Instruction:
Unity тілінде 1-ден 4241-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(4241));
} |
2,491,521 | kk | Java | var_decl | beginner | Java тілінде 179610 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 179610; | ### Instruction:
Java тілінде 179610 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 179610; |
50,968,456 | kk | C++ | logic_ops | advanced | C++ тилінде 1990 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1990;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1990 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1990;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
41,002,724 | 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аеёиоуыэюя') |
3,566,353 | kk | Python | var_decl | beginner | Python тілінде 852553 мәнімен index айнымалысын қалай жариялауға болады? | index = 852553 | ### Instruction:
Python тілінде 852553 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
index = 852553 |
1,978,409 | kk | C# | var_decl | beginner | C# тілінде 983711 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 983711; | ### Instruction:
C# тілінде 983711 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 983711; |
2,414,596 | en | JavaScript | var_decl | beginner | How to declare a variable score with value 722557 in JavaScript? | let score = 722557; | ### Instruction:
How to declare a variable score with value 722557 in JavaScript?
### Response:
let score = 722557; |
87,570,484 | kk | Unity | string_ops | intermediate | Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
4,097,260 | en | JavaScript | var_decl | beginner | How to declare a variable health with value 422482 in JavaScript? | let health = 422482; | ### Instruction:
How to declare a variable health with value 422482 in JavaScript?
### Response:
let health = 422482; |
253,732 | en | C# | sum_n | intermediate | Write a function in C# that sums numbers from 1 to 1052. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(1052)); | ### Instruction:
Write a function in C# that sums numbers from 1 to 1052.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(1052)); |
26,733,450 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 313 простым. | def is_prime():
n = 313
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 313 простым.
### Response:
def is_prime():
n = 313
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
2,812,957 | ru | Java | var_decl | beginner | Как объявить переменную health со значением 147530 в Java? | int health = 147530; | ### Instruction:
Как объявить переменную health со значением 147530 в Java?
### Response:
int health = 147530; |
2,779,972 | en | Java | var_decl | beginner | How to declare a variable data with value 497913 in Java? | int data = 497913; | ### Instruction:
How to declare a variable data with value 497913 in Java?
### Response:
int data = 497913; |
36,864,437 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 307 простым. | public bool IsPrime() {
int n = 307;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 307 простым.
### Response:
public bool IsPrime() {
int n = 307;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
96,804,527 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript функцию, определяющую, является ли число 72 простым. | function isPrime() {
let n = 72;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 72 простым.
### Response:
function isPrime() {
let n = 72;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
37,792,825 | 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;
} |
780,537 | kk | Java | var_decl | beginner | Java тілінде 764223 мәнімен count айнымалысын қалай жариялауға болады? | int count = 764223; | ### Instruction:
Java тілінде 764223 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 764223; |
89,428,838 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 159 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 159;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 159 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 159;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
1,151,599 | en | JavaScript | var_decl | beginner | How to declare a variable score with value 685368 in JavaScript? | let score = 685368; | ### Instruction:
How to declare a variable score with value 685368 in JavaScript?
### Response:
let score = 685368; |
81,501 | kk | C++ | sum_n | intermediate | C++ тілінде 1-ден 8682-ге дейінгі сандардың қосындысын есептейтін функция жаз. | 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(8682) << std::endl; | ### Instruction:
C++ тілінде 1-ден 8682-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### 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(8682) << std::endl; |
1,338,866 | en | C++ | var_decl | beginner | How to declare a variable speed with value 58902 in C++? | int speed = 58902; | ### Instruction:
How to declare a variable speed with value 58902 in C++?
### Response:
int speed = 58902; |
28,812,326 | 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;
} |
30,006,489 | kk | Java | logic_ops | advanced | Java тилінде 137 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 137;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 137 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 137;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,695,754 | kk | Unity | var_decl | beginner | Unity тілінде 28587 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 28587; | ### Instruction:
Unity тілінде 28587 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 28587; |
1,998,534 | ru | C++ | var_decl | beginner | Как объявить переменную value со значением 897061 в C++? | int value = 897061; | ### Instruction:
Как объявить переменную value со значением 897061 в C++?
### Response:
int value = 897061; |
108,485 | kk | Java | factorial | advanced | Java тілінде 3715 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(3715)); | ### Instruction:
Java тілінде 3715 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(3715)); |
93,118,685 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 1956 високосным. | def is_leap():
year = 1956
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1956 високосным.
### Response:
def is_leap():
year = 1956
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
30,698,853 | 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(''); |
43,691,353 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 295 простым. | def is_prime():
n = 295
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 295 простым.
### Response:
def is_prime():
n = 295
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
1,224,384 | ru | JavaScript | var_decl | beginner | Как объявить переменную size со значением 974721 в JavaScript? | let size = 974721; | ### Instruction:
Как объявить переменную size со значением 974721 в JavaScript?
### Response:
let size = 974721; |
72,321,438 | kk | Java | logic_ops | advanced | Java тилінде 1998 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1998;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1998 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1998;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,450,647 | kk | C# | var_decl | beginner | C# тілінде 924853 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 924853; | ### Instruction:
C# тілінде 924853 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 924853; |
74,163,032 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1913 високосным. | function isLeap() {
let y = 1913;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1913 високосным.
### Response:
function isLeap() {
let y = 1913;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
28,198,225 | en | C# | logic_ops | advanced | Write logic to check if the year 1951 is a leap year in C#. | public bool IsLeap() {
int y = 1951;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1951 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 1951;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
883,281 | en | Unity | var_decl | beginner | How to declare a variable offset with value 233754 in Unity? | int offset = 233754; | ### Instruction:
How to declare a variable offset with value 233754 in Unity?
### Response:
int offset = 233754; |
16,148,846 | kk | Java | logic_ops | advanced | Java тилінде 1951 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1951;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1951 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1951;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,718,310 | en | C# | var_decl | beginner | How to declare a variable amount with value 981840 in C#? | int amount = 981840; | ### Instruction:
How to declare a variable amount with value 981840 in C#?
### Response:
int amount = 981840; |
4,856,422 | en | JavaScript | var_decl | beginner | How to declare a variable total with value 141596 in JavaScript? | let total = 141596; | ### Instruction:
How to declare a variable total with value 141596 in JavaScript?
### Response:
let total = 141596; |
96,066,706 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 335 is prime in C++. | public bool IsPrime() {
int n = 335;
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 335 is prime in C++.
### Response:
public bool IsPrime() {
int n = 335;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
7,431 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 4399-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(4399)) | ### Instruction:
Python тілінде 1-ден 4399-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(4399)) |
86,856,041 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
3,343,264 | ru | JavaScript | var_decl | beginner | Как объявить переменную limit со значением 772933 в JavaScript? | let limit = 772933; | ### Instruction:
Как объявить переменную limit со значением 772933 в JavaScript?
### Response:
let limit = 772933; |
2,708,054 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 667385 мәнімен speed айнымалысын қалай жариялауға болады? | let speed = 667385; | ### Instruction:
JavaScript тілінде 667385 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
let speed = 667385; |
36,079,793 | kk | C# | string_ops | advanced | C# тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
C# тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
1,906,138 | kk | Python | var_decl | beginner | Python тілінде 245953 мәнімен weight айнымалысын қалай жариялауға болады? | weight = 245953 | ### Instruction:
Python тілінде 245953 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
weight = 245953 |
80,825,876 | 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();
} |
92,433,077 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 74 is prime in C++. | public bool IsPrime() {
int n = 74;
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 74 is prime in C++.
### Response:
public bool IsPrime() {
int n = 74;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
62,381,595 | 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);
} |
733,716 | kk | C# | sum_n | intermediate | C# тілінде 1-ден 1535-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(1535)); | ### Instruction:
C# тілінде 1-ден 1535-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(1535)); |
89,370,176 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript функцию, определяющую, является ли число 442 простым. | function isPrime() {
let n = 442;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 442 простым.
### Response:
function isPrime() {
let n = 442;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
502,567 | kk | C++ | var_decl | beginner | C++ тілінде 209640 мәнімен count айнымалысын қалай жариялауға болады? | int count = 209640; | ### Instruction:
C++ тілінде 209640 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 209640; |
19,925,377 | kk | C++ | array_ops | advanced | C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
19,319,128 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
86,979,828 | en | C# | logic_ops | advanced | Write a function that determines if the number 107 is prime in C#. | public bool IsPrime() {
int n = 107;
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 107 is prime in C#.
### Response:
public bool IsPrime() {
int n = 107;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,784,340 | en | Unity | var_decl | beginner | How to declare a variable health with value 959990 in Unity? | int health = 959990; | ### Instruction:
How to declare a variable health with value 959990 in Unity?
### Response:
int health = 959990; |
49,177,168 | 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;
} |
2,509,777 | ru | Java | var_decl | beginner | Как объявить переменную level со значением 200866 в Java? | int level = 200866; | ### Instruction:
Как объявить переменную level со значением 200866 в Java?
### Response:
int level = 200866; |
83,380,140 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 408 is prime in Unity. | public bool IsPrime() {
int n = 408;
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 408 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 408;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
46,958,588 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
76,851,995 | 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();
} |
4,565,873 | ru | Python | var_decl | beginner | Как объявить переменную speed со значением 373908 в Python? | speed = 373908 | ### Instruction:
Как объявить переменную speed со значением 373908 в Python?
### Response:
speed = 373908 |
4,528,451 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 984045 мәнімен value айнымалысын қалай жариялауға болады? | let value = 984045; | ### Instruction:
JavaScript тілінде 984045 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
let value = 984045; |
40,495,275 | 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;
} |
19,190,700 | kk | C++ | logic_ops | advanced | C++ тилінде 2090 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2090;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2090 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2090;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,299,316 | en | Unity | var_decl | beginner | How to declare a variable amount with value 951800 in Unity? | int amount = 951800; | ### Instruction:
How to declare a variable amount with value 951800 in Unity?
### Response:
int amount = 951800; |
24,012,158 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 2087 високосным. | public bool IsLeap() {
int y = 2087;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2087 високосным.
### Response:
public bool IsLeap() {
int y = 2087;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
13,996,213 | 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;
} |
157,532 | kk | C# | var_decl | beginner | C# тілінде 40485 мәнімен index айнымалысын қалай жариялауға болады? | int index = 40485; | ### Instruction:
C# тілінде 40485 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 40485; |
4,195,732 | en | Java | var_decl | beginner | How to declare a variable score with value 234750 in Java? | int score = 234750; | ### Instruction:
How to declare a variable score with value 234750 in Java?
### Response:
int score = 234750; |
55,094,845 | 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] |
13,155,265 | 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();
} |
85,621,922 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 1986 is a leap year in JavaScript. | function isLeap() {
let y = 1986;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1986 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1986;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
1,376,048 | kk | Python | var_decl | beginner | Python тілінде 360456 мәнімен offset айнымалысын қалай жариялауға болады? | offset = 360456 | ### Instruction:
Python тілінде 360456 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
offset = 360456 |
64,319,373 | en | Java | logic_ops | intermediate | Write logic to check if the year 1953 is a leap year in Java. | public bool IsLeap() {
int y = 1953;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1953 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1953;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
61,968,131 | ru | 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);
} |
30,764,152 | kk | Unity | logic_ops | intermediate | Unity тилінде 2020 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2020;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2020 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2020;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
79,930,175 | kk | C++ | string_ops | advanced | C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
1,475,915 | ru | Unity | var_decl | beginner | Как объявить переменную total со значением 789164 в Unity? | int total = 789164; | ### Instruction:
Как объявить переменную total со значением 789164 в Unity?
### Response:
int total = 789164; |
50,869,131 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 8 is prime in C++. | public bool IsPrime() {
int n = 8;
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 8 is prime in C++.
### Response:
public bool IsPrime() {
int n = 8;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
918,379 | ru | C++ | var_decl | beginner | Как объявить переменную rate со значением 643464 в C++? | int rate = 643464; | ### Instruction:
Как объявить переменную rate со значением 643464 в C++?
### Response:
int rate = 643464; |
3,222,183 | ru | Unity | var_decl | beginner | Как объявить переменную total со значением 832114 в Unity? | int total = 832114; | ### Instruction:
Как объявить переменную total со значением 832114 в Unity?
### Response:
int total = 832114; |
40,661,677 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 122 простым. | public bool IsPrime() {
int n = 122;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 122 простым.
### Response:
public bool IsPrime() {
int n = 122;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,019,053 | ru | C# | var_decl | beginner | Как объявить переменную offset со значением 646451 в C#? | int offset = 646451; | ### Instruction:
Как объявить переменную offset со значением 646451 в C#?
### Response:
int offset = 646451; |
94,064,216 | en | Python | logic_ops | intermediate | Write a function that determines if the number 45 is prime in Python. | def is_prime():
n = 45
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 45 is prime in Python.
### Response:
def is_prime():
n = 45
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
2,870,166 | kk | Java | var_decl | beginner | Java тілінде 72187 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 72187; | ### Instruction:
Java тілінде 72187 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 72187; |
32,487,906 | ru | Python | string_ops | intermediate | Напишите на 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аеёиоуыэюя') |
26,812,662 | en | Python | logic_ops | intermediate | Write a function that determines if the number 198 is prime in Python. | def is_prime():
n = 198
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 198 is prime in Python.
### Response:
def is_prime():
n = 198
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
12,310,112 | kk | C# | array_ops | advanced | C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
3,625,810 | kk | Java | var_decl | beginner | Java тілінде 764671 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 764671; | ### Instruction:
Java тілінде 764671 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 764671; |
71,854,178 | 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;
} |
36,668,718 | 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;
} |
83,873,025 | kk | Unity | logic_ops | advanced | Unity тилінде 1921 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1921;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1921 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1921;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,853,823 | ru | Unity | var_decl | beginner | Как объявить переменную count со значением 877176 в Unity? | int count = 877176; | ### Instruction:
Как объявить переменную count со значением 877176 в Unity?
### Response:
int count = 877176; |
24,853,831 | 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;
} |
254,475 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 4292. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4292)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 4292.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4292)); |
44,121,628 | kk | Unity | logic_ops | advanced | Unity тилінде 182 санының жай сан екенін анықтайтын функцияны жазыңыз. | 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:
Unity тилінде 182 санының жай сан екенін анықтайтын функцияны жазыңыз.
### 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;
} |
68,392,578 | en | Java | logic_ops | advanced | Write logic to check if the year 1954 is a leap year in Java. | public bool IsLeap() {
int y = 1954;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1954 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1954;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.