Submission #1208331


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 2**(n-2)*2**(m-2)*(a2-a1)*(b2-b1)%(10**9+7)

Submission Info

Submission Time
Task D - 井井井 / ###
User leafmoon
Language Ruby (2.3.3)
Score 0
Code Size 146 Byte
Status
Exec Time 103 ms
Memory 15772 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 103 ms 15772 KB
min.txt 7 ms 1788 KB
mod.txt 57 ms 8580 KB
n2.txt 57 ms 8580 KB
rndA.txt 101 ms 15520 KB
rndB.txt 101 ms 15504 KB
rndC.txt 101 ms 15520 KB
rndD.txt 101 ms 15504 KB
rndE.txt 101 ms 15504 KB
rndF.txt 101 ms 15504 KB
rndG.txt 101 ms 15504 KB
rndH.txt 100 ms 15504 KB
rndI.txt 101 ms 15504 KB
rndJ.txt 101 ms 15520 KB
var.txt 101 ms 15500 KB