#Lutece2799. 利兹与青鸟
利兹与青鸟
Migrated from Lutece 2799 利兹与青鸟
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
纯音乐,请您欣赏。
请计算
和
$$L(n)=\sum_{k=1}^n \text{lcm}(k,n)\cos \frac{2k\pi}{n} $$的值。
Input
第一行一个整数 ,表示数据组数。
接下来 行,每行一个整数 。
Output
对于每组数据,输出两个实数,分别表示 和 的值。保留三位小数输出。
Samples
1
1
1.000 1.000
Resources
2022 UESTC ICPC Training for Math and Geometry