В
Все
У
Українська література
Г
Геометрия
Д
Другие предметы
Э
Экономика
Г
География
О
ОБЖ
М
Математика
М
МХК
Х
Химия
Қ
Қазақ тiлi
Л
Литература
У
Українська мова
О
Обществознание
Ф
Физика
А
Английский язык
А
Алгебра
И
История
Б
Беларуская мова
Б
Биология
М
Музыка
П
Право
И
Информатика
П
Психология
В
Видео-ответы
Н
Немецкий язык
Ф
Французский язык
О
Окружающий мир
Р
Русский язык
Sofja007
Sofja007
22.07.2022 07:51 •  Информатика

Исправить ошибку(не выводит ответ)ребус ussr+usa=реасе var m: set of byte; u,s,r,a,p,e,c: integer; begin m : = []; for u : = 1 to 6 do if not (u in m) then begin include(m, u); for s : = 0 to 6 do if not (s in m) then begin include(m, s); for r : = 0 to 6 do if not (r in m) then begin include(m, r); for a : = 0 to 6 do if not (a in m) then begin include(m, a); for p : = 1 to 6 do if not (p in m) then begin include(m, p); for e : = 0 to 6 do if not (e in m) then begin include(m, e); for c : = 0 to 6 do if not (c in m) then begin include(m, c); if u * 1000 + s * 100 + s * 10 + r + u * 100 + s * 10 + a = p * 10000 + e * 1000 + a * 100 + c * 10 + e then writeln(u, s, s, r, ' + ', u, s, a, ' = ', p, e, a, c, e); exclude(m, c) end; exclude(m, e); end; exclude(m, p); end; exclude(m, a) end; exclude(m, r) end; exclude(m, s) end; exclude(m, u) end; end.

Ответ:
оуоуо
оуоуо
31.08.2020 06:29
Varm: set of byte;u,s,r,a,p,e,c: integer;beginm := [];for u := 1 to 6 doif not (u in m) thenbeginInclude(m, u);for s := 0 to 6 doif not (s in m) thenbeginInclude(m, s);for r := 0 to 6 doif not (r in m) thenbeginInclude(m, r);for a := 0 to 6 doif not (a in m) thenbeginInclude(m, a);for p := 1 to 6 doif not (p in m) thenbeginInclude(m, p);for e := 0 to 6 doif not (e in m) thenbeginInclude(m, e);for c := 0 to 6 doif not (c in m) thenbeginInclude(m, c);if u * 1000 + s * 100 + s * 10 + r +u * 100 + s * 10 + a =p * 10000 + e * 1000 + a * 100 + c * 10 + e thenWriteLn(u, s, s, r, ' + ', u, s, a, ' = ', p, e, a, c, e);Exclude(m, c)end;Exclude(m, e);end;Exclude(m, p);end;Exclude(m, a)end;Exclude(m, r)end;Exclude(m, s)end;Exclude(m, u)end;WriteLn(u, s, s, r, ' + ', u, s, a, ' = ', p, e, a, c, e);end.

{попробуй это}
0,0(0 оценок)
Популярные вопросы: Информатика
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?