- P3's solution
[题解] P3. [System Test] Powers of 10
- 2025-9-5 21:53:26 @
简单题。
由于以 为底数,所以直接在后面加 即可。(并且不用考虑大数据问题)
代码如下:
// P3. [System Test] Powers of 10
// code by:cirrationaler
// time:2025/08/21
#include <bits/stdc++.h>
using namespace std;
int n;
int main()
{
// freopen("code.in", "r", stdin);
freopen("pow.in", "r", stdin);
freopen("pow.out", "w", stdout);
scanf("%d", &n);
printf("1");
for (int i = 1; i <= n; i++)
{
printf("0");
}
return 0;
}