Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Get Combined Placeholder Settings and New Content Length
//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) { var pt2 = "{1387A225-0429-47EB-901C-2DDFC249E69A}|{53FD448A-3A8C-41A8-A52A-C1E2CEBC1140}|{E565D764-7C33-4BE6-BB9E-6A7796D90C13}|{B9CDF65E-7ACB-4769-B64D-EA662922A4E2}|{1C7B4267-413A-44C1-B0C4-4A0803781561}|{752DD99A-6C80-4A0E-8EB2-ED90B17BBDA5}|{2C2D6703-D3F0-4242-B016-7D34ABE065D7}|{FE6A0965-1E25-46EA-8390-B4D13A666A99}|{EAF4026F-0C63-4A10-AD44-3B5DEE41B47A}|{4650388D-0825-4F40-91CE-9E30791D60F9}|{15D62A1B-2F4E-4225-9BD9-AAE35D9561B4}|{F2AA62E8-E2A0-400D-890C-E57F27B0A6BB}|{ACBD3AB7-3DEC-4CDE-AEF5-1706F3D3454D}|{C67C25FA-F85B-4937-8397-D1F9E2E9BBA4}|{601E08D2-586C-4620-9555-315A47EA8364}|{0BBA6D75-5D35-4405-BC16-853F3DB2639B}|{D31BD63B-94C3-4217-9347-09836A716023}|{3B69E74D-37D6-4320-AFF4-FBE2DB8A97A2}|{35F0B4D2-5197-402D-ABF3-F26FA08EC61C}|{89F94535-26CD-483D-9D5E-1D427773B914}|{EB7DD5D5-EC44-4A06-8124-5DABE66BDC98}|{C077584C-4429-4091-B59A-1A46DD03056B}|{991E63BA-A4B5-4F11-9AAD-CF4F4A310F75}"; var pt10 = "{1387A225-0429-47EB-901C-2DDFC249E69A}|{53FD448A-3A8C-41A8-A52A-C1E2CEBC1140}|{E565D764-7C33-4BE6-BB9E-6A7796D90C13}|{B9CDF65E-7ACB-4769-B64D-EA662922A4E2}|{1C7B4267-413A-44C1-B0C4-4A0803781561}|{752DD99A-6C80-4A0E-8EB2-ED90B17BBDA5}|{2C2D6703-D3F0-4242-B016-7D34ABE065D7}|{EAF4026F-0C63-4A10-AD44-3B5DEE41B47A}|{4650388D-0825-4F40-91CE-9E30791D60F9}|{F2AA62E8-E2A0-400D-890C-E57F27B0A6BB}|{3B69E74D-37D6-4320-AFF4-FBE2DB8A97A2}|{ACBD3AB7-3DEC-4CDE-AEF5-1706F3D3454D}|{C67C25FA-F85B-4937-8397-D1F9E2E9BBA4}|{35F0B4D2-5197-402D-ABF3-F26FA08EC61C}|{89F94535-26CD-483D-9D5E-1D427773B914}|{EB7DD5D5-EC44-4A06-8124-5DABE66BDC98}|{601E08D2-586C-4620-9555-315A47EA8364}|{C077584C-4429-4091-B59A-1A46DD03056B}|{0BBA6D75-5D35-4405-BC16-853F3DB2639B}|{991E63BA-A4B5-4F11-9AAD-CF4F4A310F75}"; PrintCombo(pt2, pt10); } private static void PrintCombo(string part1, string part2) { var idList = part1.Split('|').ToList(); idList.AddRange(part2.Split('|')); idList = idList.Distinct().ToList(); var idListStr = string.Join("|", idList); Console.WriteLine(); Console.Write(idListStr); Console.WriteLine(); Console.Write("Content Length: " + idListStr.Length); Console.WriteLine(); } } }
run
|
edit
|
history
|
help
0
Interviews
sdfghjkikujyhtgrfedw
aszasxsdf
Write a program to count the occurrence of each distinct item in the array?
Func
alop
project euler 15, C#
1
Custom thousand separator
Enumerate an enum?