using System.Collections.Generic;
public static void Main()
var inputLines = "a,b,c|AA,CC,KLK|A,kkdf,sdfsdf|asdasfdadsfds,shshd,l".Split('|').ToList();
Dictionary<int,int> dictIndexLenght = new Dictionary<int,int>();
foreach(var line in inputLines)
List<string> columList = line.Split(',').ToList();
for (int i = 0; i < columList.Count; i++)
if(dictIndexLenght.TryGetValue(i,out tempVal))
if(tempVal<columList[i].Length)
dictIndexLenght[i]=columList[i].Length;
dictIndexLenght[i]=columList[i].Length;
for(int i=0;i<dictIndexLenght.Count;i++)
Console.WriteLine("{0} : {1}", i, dictIndexLenght[i]);