static void Main(string[] args) { var r = int.Parse(Console.ReadLine()); for (var i = 0; i < r; i++) { var dict = new SortedDictionary <BankNumber, int>(new BankNumberComparer()); var n = int.Parse(Console.ReadLine()); for (var j = 0; j < n; j++) { var nr = BankNumber.Parse(); if (!dict.TryAdd(nr, 1)) { dict[nr]++; } } foreach (var pair in dict) { Console.WriteLine($"{pair.Key}, {pair.Value}"); } } }
/// <summary> /// Currently only DE Supported /// </summary> /// <returns></returns> public string ToIBAN() { CountryCode = CountryCode.ToUpper(); string strKontonummer = AccountNumber.ToString(CultureInfo.InvariantCulture); while (AccountNumber.Length != 10) { AccountNumber = "0" + strKontonummer; } string strLand1 = CountryCode.Substring(0, 1); string strLand2 = CountryCode.Substring(1, 1); int intLand1 = Strings.AscW(strLand1) - 55; int intLand2 = Strings.AscW(strLand2) - 55; string strBLZKonto = BankNumber.ToString(CultureInfo.InvariantCulture) + strKontonummer + intLand1.ToString(CultureInfo.InvariantCulture) + intLand2.ToString(CultureInfo.InvariantCulture) + "00"; decimal decBLZKonto = Helper.Modulo(strBLZKonto, 97); string strPrüfsumme = (98 - decBLZKonto).ToString(CultureInfo.InvariantCulture); if (strPrüfsumme.Length == 1) { strPrüfsumme = "0" + strPrüfsumme; } return("DE" + strPrüfsumme + BankNumber.ToString(CultureInfo.InvariantCulture) + strKontonummer); }
public override string ToString() { string s; s = "bank number: " + BankNumber.ToString() + ", bank name: " + BankName + ", branch number: " + BranchNumber.ToString() + ",branch address: " + BranchAddress + ", branch city: " + BranchCity; return(s); }
public override string ToString() { return("Bank name: " + BankName.ToString() + "/n" + "Bank Number: " + BankNumber.ToString() + "/n" + "Branch number: " + BranchNumber.ToString() + "/n" + "Branch address: " + BranchAddress.ToString() + "/n" + "Branch city: " + BranchCity.ToString() + "/n"); }
public override string ToString() { return("Bank Account Number: " + BankAccountNumber.ToString() + "\n" + "my commition: " + MyCommition.ToString() + "\n" + "Collection Clearance? " + CollectionClearance.ToString() + "\n" + "Bank name: " + BankName + "/n" + "Bank Number: " + BankNumber.ToString() + "/n" + "Branch number: " + BranchNumber.ToString() + "/n" + "Branch address: " + BranchAddress + "/n" + "Branch city: " + BranchCity + "/n"); }
public override string ToString()//for debugging { return(BankNumber.ToString()); }
public override string ToString() { return("Bank Number: " + BankNumber.ToString() + " Bank Name: " + BankName + " Branch Number: " + BranchNumber.ToString() + " Branch Address: " + BranchAddress + ", " + BranchCity + '\n'); }
public override string ToString() { return(BankNumber.ToString() + BankName + BranchNumber.ToString() + BranchAddress + BranchCity); }
public override string ToString() { return("Bank Number: " + BankNumber.ToString() + "\nBank Name: " + BankName.ToString() + "\nBank Branch Address: " + BankBranchAddress.ToString() + "\nBranch City: " + BranchCity.ToString() + "\nAccount Number: " + AccountNumber.ToString()); }