R D SHARMA
All submissions for this problem are available.
R D SHARMA
Edition of “Objective Mathematics by R D Sharma” has been planned. However the
publisher has demanded to get the material ready within a month. The publisher
also insists that new questions should be added to the Exercises. Given the deadline,
it’s difficult for R D Sharma and his team to solve the Exercise Questions and
get the answers.
You need to
help R D Sharma by writing a program that produces answer for the following
point P(x,y) through an
angle a, b, c (in the form or TRIPLE) about a point Q(r,s),
and determine the New Co-ordinates P’(X,Y). ”
Your task is to print the New
© Vishal Gupta
Input contains a number of test
cases. Each test case consists of 4 lines.
First line contains 0 or 1. 0 implies
anti-clock wise rotation and 1 implies clockwise rotation.
Second line contains x,y (Integers), the co-ordinates
Third line contains the angle in the
form of triples a,b,c
Fourth line contains r,s(Integers) co-ordinates of
Print X Y the new
co-ordinates of P after rotation.
0 1 1
3 4 5
|Time Limit:||2 sec|
|Source Limit:||50000 Bytes|
|Languages:||ADA, ASM, BASH, BF, C, C99 strict, CAML, CLOJ, CLPS, COB, CPP 4.3.2, CPP 6.3, CPP14, CS2, D, ERL, FORT, FS, GO, HASK, ICK, ICON, JAVA, JS, kotlin, LISP clisp, LISP sbcl, LUA, NEM, NICE, NODEJS, PAS fpc, PAS gpc, PERL, PERL6, PHP, PIKE, PRLG, PYPY, PYTH, PYTH 3.5, RUBY, rust, SCALA, SCM chicken, SCM guile, SCM qobi, ST, swift, TEXT, WSPC|
Fetching successful submissions
If you are still having problems, see a sample solution here.