1596, 10/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 : 11208     Date : 2014/10/26 12:37



    
ehaakdl Àç¹Ô³×¿© Ȥ½Ã °°ÀÌ ¿Â¶óÀÎÀ̳ª ¿ÀÇÁ¶óÀÎÀ¸·Î ½ºÅ͵ð ÇϽǷ¡¿©? ¿äÁò ÇÁ·Î±×·¡¹ÖÇϱⰡ ±ÍÂú¾ÆÁ®¼­ ÀÌ·± ¸ðÀÓÁ» °¡Á®º¼·Á´Âµ¥ ¸®´ª½ºµµ ÇÏ°í °ü½É ÀÖÀ¸½Ã¸é ehaakdl@naver.com¸ÞÀÏÀ̳ª ÂÊÁö ÁÖ¼¼¿© 2014/11/10  
gohuns123 ±Â 2015/01/14  
zades soma good 2024/03/23  
1416   ¸®´ª½º ¸í·É¾î[1]     ruzun88
03/10 12186
1415   ½ºÇǾîÇǽÌ(³×À̹öÁö½Ä¹é°ú)-½Ã»ç»ó½Ä»çÀü, ¹Ú¹®°¢[1]     melody05
02/11 10271
1414   [ÀÚÀÛ]¹«Â÷º° ´ëÀÔ°ø°Ý(brute force attack)°­Á ¸ñ·Ï     h@cking2013
02/11 10870
1413   [ÀÚÀÛ]¹«Â÷º° ´ëÀÔ°ø°Ý(brute force attack)°­Á 2     h@cking2013
02/11 9113
1412   ¸®´ª½º °í½ºÆ® Ãë¾àÁ¡ Á¸Àç ½Ã º¸¾È ÆÐÄ¡ ÇÊ¿ä     melody05
02/10 9288
1411   °øÀ¯±â·Î Æ÷ÅÐ Á¢¼Ó½Ã Smart ¾÷µ¥ÀÌÆ® ¸Þ½ÃÁö ÁÖÀÇ     melody05
02/10 9193
1410   µå¶óÀÌºê ¹ÙÀÌ ´Ù¿î·Îµå     melody05
02/09 9942
1409   [Æß]¿ìºÐÅõ(ubuntu) »ç»óÀ̶õ?     ±èº´±Ç
02/04 10743
1408   Àü³²/±¤ÁÖ ¿¡¼­ ½º½Â´ÔÀ̳ª °øºÎ°°ÀÌÇϽǺР±¸ÇÕ´Ï´Ù[2]     kcddu1004
01/31 8821
1407   [ÀÚÀÛ]¹«Â÷º° ´ëÀÔ°ø°Ý(brute force attack)°­Á 1     h@cking2013
01/24 14469
1406   ÇØÄ¿ºÐ ±¸ÇÕ´Ï´Ù[4]     lakorea00
01/16 8584
1405   [Æß][µ¿°­]¿©·¯°¡Áö[1]     oh29544
12/30 8927
1404   Èì...Æ®·¹ÀÌ´× ¸¶Ä¡°í³­ÈÄ level1 Áú¹®[1]     jinsang9983
12/12 8179
1403   Èü ¿À¹öÇÃ·Î¿ì ³»¿ëÀÔ´Ï´Ù.     oldlove7
12/11 8925
1402   ¾Èµå·ÎÀÌµå º¸¾È ÄÚµù °¡À̵å ÀÔ´Ï´Ù.     oldlove7
12/11 9307
1401   c ¾ð¾î º¸¾È ÄÚµù °¡À̵å ÀÔ´Ï´Ù.     oldlove7
12/11 10534
1400   ÀÚ¹Ù º¸¾È ÄÚµù °¡À̵å ÀÔ´Ï´Ù.[1]     oldlove7
12/11 8725
1399   ¹öÆÛ¿À¹öÇ÷οì ÀÚ·áÀÔ´Ï´Ù.[2]     oldlove7
12/04 9102
1398   RSA °ø°³Å° ±¸ÇÏ´Â ¼Ò½º ÄÚµå ÀÔ´Ï´Ù.[1]     oldlove7
12/03 10844
1397   sql ÀÎÁ§¼Ç ÀÚ·áÀÔ´Ï´Ù.[1]     oldlove7
12/03 8290
[1][2][3][4][5][6][7][8][9] 10 ..[80]

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