可以骂,but tell me how to make it right
查看原帖
可以骂,but tell me how to make it right
1590776
website100426楼主2025/7/21 22:07

样例过了但是WA,还有大佬有更多样例吗 附:code

#include<bits/stdc++.h>
int a[105];
int main()
{
	int n;
	scanf("%d",&n);
	for(int i=1;i<=n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]%10>=5)
		{
			a[i]=a[i]-a[i]%10+10;
		}
		else
		{
			a[i]=a[i]-a[i]%10;
		}
	}
	for(int j=1;j<=n;j++)
	{
	printf("%d ",a[j]);
	}
}
//why you make me along(memory)
2025/7/21 22:07
加载中...