top of page

소스 코드 제출

공개·회원 50명

20250802

/*#include <stdio.h>

int main()

{

char s[11]={};

int p;

scanf("%s", s);

for(p=0;s[p]!=NULL;p=p+1)

{

if(s[p]=='t')

{

printf("%d ", p+1);

}

}

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char a[16]={};

scanf("%s", a);

if(a[0]=='l')

{

if(a[1]=='o')

{

if(a[2]=='v')

{

if(a[3]=='e')

{

if(a[4]==NULL)

{

printf("I love you.");

}

}

}

}

}

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char t[101]={};

int p;

gets(t);

for(p=0;t[p]!=NULL;p=p+1)

{

if(t[p]!=' ')

{

printf("%c", t[p]);

}

}

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char a[1001]={};

int s=0, p;

gets(a);

for(p=0;a[p]!=NULL;p=p+1)

{

s=s+1;

}

printf("%d", s);

return 0;

}

*/

/*#include <stdio.h>

#include <string.h>

int main()

{

char n[25]={};


int t, s=0;

scanf("%s", n);

s = strlen(n); //strlen(문자열이름) 문자열의 길이 구하기

for(t=s-1;t>=0;t=t-1)

{

printf("%c", n[t]);

}

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char s[21]={}, rs[21]={}, ls[21]={};

int t, rt, lt;

scanf("%s %s %s", s, rs, ls);

t=strlen(s);

rt=strlen(rs);

lt=strlen(ls);

if(s[t-1]==rs[0] && rs[rt-1]==ls[0] && ls[lt-1]==s[0])

{

printf("good");

}

else

{

printf("bad");

}

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char n[101]={};

int p, t=0;

gets(n);

for(p=0;n[p]!=NULL;p=p+1)

{

if(n[p]=='l'&&n[p+1]=='o'&&n[p+2]=='v'&&n[p+3]=='e')

{

t=t+1;

}

}

printf("%d", t);

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char s[55]={};

int n, a=0;

scanf("%s", s);

for(n=0;s[n]!=NULL;n=n+1)

{

if(s[n]!=s[n+1])

{

a=a+10;

}

else

{

a=a+5;

}

}

printf("%d", a);

return 0;

}

*/

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