1588, 6/80 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   0226daniel
   ¼Ò¼ö ±¸ÇÏ´Â ÇÁ·Î±×·¥

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Lectures&no=8069 [º¹»ç]


Áß 1 ¼öÇн𣿡 Çб³¿¡¼­ ¼Ò¼ö¸¦ ¹è¿ì´Âµ¥,

¹è¿ì´Â µµÁß ¹®µæ c¾ð¾î Äڵ尡 »ý°¢³ª¼­ Áý¿¡¿Í¼­ Çѹø ¸¸µé¾î º¸¾Ò½À´Ï´Ù.

ÀÏ´Ü ¼Ò½º¸¦ º¸½ÃÁÒ.


Colored By Color Scripter¢â
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
        
#include <stdio.h>
void main()
{
    unsigned long long i, j, count = 1, s_max;
    long sum = 0;
    FILE *out;
    out = fopen("a.txt", "w");
    printf("¾îµð±îÁöÀÇ ¼Ò¼ö¸¦ Ãâ·ÂÇϽðٽÀ´Ï±î?");
    scanf("%lld", &s_max);

    for(i=1;i<=s_max;i++){
        for(j=2;j<i;j++){
            if((i%j)==0)
                break;
        }
        if(i==j){
            fprintf(out, "%lld\t", i);
            printf("%lld\t", i);
            count++;

            if((count%8)==0)
                fprintf(out, "\n");
                printf("\n");
        }
    }
    fprintf(out, "\n1ºÎÅÍ %lld ±îÁöÀÇ ¼Ò¼ö´Â %lld°³ ÀÔ´Ï´Ù.", s_max, count);
    printf("\n1ºÎÅÍ %lld ±îÁöÀÇ ¼Ò¼ö´Â %lld°³ ÀÔ´Ï´Ù.", s_max, count);
    fclose(out);
}



¸ðµç ¼ýÀÚ¸¦ µ¥ÀÔÇؼ­ ¼Ò¼ö¸¦ ã´Â Çü½ÄÀ¸·Î ÇÑ °á°ú







¿ª½Ã ¼º°øÀûÀÌ¿´½À´Ï´Ù!!

ÇÏÁö¸¸ ´õ Å« ¼ýÀÚ¸¦ ÇÏ°Ô µÇ¸é







ÀÌ¿Í °°ÀÌ ¸Å¿ì ´À¸° ¼Óµµ·Î ¿¬»êÀ» ÇÏ°Ô µË´Ï´Ù.​

±×·¡¼­!!

´Ù½Ã ¸¸µé°Ô µÇ¾ú½À´Ï´Ù.​


Colored By Color Scripter¢â
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
        
#include<stdio.h>

int main()
{
    FILE *out;
    out = fopen("a.txt", "w");
    unsigned int n, x, y, count=0;
    printf("¾îµð±îÁöÀÇ ¼Ò¼ö¸¦ Ãâ·ÂÇϽðٽÀ´Ï±î?");

    scanf("%d", &n);
    x=1;
    if(n>0){
        fprintf(out, "2\t");
        printf("2\t");
        count++;
    while(x+2<n) {
        x+=2;
        y=3;
        while(y*y<x && x%y!=0){
            y+=2;
        }
        if(y*y>x) {  
            fprintf(out, "%d\t", x);
            printf("%d\t", x);
            count++;
            if((count%8)==0){
                fprintf(out, "\n");
                printf("\n");
            }
        }
    }
    fprintf(out, "\n1ºÎÅÍ %d ±îÁöÀÇ ¼Ò¼ö´Â %d°³ ÀÔ´Ï´Ù.", n, count);
    return 0;
    }
}



ÀÌ ¹æ¹ýÀº 2¸¦ Á¦¿ÜÇÑ È¦¼öµé¸¸ ã´Â Çü½ÄÀÔ´Ï´Ù.

°ú¿¬ ÀÌ ¹æ¹ýÀº È¿°ú°¡ ÀÖÀ»±î¿ä??







¿ª½Ã È®¿¬ÇÑ Â÷À̸¦ º¸À̳׿ä

ÀÌ»óÀÔ´Ï´Ù^^

±×¸²&µ¿¿µ»óÀ» º¸½Ã·Á¸é http://blog.naver.com/0226daniel/220035729531

  Hit : 11076     Date : 2014/10/26 12:37



    
ehaakdl Àç¹Ô³×¿© Ȥ½Ã °°ÀÌ ¿Â¶óÀÎÀ̳ª ¿ÀÇÁ¶óÀÎÀ¸·Î ½ºÅ͵ð ÇϽǷ¡¿©? ¿äÁò ÇÁ·Î±×·¡¹ÖÇϱⰡ ±ÍÂú¾ÆÁ®¼­ ÀÌ·± ¸ðÀÓÁ» °¡Á®º¼·Á´Âµ¥ ¸®´ª½ºµµ ÇÏ°í °ü½É ÀÖÀ¸½Ã¸é ehaakdl@naver.com¸ÞÀÏÀ̳ª ÂÊÁö ÁÖ¼¼¿© 2014/11/10  
gohuns123 ±Â 2015/01/14  
zades soma good 2024/03/23  
1488   ½Ã½ºÅÛ ÇØÅ·[2]     phan_tom0
12/02 10669
1487   ½ÃÀÛÇß½À´Ï´Ù.[1]     dhuh
03/02 8414
1486   ¼­¿ï, °æ±â ÇØÅ· ½ºÅ͵ð¿ø ¸ðÁýÇÕ´Ï´Ù.[5]     Angeldust12
11/19 9433
1485   ¼­¿ï , °æ±â Áö¿ª¿¡¼­ ÇØÅ· ½ºÅ͵𠰰ÀÌ ÇϽǺР¸ðÁýÇÕ´Ï´Ù~[1]     loveaaav
03/24 8803
1484   ¼­ºñ½º °ÅºÎ °ø°Ý     Nuker
12/28 7187
1483   ¼­¹ö¿ë·®ÀÌ ºÎÁ·ÇÒ¶§ ÆÄÀÏ¿ë·® Å« ¼øÀ§ 100À§ ã¾Æ¼­ ÆÄÀÏ·Î ¸¸µé±â     rootguy
12/28 9028
1482   ¼­¹ö°ü¸®½Ã Áß¿äÇÑ kill ¸í·É¾î[2]     rootguy
12/10 11509
1481   ¼Ò½º°ª°ú ±ØÇÑÀ» ÀÌ¿ëÇÑ È®·ü lim x°¡ ±ØÇÑÀ¸·Î °¡´Â »ç°ÇÀÇ ÇÊ¿¬¼º     jjang2437
06/14 8722
1480   ¼Ò½ºÄڵ带 ¿Ã¸± ¶§     solver
10/22 8801
  ¼Ò¼ö ±¸ÇÏ´Â ÇÁ·Î±×·¥[3]     0226daniel
10/26 11075
1478   ¼ÒÄÏ ÇÁ·Î±×·¡¹Ö[5]     ¼ÒÀ¯
09/11 17324
1477   ¼Ë´Ù¿î ÇÁ·Î±×·¥ (Á¦°¡ ¸¸µé¾ú½À´Ï´Ù ¤»¤»¤»)[10]     benkim
04/16 9308
1476   »ó¼Ó, ¿À¹ö¶óÀ̵ù, ´ÙÁß»ó¼Ó     tmdrbs9021
10/13 10011
1475   »õ·Î¿î ÀÎÅÍ³Ý º¸¾È¹ý VPN!![6]     6Moderato
09/06 9903
1474   »ç¼³³×Æ®¿öÅ©ÀÇ ÁÖ¼Ò[7]     kaca2100
10/20 7266
1473   »çȸ°øÇÐ[4]¿Â¶óÀλ󿡼­ÀÇ »çȸ°øÇÐ[8]     idl0521
10/07 9105
1472   »çȸ°øÇÐ[3]´ý½ºÅÍ ´ÙÀ̺ù[8]     idl0521
10/06 9573
1471   »çȸ°øÇÐ[2](¸ñÇ¥¿Í °ø°Ý, ÀüÈ­¸¦ ÀÌ¿ëÇÑ »çȸ°øÇÐ °ø°Ý)[7]     idl0521
10/06 9297
1470   »çȸ°øÇÐ[1]Á¤ÀÇ[7]     idl0521
10/05 8446
1469   »çÀÌÆ®°¡ ÈÕÇϳ׿ä?¤Ñ.¤Ñ?[5]     unlimited85
12/21 7263
[1][2][3][4][5] 6 [7][8][9][10]..[80]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org