KakaoTalk_20190606_001802318.png
  • 246x0w
Welcome
Curriculum
Install&Go
Board
실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
  • 카테고리
  • 전체 게시물
  • 내 게시물
이재민
2020년 2월 22일

200222

게시판: 소스 코드 제출

/*

#include<stdio.h>


#include<string.h>




int main() {


char words[100]="hello hell world";


char receive[100]={0};


int i, k;



// strstr


scanf("%s", receive);


k = strlen(words);


for(i=0; i<strlen(words); i++) {


printf("%c : Address(%p)\n", words[i], &words[i]);


}



if(strstr(words, receive)) {


printf("INVITE ");


printf("%p\n\n", strstr(words, receive));


}



strcpy(words, "BYE");


words[3] = '-';


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



for(i=0; i<k; i++) {


printf("%c(%d) : Address(%p)\n", words[i],words[i], &words[i]);


}

}

*/








/*

#include <stdio.h>


#include <string.h>


int main()

{

char s[102];

int i;

gets(s);

for (i=0; i<strlen(s); i++){

if(s[i]==' '){


}

else {

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

}

}


}

*/





/*

#include <stdio.h>


#include <string.h>


int main()

{

int i,a=0,b=0;

char s[103];

scanf("%s",s);

for (i=0; i<strlen(s); i++){

if (s[i]=='c'||s[i]=='C'){

a++;

}

if (s[i]=='c'&&s[i+1]=='C'||s[i]=='C'&&s[i+1]=='c'||s[i]=='c'&&s[i+1]=='c'||s[i]=='C'&&s[i+1]=='C'){

b++;

}

}

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

printf("%d",b);

}

*/

/*

#include <stdio.h>


#include <string.h>


int main()

{

int i;

char s[13];

scanf("%s",s);

for (i=0; i<strlen(s); i++){

if(s[i]=='t'){

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

}

}

}

*/

#include <stdio.h>


#include <string.h>


int main()

{

int i,j=0,k=0;

char c[103];

scanf("%s",c);

for (i=0; i<strlen(c); i++){

if(c[0]=='I'&&c[1]=='O'&&c[2]=='I'&&strlen(c)==3){

j++;

}

else {

k++;

}

}

if(j>0){

printf("IOI is the International Olympiad in Informatics.");

}

else if(k>0){

printf("I don't care.");

}

}


댓글 0개
0
댓글 0개
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호