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:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, COB, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.