设为首页 加入收藏

TOP

POJ 2039 To and Fro(水题)
2015-07-20 17:46:03 来源: 作者: 【 】 浏览:2
Tags:POJ 2039 and Fro 水题

【题目简述】:字符串的简单处理,看懂题意,特别是他给的那个例子就好,很简单


见代码:

#include
  
   
#include
   
     #include
    
      #include
     
       using namespace std; char str[211][211]; int main() { int colum; char str1[211]; int tmp; while(cin>>colum,colum) { cin>>str1; int len = strlen(str1); tmp = len/colum; int count = 0; for(int i = 0;i
      
       =0;j--) str[i][j] = str1[count++]; } for(int i = 0;i
       
        

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇uva 261 - The Window Property(.. 下一篇UVA-10603-Fill(BFS+优先队列)

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·新书介绍《Python数 (2025-12-25 04:49:47)
·怎么利用 Python 进 (2025-12-25 04:49:45)
·金融界大佬力荐,Pyt (2025-12-25 04:49:42)
·你必须要弄懂的多线 (2025-12-25 04:22:35)
·如何在 Java 中实现 (2025-12-25 04:22:32)