Skip to content

Instantly share code, notes, and snippets.

View curryudon08's full-sized avatar

errguess40 curryudon08

View GitHub Profile
@curryudon08
curryudon08 / Program.cs
Last active November 1, 2025 08:20
C# code snippet I used in competitive programming.
// 特定の文字列を繰り返す文字列を生成する
string result1 = string.Concat(Enumerable.Repeat("oxx", 10));
// 2つの配列から合致する値のみを抽出する
int[] array1 = { 1, 2, 3, 4, 5 };
int[] array2 = { 3, 4, 5, 6, 7 };
int[] result = array1.Intersect(array2).ToArray();
// 2つの数列の組み合わせを生成する
int[] array1 = { 1, 2, 3 };