我的日志(9)更多

程序

作者:shuai97  2008-07-08 18:09  复制 收藏引用  查看文章来源
cls               
input n
dim xm$(n)
max=0
for i=1 to n
  input d
  input j
  input x
  zongfen=d*0.2+j*0.3+x*0.5
  if zongfen>max then
  max=zongfen
  max1=i
end if
next i
print xm$(maxi)
end

输入样例
3
孙沁馨
300
400
500
王显之
600
300
800
王嘉鑫
300
400
200

输出样例
王显之
tags:
阅读(367)评论(3) 返回
文章评论 共3条回复
shuai97 发表于: 2008-07-08 18:20 引用
1楼
安全密码
cls
dim n as integer
input n
dim i as integer,s as string
dim dx as integer,xx,as interger.num as interger,qt as interger
dim j as interger,t as string
for i=1 to n
  input s
  if len(s)>=6 then
  dx=0
  xx=0
  num=0
  qt=0
  for j=1 to len(s)
  t=mid$(s,j,i)
  if (t>=" a")and (t<="z") then
    dx=dx+1
  end if 
  if (t>=" a")and (t<="z") then
    xx=xx+1
  end if
  if(t>=" 0") and (t<="9") then
    num=num+1
  else
  qt=qt+1
end if
next j
if dx*xx*num*qt<>0 then
  print s
end if
next i
end

输入样例
5
safef
cee3KA#B_
2324dk
_=32c#BC
83A#

输出样例
cee3KA#B_
_=32c#BC
顶端
asdf 发表于: 2008-08-11 19:38 引用
2楼
答:天书
顶端
天行健 发表于: 2008-12-31 11:04 引用
3楼
引用第2楼asdf于2008-08-11 19:38发表的  :
答:天书

支持
顶端
帐 号: 密 码
发表评论 顶端
  使用签名 Wind Code自动转换 匿名帖
字体字号段落格式
按 Ctrl+Enter 直接提交
字数检查 恢复数据 存为草稿 草稿箱

个人资料

用户名:shuai97
通行证:477205
级别:勇士
日志:9篇
人气:3790
状态:离线 离线

日历

热门搜索

数据加载中...

推荐文章