-
Вопрос по информатике:
Возрастает или нет? PASCAL ABC
Дано натуральное число n. Необходимо определить, является ли последовательность его цифр при просмотре справа налево упорядоченной по возрастанию.
Формат входных данных
Вводится целое число n (1≤n≤231−1).
Формат выходных данных
Выведите «YES», если условие задачи выполняется, и «NO» в противном случае.
Примеры
входные данные выходные данные
5321----------------------------YES
7820----------------------------NO
-
Автор:
marks
-
-
Var x, k, a,s, b:Integer ;
Begin
Write ('x=') ;read(x) ;
B:=-1;k:=0;s:=0;
While x>0 do begin
A:=x mod 10;
If a>b then k:=k+1;
S:=s+1;
X:=x div 10;b:=a;
End;
If k=s then writeln('YES') Else writeln('NO') ;
End.
Еще 4 ненужных тебе вопроса, но это важно для поиска
-
Вопрос по английскому языку:
Решите Упражнение по английскому
6. Rewrite the sentences in the Passive Perfect. Model: We have interviewed the suspect in the police department. The suspect has been interviewed in the police department. 1. The murderer has killed the man. 2. They will have investigated the robber by next Monday. 4. We have found the body of a 35-year-old man. 5. Police officer had found a murder weapon. 7. They have placed only one suspect into custody. 8. The witness has identified the pick-pocket. 9. Police will have arrested the suspect by Sunday.-
Ответов: 1
-
6 лет назад
-
-
Вопрос по английскому языку:
В1
Задание №3 Прочитайте приведённый ниже текст. Преобразуйте слова, напечатанные заглавными буквами, так, чтобы они грамматически соответствовали содержанию текста.
It was about 6pm when I heard a knock on the door. It _________BE____(1)_____ Jason, my teenage neighbour. He looked cold and upset.
“What’s wrong, Jason?”
“I _________LOSE____(2)_____ my key and I can’t get into my house.”
“Come in. Today’s not a day for long walks, or long waits,” I looked out the window. It _______SNOW___(3)______ hard and it was windy. The weather was getting ________BAD______(4)____ every hour.
Jason _________TAKE___(5)______ off his coat and boots. His ________FOOT____(6)______ were wet and I gave him a pair of socks to change into. A cup of hot tea and some biscuits soon made the boy feel warm.
“Where are your parents, Jason?”
“I _________NOT/KNOW______(7)___. I can’t call them because of this,” he pulled his phone out of his pocket and showed it to me – the screen _________BREAK______(8)___ and the phone was obviously dead.
Jason focused on the food again. He took his _________FOUR_____(9)____ biscuit and said: “I wish my mum could make biscuits like this.”-
Ответов: 1
-
6 лет назад
-
-
Вопрос по геометрии:
В треугольника АВС даны два угла:угол А =32°,угол В =57°.Найди третий угол?-
Ответов: 7
-
6 лет назад
-
-
Вопрос по биологии:
выберите признаки характерные для жизни лисицы в наземно-воздушной среде???
1.достаточно высокая плотность среды
2.практически неограниченный запас пищи
3.относительно постоянное давление
4.относительно постоянное количество кислорода
5.сравнительно малая плотность среды-
Ответов: 1
-
6 лет назад
-