Submission #8461423


Source Code Expand

N{c++>N?B[$1]=$2+1:A[$2+1]=$1+1}!N{N=$1}
END{for(;i<c;)for(j=B[i++];--j>0;)A[j]&&A[j]<i&&j*=A[j]=!++s;print+s}

Submission Info

Submission Time
Task C - 2D Plane 2N Points
User kotatsugame
Language Awk (mawk 1.3.3)
Score 0
Code Size 111 Byte
Status WA
Exec Time 150 ms
Memory 884 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 400
Status
AC × 2
WA × 3
AC × 5
WA × 12
Set Name Test Cases
Sample example_0, example_1, example_2, example_3, example_4
All example_0, example_1, example_2, example_3, example_4, line_0, line_1, line_2, line_3, maxrand_0, maxrand_1, maxrand_2, maxrand_3, maxrand_4, rand_0, rand_1, rand_2
Case Name Status Exec Time Memory
example_0 WA 150 ms 884 KB
example_1 AC 1 ms 256 KB
example_2 WA 1 ms 256 KB
example_3 WA 1 ms 256 KB
example_4 AC 1 ms 256 KB
line_0 WA 1 ms 256 KB
line_1 AC 2 ms 256 KB
line_2 AC 1 ms 256 KB
line_3 AC 1 ms 256 KB
maxrand_0 WA 1 ms 256 KB
maxrand_1 WA 1 ms 256 KB
maxrand_2 WA 1 ms 256 KB
maxrand_3 WA 1 ms 256 KB
maxrand_4 WA 1 ms 256 KB
rand_0 WA 1 ms 256 KB
rand_1 WA 1 ms 256 KB
rand_2 WA 1 ms 256 KB