龙卷风摧毁停车场
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
1除以n都会吧,没错,这道题就是这么简单;
Description
早上, 可乐加冰起来练他的"龙卷风摧毁停车场"招式, 此时雪碧加柠檬走过来说 : 哥, 我有道很简单数学题想让你给我解答解答.
给出一个整数n, 输出1/n. 然而可乐加冰也不会, 于是他找到了你, 你可以帮助可乐加冰吗?
Format
Input
输入一个t,表示有t组测试样例, 每行一个整数n(1 <= |n| <= 10^5).
Output
输出t行,输出1/n. (是循环小数的,只输出第一个循环节).
Samples
3
3
5
7
0.3
0.2
0.142857
Limitation
1s, 1024KiB for each test case.
新生周赛第六场(DIV. 4)
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 6
- Start at
- 2022-12-3 9:00
- End at
- 2022-12-3 11:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 33