设为首页 加入收藏

TOP

POJ 2039 To and Fro(水题)
2015-07-20 17:46:03 来源: 作者: 【 】 浏览:1
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+优先队列)

评论

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

·C语言中如何将结构体 (2025-12-24 22:20:09)
·纯C语言结构体成员变 (2025-12-24 22:20:06)
·C语言中,指针函数和 (2025-12-24 22:20:03)
·哈希表 - 菜鸟教程 (2025-12-24 20:18:55)
·MySQL存储引擎InnoDB (2025-12-24 20:18:53)