Submission #1208209


Source Code Expand

Copy
n,m=gets.split.map &:to_i
a1,a2=gets.split.map(&:to_i).minmax
b1,b2=gets.split.map(&:to_i).minmax
p (n-1)*(m-1)*(a2-a1)*(b2-b1)%(10**9+7)

Submission Info

Submission Time
Task D - 井井井 / ###
User leafmoon
Language Ruby (2.3.3)
Score 0
Code Size 140 Byte
Status
Exec Time 100 ms
Memory 15516 KB

Compile Error

./Main.rb:1: warning: `&' interpreted as argument prefix

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_000.txt, 0_001.txt
All 0 / 500 0_000.txt, 0_001.txt, max.txt, min.txt, mod.txt, n2.txt, rndA.txt, rndB.txt, rndC.txt, rndD.txt, rndE.txt, rndF.txt, rndG.txt, rndH.txt, rndI.txt, rndJ.txt, var.txt
Case Name Status Exec Time Memory
0_000.txt 7 ms 1788 KB
0_001.txt 7 ms 1788 KB
max.txt 100 ms 15516 KB
min.txt 7 ms 1788 KB
mod.txt 55 ms 8580 KB
n2.txt 55 ms 8580 KB
rndA.txt 98 ms 15376 KB
rndB.txt 98 ms 15376 KB
rndC.txt 98 ms 15376 KB
rndD.txt 98 ms 15264 KB
rndE.txt 98 ms 15264 KB
rndF.txt 98 ms 15376 KB
rndG.txt 99 ms 15376 KB
rndH.txt 99 ms 15376 KB
rndI.txt 98 ms 15264 KB
rndJ.txt 98 ms 15376 KB
var.txt 98 ms 15244 KB