|
|
back to boardc# RuntimeError Posted by Karol 10 Jan 2022 07:33 Why i get RuntimeError? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Diagnostics; using System.Globalization; namespace AlgorytmyInternetowe { public class Program { public static void Main(string[] args) { //string[] tmp = Console.In.ReadToEnd().Split(new char[] { ' ' }); string[] tmp = Console.ReadLine().Split(new char[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries); Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Console.Write(int.Parse(tmp[0])-int.Parse(tmp[4])+" "+ (int.Parse(tmp[1]) - int.Parse(tmp[3]))); } } } |
|
|