To day I saw a very strange thing. I had gotten PE in 186,187. I didn't know what to do to correct them. But today I changed output part of code into famous printf(It was in C++) code and my code got AC.
Here is my old version of output for 187:
Hi , I am also keep getting WA, i was suspicious about the division by 100 and then % 100 like others comment but since I got a double I do not think is the case. Does anyone detect something wrong in My Code ? Thanks.
class Account{
public double balance;
public List<Pair> accounts= new ArrayList<>();
public Account(String account, double amount){
this.accounts.add(new Pair(account,amount));
}
}
class Pair{
public String number;
public double amount;