public static decimal NextDecimal(bool acceptAnyDecimalSeparator = true) { string token = Cin.NextToken(); if (acceptAnyDecimalSeparator) { token = token.Replace(',', '.'); decimal result = decimal.Parse(token, CultureInfo.InvariantCulture); return(result); } else { decimal result = decimal.Parse(token); return(result); } }
public static long NL() { string token = Cin.NextToken(); return(long.Parse(token)); }
public static int NI() { string token = Cin.NextToken(); return(int.Parse(token)); }