pascal语言程序问题

[复制链接]
查看11 | 回复1 | 2012-10-13 12:32:05 | 显示全部楼层 |阅读模式
ACBBADAD 你程序有问题,帮你改了varn,ans,i,j:integer;s:string;function get(i:integer):char;beginif i=n thenget:=selseget:=s[i-n];end;beginreadln(s);n:=length(s);ans:=1;for i:=2 to n dobeginfor j:=0 to n-1 doif (get(i+j)>get(ans+j)) thenbeginans:=i;break;endelse if get(i+j)>get(ans+j) then...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行