/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 13ms 2.887 MiB
#2 Accepted 13ms 3.129 MiB
#3 Accepted 14ms 2.934 MiB
#4 Accepted 13ms 2.93 MiB
#5 Accepted 14ms 3.121 MiB
#6 Accepted 14ms 2.953 MiB

Code

#why you don't get merried now?
H, W = map(int,input().split())
badha = min(H, W)
mut_hisab = 0
for i in range(1, badha + 1):
   mut_hisab += (H - i + 1) * (W - i + 1)
print(mut_hisab)

Information

Submit By
Type
Submission
Problem
P1121 Square Counting Challenge
Contest
Brain Booster #7
Language
Python 3 (Python 3.12.3)
Submit At
2024-11-05 14:45:19
Judged At
2024-11-05 14:45:19
Judged By
Score
100
Total Time
14ms
Peak Memory
3.129 MiB