Submission #659578

#TimeUsernameProblemLanguageResultExecution timeMemory
659578beaconmcFancy Fence (CEOI20_fancyfence)Pypy 3
15 / 100
78 ms37028 KiB
n = int(input()) h = list(map(int, input().split())) w = list(map(int, input().split())) sus = sum(w) print(sus*h[0]*(sus+1)*(h[0]+1)//4 % 1000000007)
#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...