有很多漂亮的WA和TLE?
查看原帖
有很多漂亮的WA和TLE?
1121348
sunqinran2023楼主2024/3/15 12:21
#include<bits/stdc++.h>
using namespace std;
int main()
{
	unsigned long long n,s,k,x,i,t,cnt=0;
	cin>>k>>x;
	cout<<1;
	t=x;
	while(t)
	{
		t/=10;
		cnt++;
	}
	for(i=1;i<=k-cnt;i++)
		cout<<0;
	cout<<x;	
	return 0;
}
2024/3/15 12:21
加载中...