Submission #1208042


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)

Submission Info

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