博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
sicily 1036 Crypto Columns
阅读量:4571 次
发布时间:2019-06-08

本文共 946 字,大约阅读时间需要 3 分钟。

#include 
#include
#include
using namespace std;typedef struct node{ char c; int i; struct node* next; }Node;#define N 10char a[N][N];int main(){ string s,str; Node* headerPtr=NULL; Node *cur,*pre; while(cin>>s&&s!="THEEND") { int size=s.length(); for(int i=0;i
c=s[i]; temp->i=i+1; temp->next=NULL; pre=cur=headerPtr; while(cur!=NULL) { if(s[i]>=cur->c) { pre=cur; cur=cur->next; } else { break; } } if(cur==headerPtr) { temp->next=headerPtr; headerPtr=temp; } else { pre->next=temp; temp->next=cur; } } cin>>str; int sizeStr=str.length(); int h=sizeStr/size; int l=0; while(headerPtr!=NULL) { //cout<
c<<"***"<
i<
i; for(int k=0;k
next; delete temp; } for(int i=0;i

 

转载于:https://www.cnblogs.com/growing/archive/2011/12/22/2298368.html

你可能感兴趣的文章
怎样判断网址是否被微信封 微信域名检测接口的实现
查看>>
解一元二次方程程序
查看>>
Homebrew macOS缺失包管理器
查看>>
WIN32 窗口类封装 框架实现部分
查看>>
操作系统
查看>>
记录 一次深夜救火:datanode.data.dir
查看>>
Apache 使用 .htaccess 文件配置全站 301 跳转代码
查看>>
微信小程序 获取OpenId
查看>>
IDEA快捷操作
查看>>
android 的touch event分析
查看>>
转:C#进阶系列——WebApi 跨域问题解决方案:CORS
查看>>
实参和形参
查看>>
利用GPGPU计算大规模群落仿真行为
查看>>
BZOJ 3211: 花神游历各国【线段树区间开方问题】
查看>>
C语言sprintf和sscanf函数用法
查看>>
javascript 基础
查看>>
WAV文件格式
查看>>
WPF stringformat设置
查看>>
阻止vue事件冒泡的方法
查看>>
第十七周进度总结
查看>>