/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 3.117 MiB
#2 Accepted 16ms 2.945 MiB
#3 Accepted 15ms 2.922 MiB
#4 Accepted 15ms 3.113 MiB
#5 Accepted 15ms 3.125 MiB
#6 Accepted 16ms 3.117 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-11 02:32:37
Judged By
Score
100
Total Time
16ms
Peak Memory
3.125 MiB