HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums >


Discussion of volumes, contests, sections

Topics are sorted by:  (creation date)  [last post time]

Pages:  [1]  (2)  (3)  (4)

Nov.25.2024 at 10:13:06 AM
Section "Graph problems" (0)
0 posts
ENM-BAIYSH.KADYROV
Nov.25.2024 at 09:56:44 AM
Volume "5.Uygulama. Последовательность чисел" (2)
2 posts
def gcd(a, b):
while b:
a, b = b, a % b
return a

def filter_sequence(seq):
result = []
for i in range(1, len(seq)):
if gcd(seq[i-1], seq[i]) == 1:
result.append(seq[i])
return result

# Мисалы
sequence = [10, 26, 75, 64, 14, 67, 7, 75, 9, 51, 21]
new_sequence = filter_sequence(sequence)
print(new_sequence)

Feb.19.2024 at 07:48:02 PM
Volume "Chapter 2. Decision structures" (0)
0 posts
Oct.29.2023 at 04:02:02 PM
Volume "Uygulama #3. Простейшие циклы" (0)
0 posts
Oct.29.2023 at 12:03:54 PM
Contest "Bil-273 Биринчи сынак 06.11.2019" (0)
0 posts
Oct.10.2023 at 12:16:15 PM
Volume "Uygulama #2. Условный оператор" (0)
0 posts
Oct.08.2023 at 08:54:24 PM
Volume "Bil-203 Yapisal programlama. Odev 6. Массивы" (0)
0 posts
Oct.08.2023 at 08:48:44 PM
Volume "Uygulama #4. Вложенные циклы" (0)
0 posts
Sep.28.2023 at 01:36:39 PM
Section "Array" (0)
0 posts
Nov.14.2022 at 03:24:00 PM
Contest "Bil-373 Биринчи сынак 14.11.2022" (0)
0 posts
Nov.06.2022 at 06:31:24 AM
Volume "Bil-203 Yapisal programlama. Odev 4. Строки" (0)
0 posts
Oct.02.2022 at 06:37:24 PM
Volume "Chapter 3. Repetition structures" (0)
0 posts
Sep.26.2022 at 12:09:59 PM
Section "Geometry" (0)
0 posts
Mar.09.2022 at 01:46:45 PM
Section "Data structires" (0)
0 posts
Jan.08.2022 at 09:43:09 AM
Contest "Bil-203 Praktika 09.12.2021" (0)
0 posts
Jan.06.2022 at 01:17:00 PM
Contest "Bil-203 Praktika 06.01.2022" (0)
0 posts
Oct.22.2021 at 05:31:36 PM
Volume "Problems from everywhere" (0)
0 posts
Oct.14.2021 at 10:33:40 AM
Volume "2019" (0)
0 posts
Jan.24.2021 at 02:24:39 PM
Section "Sorting and sequences" (0)
0 posts
Dec.07.2020 at 01:16:08 PM
Section "Unsorted" (0)
0 posts

Pages:  [1]  (2)  (3)  (4)

www.contester.ru