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

200514

게시판: 소스 코드 제출

/*

#include <stdio.h>

#include <stdlib.h>


int main()

{

printf("Hello world!\n");

return 0;

}

*/

/*

#include <stdio.h>

#include <string.h>

char *mysubstr(char *str, int start, int count)

{

int i;

for(i=start;i<=start+count;i++){

return i;

}


}

int main()

{

char str[10000]={};

int start,count,i;

scanf("%s",str);

scanf("%d %d",&start,&count);


printf("%s\n",mysubstr(str,start,count));

return 0;

}

*/

/*

#include <stdio.h>


struct student

{

int num;

int birth;

char name[10];

};


int main(){


struct student a;


a.birth = 2005;

a.num = 1;


printf("%d\n%d",a.birth,a.num);

return 0;

}



*/

/*

#include <stdio.h>

struct student

{

int pts;

int rank;

};

int main()

{

int a,i,j,cnt=0;

struct student st[201]={0};;

scanf("%d",&a);

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

scanf("%d",&st[i].pts);

}

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

cnt=1;

for(j=0;j<a;j++){

if(st[i].pts<st[j].pts){

cnt++;

}

}

st[i].rank=cnt;

printf("%d %d\n",st[i].pts,cnt);

}

return 0;

}

*/

/*

#include <stdio.h>

struct student

{

int country;

int num;

int pts;

};

int main()

{

int n,i,j,max=0,mi;

int c[100] = {};

struct student st[100]= {0};

scanf("%d",&n);

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

scanf("%d",&st[i].country);

scanf("%d",&st[i].num);

scanf("%d",&st[i].pts);

}

max = st[0].pts;

mi=0;

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

max = 0;

for(j=0;j<n;j++){

if(st[j].pts>max){

max = st[j].pts;

mi=j;

}

}

printf("%d %d\n",st[mi].country,st[mi].num);

st[mi].pts = 0;

c[st[mi].country]++;


if(c[st[mi].country]>=2){

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

{

if(st[j].country==st[mi].country)

st[j].pts = 0;

}

}

}

return 0;

}

*/

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