始终显示格式错误,求大佬帮忙看看,谢谢~#include<string>(5850)#include<iostream>using namespace std;int main(){string s;while(cin>>s){int left = 0, right = s.length()-1;int n1,n2,n3;n1 = n3 = (s.length()+2)/3;n2 = s.length()+2 - (s.length()+2)*2/3;for(int i = 1; i < n1; i++){cout<<s[left++];for(int j = 1; j <= n2-2; j++)cout<<' ';cout<<s[right--]<<endl;}while(left<=right)cout<<s[left++];cout<<endl;}} 「求助大佬帮看看这道算法题吧!」Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. Fo... https://www.nowcoder.com/questionTerminal/c6e414fddd7c401887c350c9cc41f01b