Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
函数返回对象
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 8, Accepted users: 7
Problem 11609 : No special judgement
Problem description
  函数也能返回的是一个对象。请采用类的方式来编写一个关于坐标点绕原点旋转一定角度,来得到新的坐标点,要求写一个类名为point的类,此外返回对象是point的函数。

Input
  每次输入三个浮点数x,y,a ,分别表示这个点的横坐标与纵坐标,a表示这个坐标点绕原点逆时针方向旋转的角度。

Output
  对于每一行的输入,在下一行输出新点的横坐标与纵坐标,保留两位小数。

Sample Input
1 0 90
Sample Output
0.00 1.00
Submit   Clarifications   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2043 today,16258770 total, since 2010-05-07