- P3's solution
-
[题解] P3. [System Test] Powers of 10
- @ 2026-3-20 20:11:43
这道题非常简单,具体用到了一个小小的技巧,对于 而言, 等于几就等于它后面有几个 ,因此可得代码:
#include <bits/stdc++.h>
using namespace std;
int a,b,ans;
int main(){
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
freopen("pow.in", "r", stdin);
freopen("pow.out","w",stdout);
cin >> a;
cout << "1";
for (int i = 1;i <= a;++i) cout << "0";
return 0;
}