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


  the Manster(2005-09-21 20:34:56, Hit : 907, Vote : 145
 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);
}





54   Á¾¸¸¾Æ~~ [1]  Raiders'ace 2002/12/22 919 188
53   ÈÞ°¡ ¸·¹ÙÁöÀÇ ¾Æ½¬¿ò..... [4]  the Manster 2003/11/11 918 194
52   À½³Ä....63ºÐ¼öÇÁ¶óÀÚ;;;;  the Manster 2003/03/31 916 169
51   ÀüÇô ±Ù°Å¾ø´Â ¸Á»ó ½Ã³ª¸®¿À  the Manster 2007/08/09 914 205
50   ³»°¡ ÇöÀç »ç°í ½ÍÀº Ÿºí·¿ PC [5]  the Manster 2002/12/09 909 162
  Çõ¿ CÁ¶ 1ȸ ½Ç½À °á°ú¹°  the Manster 2005/09/21 907 145
48   ±Û Áß¿¡.... [1]  the Manster 2003/03/28 906 174
47   °è¼ÓÀûÀ¸·Î °Ô½ÃÆÇ Á¤¸® Áß....  the Manster 2005/05/02 904 181
46   [Åõ´úÅõ´ú] Áý¿¡¼­ ÄÄÅÍÇϱâ Èûµé´Ù. ±×·¡µµ.....  the Manster 2003/02/22 903 164
45   ¾Èµå·ÎÀÌµå °³¹ßÀÚ Áö¿ø¿ë À̷¼­ (ÇѱÛ(HWP) ¹öÀü)  the Manster 2010/01/12 901 223
44   À߸ø  the Manster 2003/06/29 897 191
43   »ó»ó·Â ÇÁ·ÎÁ§Æ® º¸°í¼­  the Manster 2008/10/31 897 188
42   È¤½Ã ³ª´Â..... [1]  the Manster 2003/02/21 896 167
41   ÇÏÇÏÇÏ ³ªµµ ±ÛÀ» ³²±â³×... [1]  ±è¹é¼ø 2002/09/21 896 118

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

Copyright 1999-2025 Zeroboard / skin by zero