24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1194  |  回复: 5
当前主题已经存档。

stereochemistry

[交流] 如果你玩双色球,这个小程序可能能帮助你拿500万大奖哦。

program Shuangseqiu

interface
function random10(lbound,ubound)
implicit none

real:: lbound, ubound
real:: random10(33)
end function
end interface
!------------------------------------------------------------
interface
function random11(lbound,ubound)
implicit none
real:: lbound, ubound
real:: random11(16)
end function
end interface
!-----------------------------------------------------------
integer :: jie(6),s,ij,ik,ikk,io
real ::a(33),b(16)
integer:: aa(33),kpp,ll,aaa(33),oo
integer:: bb(16), bbb(16)
integer:: red(6)
real:: kp
Print*, 'This is a program written in 2008-11-13,for ShuangSeQiu Games'
Print*, '------This is a present for Xiao LV ShiXiong from LWL--------'
call random_seed()

a=random10(1.0,33.0)

do ij=1,33
     do ik=ij+1,33
          if(a(ik).ge.a(ij)) then
              kp=a(ij)
                  a(ij)=a(ik)
                  a(ik)=kp
        endif
        enddo
        enddo


do ikk =1,33
if(ikk.gt.16) goto 145
bb(ikk)=0
145  continue
   aa(ikk)=0
enddo


do ikk =1,33
   a(ikk)=int(a(ikk))
    do io=1,33
if(a(ikk).eq.io) aa(io)=aa(io)+1
enddo
enddo   
!---------------------------------------
  b=random11(1.0,16.0)
do ikk =1,16
   b(ikk)=int(b(ikk))
    do io=1,16
if(b(ikk).eq.io) bb(io)=bb(io)+1
enddo
enddo  
!---------------------------------------


do oo=1,33
if(oo.gt.16) goto 123
bbb(oo)=oo
123 continue
aaa(oo)=oo
enddo


!---------------------------------------------
do ij=1,33
     do ik=ij+1,33
          if(aa(ik).ge.aa(ij)) then
               oo=aaa(ij)
                   aaa(ij)=aaa(ik)
                   aaa(ik)=oo

               kpp=aa(ij)
                   aa(ij)=aa(ik)
                   aa(ik)=kpp
        endif
        enddo
        enddo
!---------------------------------------------------
do ij=1,16
     do ik=ij+1,16
          if(bb(ik).ge.bb(ij)) then
               oo=bbb(ij)
                   bbb(ij)=bbb(ik)
                   bbb(ik)=oo

               kpp=bb(ij)
                   bb(ij)=bb(ik)
                   bb(ik)=kpp
        endif
        enddo
        enddo


!------------------------------------------------
Write(*,*) '+++++++++++++++++++++++++++++++++++++'
Write(*,*) 'The Red Six one is here: From 1--33'
Write(*,*) '++++++++++++++++++++++++++++++++++++++'
do ik=1,6
write(*,*)ik,aaa(ik), aa(ik)
red(ik)=aaa(ik)
enddo
do ik=1,6
   do ij=ik+1,6
   if(red(ij).ge.red(ik)) then
      oo=red(ik)
          red(ik)=red(ij)
          red(ij)=oo
          endif
          enddo
          enddo
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Write(*,*) '+++++++++++++++++++++++++++++++++++++'
Write(*,*) 'The Blue Two one is here: From 1--16'
Write(*,*) '++++++++++++++++++++++++++++++++++++++'
do ik=1,2
write(*,*)ik,bbb(ik), bb(ik)
enddo
Write(*,*) '---------The 500 Million is Here--Please enjot it---------------'


write(*,"(6(i2,1x),'**',1x,2(i2,1x))"  red(6),red(5),red(4),red(3),red(2),red(1) &
, bbb(1),bbb(2)
Print*, 'Good Luck-Good Luck-Good Luck-Good Luck-Good Luck-Good Luck-Good Luck'     
end


function random10(lbound,ubound)
real:: len
real:: random10(33)
real:: lbound, ubound
real t
integer i
len=ubound-lbound


do i=1,33
call random_number(t)

random10(i)=lbound+len*t

enddo
return
end


function random11(lbound,ubound)
real:: len
real:: random11(16)
real:: lbound, ubound
real t
integer i
len=ubound-lbound


do i=1,16
call random_number(t)

random11(i)=lbound+len*t

enddo
return
end

[ Last edited by woshilsh on 2008-11-29 at 16:09 ]
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

shxincui518

铜虫 (正式写手)

厉害啊!崇拜啊!中奖啊!
2楼2008-11-21 22:34:10
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wxjbuilder

木虫 (知名作家)

有没有注释语句,可以教大家来学习一下如何编程?
悠悠天地,奈何独立苍茫?
3楼2008-11-28 21:18:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yongqin965

银虫 (小有名气)

楼主厉害!好好研究...
4楼2008-12-18 18:00:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dkx10

厉害是什么语言呀
5楼2009-01-04 14:01:11
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 stereochemistry 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 26考研调剂0710 0860 +8 补补不补 2026-04-03 12/600 2026-04-04 13:44 by 自由风2
[考研] 26调剂 086003 +6 失活的细胞 2026-04-04 6/300 2026-04-04 09:50 by zhangdingwa
[考研] 求调剂,一志愿南京航空航天大学 ,080500材料科学与工程学硕 +10 @taotao 2026-04-03 10/500 2026-04-04 09:01 by T可可西里T
[考研] 调剂0855-288 +5 x熊二a 2026-04-03 5/250 2026-04-04 00:19 by 猪会飞
[考研] 11408,335分,本科211,求调剂,可转专业 +3 鳄梨大鳄鱼 2026-04-03 3/150 2026-04-03 21:18 by zhq0425
[考研] 329求调剂,一志愿西北工业大学,材料工程(085601) +8 小小机灵虫 2026-03-29 14/700 2026-04-03 19:38 by lijunpoly
[考研] 274求调剂 +9 顺理成张 2026-04-03 10/500 2026-04-03 15:10 by 啊俊!
[考研] 机械专硕297 +3 Afksy 2026-04-03 3/150 2026-04-03 14:24 by 1753564080
[考研] 工科 267求调剂 +5 wanwan00 2026-04-02 7/350 2026-04-03 14:14 by zhangdingwa
[考研] 366求调剂 +7 sbdnd 2026-04-03 7/350 2026-04-03 12:40 by cymywx
[考研] 求调剂 +5 朔朔话 2026-04-02 6/300 2026-04-02 22:02 by barlinike
[考研] 085602 找调剂 +3 逆时针快乐 2026-04-02 3/150 2026-04-02 21:23 by dongzh2009
[考研] 一志愿北交大材料工程总分358 +3 cs0106 2026-04-02 5/250 2026-04-02 11:37 by olim
[考研] 一志愿西安交大材料学硕(英一数二)347,求调剂到高分子/材料相关专业 +7 zju51 2026-03-31 9/450 2026-04-01 19:35 by CFQZAFU
[考研] 318求调剂 +8 七忆77 2026-04-01 8/400 2026-04-01 10:37 by Jaylen.
[考研] 考研生物与医药调剂 +7 铁憨憨123425 2026-03-31 7/350 2026-04-01 08:45 by JourneyLucky
[考研] 一志愿西电085401数一英一299求调剂 六级521 +4 爱吃大鸭梨 2026-03-31 4/200 2026-03-31 11:51 by 搏击518
[考研] 323分 食品与营养调剂 +3 嘿ooo 2026-03-31 3/150 2026-03-31 09:38 by longlotian
[考研] 105500药学求调剂,一志愿山东大学药学,348分 +3 gr哈哈哈 2026-03-28 3/150 2026-03-30 18:56 by 源_2020
[考研] 356求调剂 +3 gysy?s?a 2026-03-28 3/150 2026-03-29 00:33 by 544594351
信息提示
请填处理意见