• + 0 comments
    int libraryFine(int d1, int m1, int y1, int d2, int m2, int y2) {
        if(y1<y2)return 0;
        if(y1==y2&&m1<m2) return 0;
    return (y1>y2)?10000:(m1>m2)?(m1-m2)*500:(d1>d2)?(d1-d2)*15:0;
    }