Skip to content
Snippets Groups Projects
Commit 191b1bd1 authored by hacker717's avatar hacker717
Browse files

Коммит main в маи

parent 6b4210c4
No related branches found
No related tags found
No related merge requests found
s = input()
if s == s[::-1]:
print("YES")
else:
print("NO")
\ No newline at end of file
s = input()
if "зайка" in s:
print("YES")
else:
print("NO")
\ No newline at end of file
arr = []
for _ in range(3):
arr.append(input())
arr.sort()
print(arr[0])
\ No newline at end of file
2.2/markdown-image.png

204 KiB

s = input()
while s != "Три!":
print("Режим ожидания...")
s = input()
print("Ёлочка, гори!")
\ No newline at end of file
x, y = 0, 0
while True:
s = input()
if s == "СТОП":
break
elif s == "СЕВЕР":
y += int(input())
elif s == "ЮГ":
y -= int(input())
elif s == "ЗАПАД":
x -= int(input())
elif s == "ВОСТОК":
x += int(input())
print(y)
print(x)
\ No newline at end of file
print(sum([int(i) for i in input()]))
\ No newline at end of file
print(max([int(i) for i in input()]))
\ No newline at end of file
print(sorted([input() for i in range(int(input()))])[0])
\ No newline at end of file
n = int(input())
if n == 1 or n == 0 or n == -1:
print("NO")
else:
for i in range(2, n // 2 + 1):
if n % i == 0:
print("NO")
break
else:
print("YES")
\ No newline at end of file
n = int(input())
c = 0
for _ in range(n):
if "зайка" in input():
c += 1
print(c)
\ No newline at end of file
s = input()
if s == s[::-1]:
print("YES")
else:
print("NO")
\ No newline at end of file
s = input()
s1 = ""
for i in s:
if int(i) % 2 == 1:
s1 += i
print(s1)
\ No newline at end of file
n = int(input())
arr = []
if n == 1:
print(1)
else:
while True:
for i in range(2, n // 2):
if n % i == 0:
arr.append(i)
n //= i
break
else:
arr.append(n)
break
print(*arr, sep=" * ")
\ No newline at end of file
n = 500
print(n)
s = input()
maxnum, minnum = 1001, 0
while s != "Угадал!":
if s == "Больше":
minnum = n
n += (maxnum - n) // 2
elif s == "Меньше":
maxnum = n
n -= (n - minnum) // 2
print(n)
s = input()
\ No newline at end of file
s = input()
c = 0
while s != "Приехали!":
if "зайка" in s:
c += 1
s = input()
print(c)
\ No newline at end of file
c = -1
prev_h = 0
for i in range(int(input())):
b = int(input())
h = b % 256
r = (b // 256) % 256
m = b // (256 ** 2)
hs = (37 * (m + r + prev_h)) % 256
prev_h = h
if h > 99 or h != hs:
c = i
break
print(c)
\ No newline at end of file
This diff is collapsed.
x1, x2 = int(input()), int(input())
arr = []
for i in range(x1, x2 + 1):
arr.append(i)
print(*arr)
\ No newline at end of file
2.3/4.py 0 → 100644
x1, x2 = int(input()), int(input())
arr = []
if x1 < x2:
for i in range(x1, x2 + 1):
arr.append(i)
else:
for i in range(x1, x2 - 1, -1):
arr.append(i)
print(*arr)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment