재우니의 블로그


총 7명의 심사자가 존재하며, 1 명의 지원자에 4명의 심사자가 할당되어 균등하게 배치하는 구문입니다.



//Rextester.Program.Main is the entry point for your code. Don't change it.
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
int k = 0;
int[] a = new int[400+1];
for (int i = 1; i < a.Length; i++)
{
k = k + 1;
if((k % 7) == 0){
a[i] = k;
k = 0;
}
else {
a[i] = k;
}
}
for(int i=1; i<=400; i++)
{

if ((i % 4) == 0)
{
Console.WriteLine(a[i]);

}
else {
Console.Write(a[i] + ",");
}

}
}
}
}



1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1
2,3,4,5
6,7,1,2
3,4,5,6
7,1,2,3
4,5,6,7
1,2,3,4
5,6,7,1