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



    
ehaakdl Àç¹Ô³×¿© Ȥ½Ã °°ÀÌ ¿Â¶óÀÎÀ̳ª ¿ÀÇÁ¶óÀÎÀ¸·Î ½ºÅ͵ð ÇϽǷ¡¿©? ¿äÁò ÇÁ·Î±×·¡¹ÖÇϱⰡ ±ÍÂú¾ÆÁ®¼­ ÀÌ·± ¸ðÀÓÁ» °¡Á®º¼·Á´Âµ¥ ¸®´ª½ºµµ ÇÏ°í °ü½É ÀÖÀ¸½Ã¸é ehaakdl@naver.com¸ÞÀÏÀ̳ª ÂÊÁö ÁÖ¼¼¿© 2014/11/10  
gohuns123 ±Â 2015/01/14  
zades soma good 2024/03/23  
     [°øÁö] °­Á¸¦ ¿Ã¸®½Ç ¶§´Â ¸»¸Ó¸®¸¦ ´Þ¾ÆÁÖ¼¼¿ä^¤Ñ^ [29] ¸Û¸Û 02/27 19448
1595   [pwnable.kr] Shellshock[1]     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 96
1594   ShellshockÀÇ ±âº» ¿ä¾à     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 77
1593   [pwnable.kr] fd     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 70
1592   VPNÀÌ ¿¬°áµÇ¾ú´Ù°¡ µµÁß¿¡ ²¨µµ À¥ ºê¶ó¿ìÀú»ó¿¡¼­ À¯ÁöµÇ´Â ÀÌÀ¯     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/22 77
1591   ÇØÄ¿µéÀÌ ÇØÅ·½Ã »ç¿ëÇÏ´Â µð·ºÅ丮 °ø°£[1]     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/22 115
1590   Keyboard Hooking -part2 - (Python3 ver)     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/20 84
1589   [Windows API] Keyboard Hooking     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/20 74
1588   [pwnable.kr] cmd1 °ø·«     ÇØÅ·ÀßÇÏ°í½Í´Ù
10/23 236
1587   netdiscover ÆÄÀ̽ãÀ¸·Î ±¸ÇöÇϱ⠠   ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 515
1586   ÆÄÀ̽ãÀ» ÀÌ¿ëÇÑ ½ÉÇà À¥ Å©·Ñ·¯     ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 407
1585   ÆÄÀ̽ã random¸ðµâÀ» ÀÌ¿ëÇÑ ¼ýÀÚ¸ÂÃ߱⠰ÔÀÓ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/30 957
1584   ÆÄÀ̽ã äÆà ÇÁ·Î±×·¥ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/28 845
1583   ÆÄÀ̽㠼ÒÄÏ ÇÁ·Î±×·¡¹ÖÀÇ ±âÃÊ     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/26 987
1582   ¸®´ª½º À¥ ·Î±× ºÐ¼®     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 675
1581   ¸®´ª½º/À©µµ¿ì º¸¾È Àåºñ ·Î±×     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 825
1580   °í¼ö´ÔµéÀÇ µµ¿òÀ» ¹Þ°í ½Í½À´Ï´Ù     vbnm111
02/11 914
1579   ¸®´ª½º Ä¿³Î 2.6 ¹öÀü ÀÌÈÄÀÇ LKM     jdo
07/25 1430
1578   ½©ÄÚµå ¸ðÀ½     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 2306
1577   Call by value VS Call by Reference     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 1606
1 [2][3][4][5][6][7][8][9][10]..[80]

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