/ SeriousOJ /

Record Detail

Compile Error

foo.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.

Code

#include<bits/stdc++.h>
using namespace std; 
char nl = '\n';
using i64 = long long;

void solve(int t) {
    // cout << "test #" << t << nl;
    i64 h, w; cin >> h >> w;
    i64 ans = 0;
    for (i64 i = 1; i <= min(h, w); i++) {
        ans += (h - i + 1) * (w - i + 1);
    }
    cout << ans << nl;
} 

int main() {
    int tt = 1;
    // cin >> tt;
    for(int t = 1; t <= tt; t++) solve(t);
}

Information

Submit By
Type
Submission
Problem
P1121 Square Counting Challenge
Contest
Brain Booster #7
Language
C99 (GCC 13.2.0)
Submit At
2024-11-05 14:34:15
Judged At
2024-11-05 14:34:15
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes