2023-10-31
using System;
using System.Collections.Generic;
using System.Linq;
// https://atcoder.jp/contests/abc279/tasks/abc279_f
class Program
{
static string InputPattern = "Input1";
static List<string> GetInputList()
{
var WillReturn = new List<string>();
if (InputPattern == "Input1") {
WillReturn.Add("5 10");
WillReturn.Add("3 5");
WillReturn.Add("1 1 4");
WillReturn.Add("2 1");
WillReturn.Add("2 4");
WillReturn.Add("3 7");
WillReturn.Add("1 3 1");
WillReturn.Add("3 4");
WillReturn.Add("1 1 4");
WillReturn.Add("3 7");
WillReturn.Add("3 6");
//5
//4
//3
//1
//3
}
else {
string wkStr;
while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr);
}
return WillReturn;
}
static void Main()
{
List<string> InputList = GetInputList();
int[] wkArr = { };
Action<string> SplitAct = pStr =>
wkArr = pStr.Split(' ').Select(pX => int.Parse(pX)).ToArray();
SplitAct(InputList[0]);
int N = wkArr[0];
// 代表ボール[ボール]なDict;
var Dict1 = new Dictionary<int, int>();
// 箱[代表ボール]なDict;
var Dict2 = new Dictionary<int, int>();
// 代表ボール[箱]なDict;
var Dict3 = new Dictionary<int, int>();
for (int I = 1; I <= N; I++) {
Dict1[I] = I;
Dict2[I] = I;
Dict3[I] = I;
}
foreach (string EachStr in InputList.Skip(1)) {
SplitAct(EachStr);
int Type = wkArr[0];
if (Type == 1) {
}
if (Type == 2) {
}
if (Type == 3) {
}
}
}
}