C17F:A Simple Math Problem
- 总时间限制:
- 1000ms
- 内存限制:
- 65536kB
- 描述
Given an integer N, please calculate the integral part of (7+4√3)N, module 1,000,000,007.
- 输入
- The first line contains an integer T (1 <= T <= 500), indicating the number of test cases.
For each test case:
One line contains an integer N (0 <= N <= 1,000,000,000).
- 输出
- For each test case, output one integer on a single line, indicating the result.
- 样例输入
1
1
- 样例输出
13
- 全局题号
- 15051
- 添加于
- 2017-05-21
- 提交次数
- 509
- 尝试人数
- 62
- 通过人数
- 45