# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|
19780 | | ilbbke | 창문 (kriii4_C) | C++98 | | 0 ms | 1084 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
int n, m;
long long ans = 0;
int main()
{
int i, j;
scanf("%d", &n);
scanf("%d", &m);
for(i = 1; i <= n; i++) {
for(j = 1; j <= m; j++) {
ans += 9 * i * j * (n - i + 1) * (m - j + 1);
}
}
ans *= 4;
ans /= n * (n + 1) * m * (m + 1);
printf("%d", ans);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |