top of page

소스 코드 제출

공개·회원 50명

20250809

/*#include <stdio.h>

int main()

{

char n[101]={};

int a, p, s=0, t=0;

scanf("%s", n);

a=strlen(n);

for(p=0;p<a;p=p+1)

{

if(n[p]=='c'||n[p]=='C')

{

s=s+1;

n[p]=10;

}

if(n[p]==10&&n[p-1]==10)

{

t=t+1;

}

}

printf("%d\n", s);

printf("%d", t);

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char s[21]={};

int p, n;

scanf("%s", s);

p=strlen(s);

for(n=0;n<p;n=n+1)

{

printf("'%c'\n", s[n]);

}

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char s[101]={};

int p, r;

scanf("%s", s);

r=strlen(s);

for(p=0;p<r;p=p+1)

{

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

{

s[p]=' ';

}

}

printf("%s", s);

return 0;

}

*/

/**ASCII CODE (아스키코드) :모든 문자는 고유 코드 넘버가 있다


'\0' 0 NULL


' ' 32

'A' 65

'B' 66

'C' 67

...

'Z'


'a' 97

'b' 98

...

'z'



#include <stdio.h>

#include <string.h>

int main()

{

char str[500]="32465748746541324867";

// str[0] = '3'

// str[1] = '2'

// str[2] = '4'

// ...

// printf("%c\n",'a'-32);

// printf("%c\n",'A'+32);

// //printf("%d\n",'a');

//

// printf("%c\n",'0');

// printf("%d",'0');

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char n[21]={};

int s, p;

scanf("%s", n);

s=strlen(n);

for(p=0;p<s;p=p+1)

{

printf("%c", n[p]+2);

}

printf("\n");

for(p=0;p<s;p=p+1)

{

printf("%c", (n[p]*7)%80+48);

}

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char n[201]={};

int s, p;

gets(n);

s=strlen(n);

for(p=0;p<s;p=p+1)

{

if(n[p]==' ')

{

printf(" ");

}

else if(n[p]>99)

{

printf("%c", n[p]-3);

}

else

{

printf("%c", n[p]+23);

}

}

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char a[201]={};

int s, p;

gets(a);

s=strlen(a);

for(p=0;p<s;p=p+1)

{

if(a[p]==' ')

{

printf(" ");

}

else if(a[p]<120)

{

printf("%c", a[p]+3);

}

else

{

printf("%c", a[p]-23);

}

}

return 0;

}

*/

/*#include <stdio.h>

int main()

{

char s[1001]={};

int p, r;

scanf("%s", s);

p=strlen(s);

for(r=0;r<p;r=r+1)

{

if(s[r]>64&&s[r]<91)

{

printf("%c", s[r]+32);

}

else if(s[r]>96&&s[r]<123)

{

printf("%c", s[r]-32);

}

else

{

printf("%c", s[r]);

}

}

return 0;

}

*/

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