±¤°í, ¿å¼³, µµ¹è±ÛÀº ±ÝÁöÀ̸ç, ÷ºÎÆÄÀÏ #1 : ±×¸²¸¸, ÷ºÎÆÄÀÏ #2 : ÀÏ¹Ý ÆÄÀϵµ ¿Ã¶ó°©´Ï´Ù. ¿ë·® Á¦ÇÑÀº 10MBÀÔ´Ï´Ù.


  the Manster(2005-09-21 20:34:56, Hit : 854, Vote : 124
 http://manster.nasol.net
 Çõ¿ CÁ¶ 1ȸ ½Ç½À °á°ú¹°

1¹ø ¹®Á¦ (1ºÎÅÍ 100±îÁö ´õÇÏ´Â ¹®Á¦)

#include<stdio.h>

void main()
{
  int a, tot;
  tot=0;

  for(a=0;a<101;a++)
  {
    tot=tot+a;
  }
  printf("%d %d\n",a,tot);
}



2¹ø ¹®Á¦ (1-1000±îÁöÁß¿¡¼­ nÀÇ ¹è¼öÀÇ ÇÕÀ» ±¸ÇÏ´Â ¹®Á¦ :
              º¯¼ö¸¦ longÀ¸·Î ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é overflow(¹üÀ§ Ãʰú)¹ß»ý)

#include <stdio.h>
void main()
{
        long a,tot,n;
        tot=0;
        scanf("%ld",&n);
        for(a=1;a<1001;a++)
        {
                if(a%n==0) tot=tot+a;
        }
        printf("%ld\n",tot);
}



3¹ø ¹®Á¦ (À±³â ã±â : ÇöÀç ¼Ò½º ²¿ÀÓ ´Ù½Ã È®Á¤Áö¾î À̾߱âÇϰÚÀ½;;;)

À±³âÀÇ Á¶°Ç

1. ¼­·Â ±â¿ø ¿¬¼ö°¡ 4·Î ³ª´©¾î ¶³¾îÁö´Â ÇØ´Â ¿ì¼± À±³âÀ¸·Î ÇÑ´Ù.
2. 100À¸·Î ³ª´©¾î ¶³¾îÁö´Â ÇØ´Â Æò³âÀ¸·Î ÇÑ´Ù.
3. 400À¸·Î ³ª´©¾î ¶³¾îÁö´Â ÇØ´Â ´Ù½Ã À±³âÀ¸·Î Á¤ÇÏ¿´´Ù.

#include <stdio.h>
void main()
{
        int a;
        scanf("%d",a);
        printf("%d\n",a);
        if((a%4==0&&a%100!=0)||a%400==0) printf("%d : Yoon Nyun",a);
        else printf("%d : Pyoung Nyun",a);
}





152   ÇØ»óº´ 479±â Àü»êº´ 115±â ROK NAVY À̺´ °í¿äÇѼ³¿ø 3¿ù29ÀϺηΠÈÞ°¡¸¦ ¸í ¹Þ¾Ò½À´Ï´Ù! [1]  °í¿äÇѼ³¿ø 2003/03/29 1222 134
151   Çرºº»ºÎ ¿À°í ¾ó¸¶ ÈÄ...  the Manster 2005/06/05 878 155
150   Çѵ¿¾ÈÀÇ ÇàÀû [2]  the Manster 2003/01/18 804 136
149   ÇÏÇÏÇÏ ³ªµµ ±ÛÀ» ³²±â³×... [1]  ±è¹é¼ø 2002/09/21 836 94
148   ÇÏÀ½.....  the Manster 2003/01/01 868 170
  Çõ¿ CÁ¶ 1ȸ ½Ç½À °á°ú¹°  the Manster 2005/09/21 854 124
146   ÇÁ·ÎÁ§Æ®.....´ë·« ÁÂÀý;;; [2]  the Manster 2005/12/03 872 141
145   Ç± ¤»¤» [1]  ³ëÇü¹Î 2005/11/09 920 177
144   Åä¿äÀÏÀ̱º;;; [12]  the Manster 2002/10/05 820 154
143   Å±ǵµ.......  the Manster 2005/06/25 963 160
142   Å¯....´ëÆøÀûÀÎ Áý Á¤¸®Áß;;; [1]  the Manster 2003/02/04 900 144
141   Å« °¡°Ô¿¡´Â È¥ÀÚ°¡¸é ¾ÈµË´Ï´Ù....¿Ö³ª¸é  the Manster 2005/06/25 2253 173
140   Å©ÇãÇãÇã Æ¯¹ÚÀÌ´å Æ¯¹ÚÀ̾ß~  the Manster 2003/09/10 813 144
139   Ãâó ºÒºÐ¸í ±×¸² 01  the Manster 2003/01/01 912 174

[1] 2 [3][4][5][6][7][8][9][10][11][12]
 

Copyright 1999-2021 Zeroboard / skin by zero