Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

CodeRace/2016/초코하임: Difference between revisions

From ZeroWiki
imported>chj878194
No edit summary
imported>chj878194
No edit summary
Line 14: Line 14:
  }
  }
== 문제 2 ==
== 문제 2 ==
  여기에 코드를 넣어주세요
  #include<stdio.h>
void main()
{
int a[8], chk=0;
printf("@@@@@@@@@@@@@@@@@@@@@@@@\n@ 초코하임반          @\n@ 멘토: 최현준        @\n@ 멘티: 김경찬, 변영무 @\n@@@@@@@@@@@@@@@@@@@@@@@@\n\n\n");
printf("Team: 최현준 김경찬 변영무\n");
while (4)
{
scanf(" %d %d %d %d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &a[4], &a[5], &a[6], &a[7]);
for (int i = 0; i < 4; i++)
{
if (a[i] == 1)
{
chk++;
}
}
if (chk == 4)
{
break;
}
chk = 0;
for (int i = 0; i < 8; i++)
{
printf("%d ", a[i]);
}
printf("\n");
}
}
== 문제 3 ==
== 문제 3 ==
  여기에 코드를 넣어주세요
  여기에 코드를 넣어주세요

Revision as of 10:34, 20 May 2016

CodeRace 2016 답안 제출 포멧입니다.


강사: 최현준 새싹: 변영무, 김경찬

문제 1

#include<stdio.h>

void main()
{
	printf("@@@@@@@@@@@@@@@@@@@@@@@@\n@ 초코하임반           @\n@ 멘토: 최현준         @\n@ 멘티: 김경찬, 변영무 @\n@@@@@@@@@@@@@@@@@@@@@@@@\n\n\n");

	printf("Team: 최현준 김경찬 변영무\n");
}

문제 2

#include<stdio.h>

void main()
{

	int a[8], chk=0;
	printf("@@@@@@@@@@@@@@@@@@@@@@@@\n@ 초코하임반           @\n@ 멘토: 최현준         @\n@ 멘티: 김경찬, 변영무 @\n@@@@@@@@@@@@@@@@@@@@@@@@\n\n\n");

	printf("Team: 최현준 김경찬 변영무\n");



	while (4)
	{
		scanf(" %d %d %d %d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &a[4], &a[5], &a[6], &a[7]);
		for (int i = 0; i < 4; i++)
		{
			if (a[i] == 1)
			{
				chk++;
			}
		}
		if (chk == 4)
		{
			break;
		}
		chk = 0;

		for (int i = 0; i < 8; i++)
		{
			printf("%d ", a[i]);
		}
		printf("\n");
		
	}

}

문제 3

여기에 코드를 넣어주세요

문제 4

여기에 코드를 넣어주세요

문제 5

여기에 코드를 넣어주세요

문제 6

여기에 코드를 넣어주세요

CodeRace CodeRace/2016