Var a, b, c, i: integer; d: string; begin readln(a, b); d := inttostr(a); for i := 1 to length(d) do c := c + strtoint(d[i]); if (b = c) then writeln('Yes') else writeln('No'); end.
0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota
Оформи подписку