top of page

소스 코드 제출

공개·회원 50명

250718

#include <stdio.h>

void omg()

{

printf("oh my god!! ");

}

int a=0, s=0, d=0, f=0, n=0, sddaddo, endo, fasd[3141], asd[3141];

int NOT_generator_YES_selfish_number(int n)

{

int i;

for(i=1; i<3141; i++)

{

if(i<10)

{

fasd[f]=i*2;

f++;

}else

{

a=i;

d+=i/10;

a-=d*10;

d+=a+i;

fasd[f]=d;

d=0;

f++;

}

printf("%d\n", fasd[f-1]);

}

}/*

int NOT_selfish_number_YES_generator(int sddaddo, int endo)

{

int i, j, HYUNSEOs_IQ=0, mlscmlsc=0, joefjoefjoefjoef=0, tpose=0;

for(i=1; i<=3141; i++)

{

asd[joefjoefjoefjoef]=i;

joefjoefjoefjoef++;

}

for(i=0; i<=endo; i++)

{

for(j=0; j<=endo; j++)

{

if(asd[i]==fasd[j])

{

tpose=1;

}

}

if(tpose==0)

{

asd[i]=

}

}

printf("%d", HYUNSEOs_IQ);

}*/

int main()

{

scanf("%d %d", &sddaddo, &endo);

NOT_generator_YES_selfish_number(sddaddo, endo);

}

1회 조회
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546 ,     031) 215 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호
bottom of page