HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Linear Data Structures: Arrays > problem:


Reflektimi i pikes

Guest
• Review clarifications (1)

Section problems

• 50988 - Laplacian Filter
• 50986 - The Oldest Person
• 51173 Question 5
• 50873 - Max Frequency
• 51009 - Sum of the nth row
• 51107 - Factorial
• ECE - Question 1
• CEN - Question 1
• Reflektimi i pikes
• 50972 - Division
• 51135 - Class Average 1
• 51136 - Class Average 2
• 51094 - Passing the course
• Question 1
• 51069 - Last Digit of a Fibonacci Nu...
• 51130 - Permutation of Everything
• 51073 - Campus Tours for High Sch...

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 10000/10000/10000/10000 ms. Memory limit 65000/65000/65000/65000 Kb.

Reflektimi i pikes

Le te jete nje pike a=(ax, ay) ne rrjetin koordinativ x-y. Ne nje bashkesi me 3 pika a, b dhe r pika r=(rx, ry) quhet reflektimi i pikes a nese eshte rrotullimi 180 grade i pikes a rreth pikes b.

Pyetja: Shkruaj nje program i cili do te lexoje nga perdoruesi koordinatat e pikes a: ax, ay dhe koordinatat e pikes b: bx, by dhe te shfaqi ne ekran koordinatat e pikes r: rx, ry

Specifikimi i inputit
Cdo koordinate e dhene do te jete midis kufijve 0 ≤ x ≤ 2000 0 ≤ y ≤ 2000. Do te jepen 4 koordinata sipas rendit ax ay bx by te ndare ne rrjeshta te ndryshem.

Specifikimi i outputit:
Shfaq vlerat e koordinatave rx ry te ndare nga nje hapesire.

Hint:
Ushtrimi eshte me i thjeshte sec duket. Mjafton ta zgjidhni matematikisht
problemin dhe cdo gje behet e qarte.

Input Shembull I
0
0
1
1
Output Shembull I:
2 2
Input Shembull II
1
1
2
2
Output Shembull II:
3 3
Для отправки решений необходимо выполнить вход.

www.contester.ru