Skip to content

Instantly share code, notes, and snippets.

@mak-oh-1977
Last active July 10, 2019 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mak-oh-1977/dc93df256e0543a6b7106af5527a111c to your computer and use it in GitHub Desktop.
Save mak-oh-1977/dc93df256e0543a6b7106af5527a111c to your computer and use it in GitHub Desktop.
using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
List<int[]> l = new List<int[]>();
for (int i = 0; i < 2; i++)
{
var line = System.Console.ReadLine().Trim();
l.Add(line.Split(' ').Select(int.Parse).ToArray());
}
var a = l.ToArray();
System.Console.WriteLine("(1,2)={0}", a[1][2]);
a[1][2] = -1;
System.Console.WriteLine("(1,2)={0}", a[1][2]);
var b = new int[4];
System.Console.WriteLine(string.Join(" ", b));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment