Submission #659576

#TimeUsernameProblemLanguageResultExecution timeMemory
659576beaconmcFancy Fence (CEOI20_fancyfence)Pypy 3
0 / 100
72 ms20296 KiB
n = int(input()) h = list(map(int, input().split())) w = list(map(int, input().split())) sus = sum(w) print(sus*h*(sus+1)*(h+1)//4)
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...