/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 118ms 13.383 MiB
#2 Wrong Answer 114ms 13.371 MiB

Code

function countPerfectSquareSubgrids(H, W) {
    let n = Math.min(H, W);
    let totalSubgrids = 0;

    for (let k = 1; k <= n; k++) {
        totalSubgrids += (H - k + 1) * (W - k + 1);
    }

    return totalSubgrids;
}

Information

Submit By
Type
Submission
Problem
P1121 Square Counting Challenge
Contest
Brain Booster #7
Language
JavaScript (Node.js v18.19.1)
Submit At
2024-11-05 14:36:22
Judged At
2024-11-05 14:36:22
Judged By
Score
0
Total Time
118ms
Peak Memory
13.383 MiB