»ó´ã¹®ÀÇ

¤ý HOME > »ó´ã¹®ÀÇ > Á¤º¸Ã³¸®±â»ç ½Ç±â
Á¦ ¸ñ ¿©·¯¹ø Çغôµ¥ ¼Ò½º ¿Ã¸®·Á°í ÇÏ¸é ¿¡·¯°¡ ¶ß´Âµ¥¿ä.....¤Ì¤Ì;;
±Û¾´ÀÌ  ±Ç¿ì¼®ÀÛ¼ºÀÏ 2005-03-29Á¶È¸¼ö 595
±Û°øÀ¯
°Ô½Ã±ÛÀ» twitter·Î º¸³»±â°Ô½Ã±ÛÀ» facebookÀ¸·Î º¸³»±â°Ô½Ã±ÛÀ» Me2Day·Î º¸³»±â°Ô½Ã±ÛÀ» ¿äÁòÀ¸·Î º¸³»±â

ÀÌ·¸°Ô ¼Ò½ºÄÚµùÇØ º¸¼¼¿ä.



¾ÈµÇ¸é ÀÔ·ÂÆÄÀÏÀ» ¸ÞÀÏ·Î º¸³»Áֽñ⠹ٶø´Ï´Ù. ^^



Option Explicit



Sub main()



    ''Çʼö º¯¼ö ¼±¾ð
    Dim Àμö1, Àμö2, i, ¹öÆÛ As Variant
   
    ''ÇÙ½É º¯¼ö ¼±¾ð
    Dim ¿­Â÷ÄÚµå, ¿ùÀÌ¿ëȽ¼ö, ¿©Çà°Å¸®, ž½ÂÀοø, ÇÕ°è(1000), Á¼®ÄÚµå(1000), °í°´¹øÈ£(1000), j, Temp, Num As Variant
   
    ''Àμö ó¸®
    Àμö1 = Val(Left(Command, InStr(Command, " ")))
    Àμö2 = Val(Mid(Command, InStr(Command, " ")))
   
    ''ÀÔ·Â ÆÄÀÏ Ã³¸®
    Open "c:\c_it\data\abc015.txt" For Input As #1
   
        For i = 1 To Àμö2
            Line Input #1, ¹öÆÛ
            If i >= Àμö1 Then
           
                ''º¯¼ö ÀúÀå
                ¿­Â÷ÄÚµå = Trim(Mid(¹öÆÛ, 7, 1))
                ¿ùÀÌ¿ëȽ¼ö = Val(Mid(¹öÆÛ, 32, 2))
                ¿©Çà°Å¸® = Val(Mid(¹öÆÛ, 27, 5))
                ž½ÂÀοø = Val(Mid(¹öÆÛ, 24, 3))
               
                ''¹è¿­º¯¼ö ±¸Çϱâ
                If ¿­Â÷ÄÚµå = "Z" Or ¿ùÀÌ¿ëȽ¼ö >= 7 Then
                    Num = Num + 1
                    ÇÕ°è(Num) = ¿©Çà°Å¸® - ž½ÂÀοø
                    Á¼®ÄÚµå(Num) = Trim(Mid(¹öÆÛ, 8, 2))
                    °í°´¹øÈ£(Num) = Val(Mid(¹öÆÛ, 1, 5))
                End If
               
            End If
        Next i
               
        ''Á¤·Ä(ÇÕ°è ³»¸²Â÷¼ø or (ÇÕ°è °°À½ and °í°´¹øÈ£ ¿À¸§Â÷¼ø))
        For i = 1 To Num
            For j = i To Num
           
                If ÇÕ°è(i) < ÇÕ°è(j) Or _
                    (ÇÕ°è(i) = ÇÕ°è(j) And °í°´¹øÈ£(i) > °í°´¹øÈ£(j)) Then
                   
                    Temp = ÇÕ°è(i)
                    ÇÕ°è(i) = ÇÕ°è(j)
                    ÇÕ°è(j) = Temp
                   
                    Temp = Á¼®ÄÚµå(i)
                    Á¼®ÄÚµå(i) = Á¼®ÄÚµå(j)
                    Á¼®ÄÚµå(j) = Temp
                   
                    Temp = °í°´¹øÈ£(i)
                    °í°´¹øÈ£(i) = °í°´¹øÈ£(j)
                    °í°´¹øÈ£(j) = Temp
                   
                End If
               
            Next j
        Next i
    Close #1
   
    ''Ãâ·Â ÆÄÀÏ Ã³¸®
    Open "c:\c_it\data\ans1.txt" For Output As #2
       
        Print #2, Àμö1, Àμö2, Á¼®ÄÚµå(11)
       
    Close #2
   
End Sub
 

´ñ±Û¾²±â :
ÀÌÀü±Û ±Ç°­»ç´Ô °¨¼ÝÇÕ´Ï´Ù ^^ ;; Á¤´äÀÔ´Ï´Ù ¿À·§µ¿¾È ÇØ°á¾ÈµÇ¾ú´Âµ¥ °¨¼ÝÇØ¿ä.....(³Ã¹«)
´ÙÀ½±Û ¹®Á¦°¡ ¾È Ç®·Á¿©..¤Ð.¤Ð
°í°´Áö¿ø¼¾ÅÍ

02-556-3650

ÆòÀÏ 9:00~18:00

ÀÏ¿äÀÏ °øÈÞÀÏ ÈÞ¹«

°èÁ¹øÈ£¾È³»

³óÇùÀºÇà 724-01-173541

±¹¹ÎÀºÇà 633601-04-044665

¿¹±ÝÁÖ (ÁÖ)Á¶ÀºÄ·ÇÁ

»óÈ£¸í : (ÁÖ)Á¶ÀºÄ·ÇÁ ¤Ó ´ëÇ¥ÀÌ»ç : ÀÌÀ¯¶ô ¤Ó ´ë±¸±¤¿ª½Ã ºÏ±¸ ´ëÇзÎ80 °æºÏ´ëÇб³ ITÀ¶ÇÕ»ê¾÷ºôµù 11Ãþ
»ç¾÷ÀÚ¹øÈ£ : 504-81-62507 ¤Ó º»»ç : 053-954-0030 ¤Ó ±â¼úÁö¿ø : 070-7019-1144 ¤Ó Æѽº : 050-7711-2200 ¤Ó 
¿ø°ÝÆò»ý±³À°½Ã¼³13È£ ¤Ó ÃâÆÇ»ç : 345-2005-00013 ¤Ó Åë½ÅÆǸž÷ : 2005-´ë±¸ºÏ±¸-00158 ¤Ó Á¤º¸º¸È£Ã¥ÀÓÀÚ : ±è⿬  
±â»çÄ£±¸´Â SSLº¸¾È¹æ½ÄÀÇ ¾Ïȣȭ±¸°£À» Àû¿ëÇÏ¿© »çÀÌÆ®¸¦ ¾ÈÀüÇÏ°Ô ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
COPYRIGHT 2005 (ÁÖ)Á¶ÀºÄ·ÇÁ ALL RIGHTS RESERVED.°ü¸®ÀÚ¿¡°Ô ¸ÞÀϺ¸³»±â