# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|
19730 | | LK149 | 창문 (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 main ()
{
int h, w;
float sum = 0, s;
scanf ("%d %d", &h, &w);
for (int i = 1; i <= h; i++)
{
for (int j = 1; j <= w; j++)
{
for (int k = 1; k <= h - i + 1; k++)
{
for (int l = 1; l <= w - j + 1; l++)
{
sum += i * j;
}
}
}
}
s = (float)h * (h + 1) / 2;
s = (float)s * w * (w + 1) / 2;
sum = sum / s * 9;
printf ("%d", (int)sum);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |