This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
#define task8 | |
#ifdef task1 | |
int main() { | |
setlocale(LC_ALL, "RU"); | |
int n; | |
cout << "Введите целое положительное число: "; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
#define task17 | |
#ifdef task1 | |
int main() { | |
int n; | |
cin >> n; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Дютькин Никита 9/2-РПО-24/2 | |
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
#define task_20 | |
#ifdef task_1 | |
int main() { | |
double a, b, S; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ferz_can_go(xs, ys, xf, yf): | |
if xs == ys or xf == yf or abs(xs - ys) == abs(xf - yf): | |
return True | |
else: | |
return False | |
xs = int(input("ведите xs:")) | |
ys = int(input("ведите ys:")) | |
xf = int(input("ведите xf:")) | |
yf = int(input("ведите yf:")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x_s = int(input("Введите x_s:")) | |
y_s = int(input("Введите y_s:")) | |
x_f = int(input("Введите x_f:")) | |
y_f = int(input("Введите y_f:")) | |
if | |
x_s = int(input("Введите x_s:")) | |
y_s = int(input("Введите y_s:")) | |
x_f = int(input("Введите x_f:")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region 1 задача | |
number = list(input("Введите элементы списка: ")) | |
print(number) | |
#endregion | |
#region 7 задача | |
numbers = [1,6,3,98,65] | |
for i in range(len(numbers)): | |
for l in range(i+1, len(numbers)): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
numbers = [] | |
number = list(input()) | |
numbers = [] - > number = [16, 1, 15, 50, 82] | |
[] оператор индексирования | |
numbers[3]=-1 | |
numbers = [16, 1, 15, 50, 82]; print(numbers) | |
for element in numbers: | |
print(element, end=" ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Как добавлять маркировку. | |
1) на креатив нужно добавить пометку "реклама" и указание на рекламодателя | |
2) к креатив у нужно добавить индетификатор erid | |
Пометка "реклама" | |
- Именно "реклама" | |
- Название организации, ИП, ФИО визлица или сайт, если на нём есть информация об организации рекламодателя | |
- ИНН/ОГРН/ОГРНИП, если сложно идентифицировать рекламодателя | |
Индетификатор erid | |
-Если в рекламном материале есть ссылка, тогда в неё :elama.ru/?erid=XXX | |
-Если в ссылку невозможно добавить идентификатор, добавляем пометку в виде "erid: XXX": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For: Итератор,синтаксис, range() | |
Итератор. Начало next(it) | |
next(start, stop, step) | |
for i in range(10): | |
print(i, end=" ") | |
i = 0 | |
while i < 5: | |
i += 1 | |
print() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#print("Результат:", 5 // 3) | |
#print("Результат:", max(5, 6 , 7, 3, -3)) | |
#print("Результат:", pow(5, 3)) | |
#print("Результат:", round(5 / 3)) | |
#print("Результат: ", 7, 15, sep="", end="!\n") | |
#print("Second \" \t \\ line") | |
#input("Введите свой возраст: ") | |
number = 5 # int |
NewerOlder