求助#5#9#10求调
查看原帖
求助#5#9#10求调
788951
TLE_AK楼主2022/11/27 10:34
#include<bits/stdc++.h>
using namespace std;



int main()
{
	char ch;
	char A[20010];
	int i=0,sum=1;
	while(sum>0)
	{
		sum=scanf("%c",&A[i]);
	
		i++;
		
	}
	int h=1;
	for(int j=0;j<i-2;j++)
	{
	
		if(A[j]==10||j==0)
		{
			if(j!=0)cout<<A[j];
			cout<<h<<" ";
			h++;
			if(j!=0)continue;
		}
		cout<<A[j];
			
		
		
	}
	
	return 0;
}

全部提示

Wrong Answer.wrong answer On line 1 column 1, read 1, expected .
2022/11/27 10:34
加载中...