ЕГЭ по Информатике. Задача №12. Исполнитель «Редактор». №4491 с сайта К.Ю. Полякова.
input="3".repeat(70)
functioneditor(input){
letstr=input;
while(/333|77777/g.test(str)){
if(/333/g.test(str)){
str=str.replace(/333/,"77");
}else{
str=str.replace(/77777/,"7");
}
}
returnstr;
}
editor(input)
.split("")
.map(Number)
.reduce(function(a,b){
returna+b;
},0)
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.