• + 0 comments

    Here's my java solution:

    public static long lights(int n) {

        BigInteger ans=(BigInteger.valueOf(2).pow(n).subtract(BigInteger.valueOf(1))).mod(BigInteger.TEN.pow(5));  
    
        return ans.longValue();
    }