首页 / includestring
#

includestring

#
124次浏览 10人互动
此刻你想和大家分享什么
热门 最新
始终显示格式错误,求大佬帮忙看看,谢谢~#include(5850)#includeusing 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         {            cout            for(int j = 1; j                 cout            cout        }        while(left            cout        cout    }}  「求助大佬帮看看这道算法题吧!」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
点赞 评论 收藏
转发
投递贝壳找房等公司8个岗位
点赞 评论 收藏
转发
玩命加载中
牛客网
牛客企业服务