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

존C나 코드레이스: Difference between revisions

From ZeroWiki
imported>gmawjd681
No edit summary
imported>gmawjd681
No edit summary
Line 20: Line 20:
  {
  {
  scanf("%d %d %d %d %d %d %d %d", &a[i][0], &a[i][1], &a[i][2], &a[i][3], &a[i][4], &a[i][5], &a[i][6], &a[i][7]);
  scanf("%d %d %d %d %d %d %d %d", &a[i][0], &a[i][1], &a[i][2], &a[i][3], &a[i][4], &a[i][5], &a[i][6], &a[i][7]);
  if (a[i][0] == 1 && a[i][1] == 1 && a[i][2] == 1 && a[i][3] == 1 && a[i][4] == 0 && a[i][5] == 0 && a[i][6] == 0 && a[i][7] == 0)
  if (a[i][0] == 1 && a[i][1] == 1 && a[i][2] == 1 && a[i][3] == 1 )
  {
  {
  break;
  break;

Revision as of 10:48, 20 May 2016

강사이름: 곽정흠 새싹이름: 문영호

문제 1

#include <stdio.h>

int main()
{
	printf("Team: 곽정흠 문영호");
	return 0;
}

문제 2

#include <stdio.h>

int main()
{
	int a[100][8], i=0;
	printf("Team: 곽정흠 문영호\n");
	while (1)
	{
		scanf("%d %d %d %d %d %d %d %d", &a[i][0], &a[i][1], &a[i][2], &a[i][3], &a[i][4], &a[i][5], &a[i][6], &a[i][7]);
		if (a[i][0] == 1 && a[i][1] == 1 && a[i][2] == 1 && a[i][3] == 1 )
		{
			break;
		}
		i++;
	}

	for (int j = 0; j <= i; j++)
	{
		printf("%d %d %d %d %d %d %d %d\n", a[j][0], a[j][1], a[j][2], a[j][3], a[j][4], a[j][5], a[j][6], a[j][7]);
	}
	return 0;
}

문제 3

여기에 코드를 넣어주세요

문제 4

여기에 코드를 넣어주세요

문제 5

여기에 코드를 넣어주세요

문제 6

여기에 코드를 넣어주세요