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

200219

게시판: 소스 코드 제출

//#include<stdio.h>

//int main()

//{

//

// int i,j,k,a,b,c,d,count=0;

// int map[105][105] = {0};

//

//

//

// for(i=0; i<4; i++)

// {

// scanf("%d %d %d %d",&a,&b,&c,&d);

// for(j=a; j<c; j++)

// {

// for(k=b; k<d; k++)

// {

// map[j][k]=1;

//

// }

// }

//

// }

// for(j=0; j<100; j++)

// {

// for(k=0; k<100; k++)

// {

// if(map[j][k]==1)

// count++;

// }

// }

//

// printf("%d",count);

//

//

//

//

//}

//#include<stdio.h>

//int main()

//{

//

// int h,w,n,i,d,x,y,k,a,b;

// int map[105][105] = {0};

//

// scanf("%d %d",&h,&w);

// scanf("%d",&n);

// for(k=0; k<n; k++)

// {

// scanf("%d %d %d %d",&i,&d,&x,&y);

// if(d==0)

// {

// for(a=y; a<y+i; a++)

// {

// map[x][a]=1;

// }

// }

// else if(d==1)

// {

// for(b=x; b<x+i; b++)

// {

// map[b][y]= 1;

// }

// }

// }

// for(a=1; a<=h; a++)

// {

// for(b=1; b<=w; b++)

// {

// printf("%d ",map[a][b]);

// }

// printf("\n");

// }

//

//

//}


//#include<stdio.h>

//int main()

//{

// int i,j;

// int map[100][100] = {0};

// int x=2;

// int y=2;

//

// for(i=1; i<=10; i++)

// {

// for(j=1; j<=10; j++)

// {

// scanf("%d",&map[i][j]);

// }

// }

// if(map[x][y] == 2)

// {

// map[x][y] = 9;

// }

// else

// {

// map[x][y] = 9;

// for(;;)

// {

// if(map[x][y+1]==0)

// {

// y++;

// map[x][y]=9;

// }

// else if(map[x][y+1]==2)

// {

// y++;

// map[x][y]=9;

// break;

// }

// else

// {

// if(map[x+1][y]==0)

// {

// x++;

// map[x][y]=9;

// }

// else if(map[x+1][y]==2)

// {

// x++;

// map[x][y]=9;

// break;

// }

// else

// {

// break;

// }

// }

// }

// }

//

// for(i=1; i<=10; i++)

// {

// for(j=1; j<=10; j++)

// {

// printf("%d ",map[i][j]);

// }

// printf("\n");

// }

//}


//#include<stdio.h>

//

//int main() {

// char words[10000] = {0};

// int i, n;

//

// //scanf("%s", words);

// gets(words);

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

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

// }

// printf("%s", words);

//

//

//}

//#include<stdio.h>

//int main(){

//

// char words[10000] = {0};

// int i,n;

//

// gets(words);

//

// printf("%s",words);

//

// }


//#include<stdio.h>

//int main()

//{

//

// char words[10000] = {0};

// char cnt[26]={0};

// int i;

//

//

// gets(words);

//

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

// {

// if(words[i] >= 'a' && words[i] <='z') {

// cnt[ words[i]-'a' ]++;

// }

// }

//

// for(i=0; i<26; i++) {

// printf("%c:%d\n", i+'a', cnt[i]);

// }

//

//}


//#include<stdio.h>

//#include<string.h>

//

//int main()

//{

//

// char words[100005] = {0};

// int cnt1=0;

// int cnt2=0;

// int i;

//

// scanf("%s",words);

//

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

// {

// if(words[i] == '(')

// {

// cnt1++;

// }

// else if(words[i] == ')')

// {

// cnt2++;

// }

// }

// printf("%d %d",cnt1,cnt2);

//

//

//

//}


//#include<stdio.h>

//#include<string.h>

//

//int main ()

//{

//

// char words[1005] = {0};

// int i;

//

// scanf("%s",words);

//

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

// {

// if(65<=words[i]&&words[i]<=90)

// {

// printf("%c",words[i]+32);

// }

// else if(97<=words[i]&&words[i]<=122)

// {

// printf("%c",words[i]-32);

// }

// else {

// printf("%c",words[i]);

// }

// }

//

//

//}


#include<stdio.h>

#include<string.h>



int main()

{


char words[1005] = {0};



scanf("%s",words);


if(strlen(words)==4)

{

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

{

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

{

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

{

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

{

printf("I love you.");


}

}

}

}

}



}


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