АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

1049. Порядок следования членов

Time Limit: 1 seconds
Memory Limit:65536KB
Points:4
View Problem Statistics Submit Problem added Undefined

Даны целые числа a1,...,an, b1,...,bn. Если две последовательности отличаются не более чем порядком следования членов то вывести на экран 1, в противном случае 0.Вначале вводится количество членов в последовательности, далее сами последовательности. ПРИМЕР: Ввод данных: 4; 1 2 1 2; 2 1 1 2; Вывод данных : 1;

View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
1093. Поиск цифры в числе. 1049. 914. Сжатие строки 1042. Сравнение двух чисел 1048. Сумма ряда.
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.047 sec.
© Copyright VSTU, AVT, Nosov D.A.