```
int main()
{
  int N, K, i, j, k, x, final, cur, A[22];

  for(i=!!scanf("%d %d",&N,&K), printf("%d\n",(final=N*N)-N);i<=N;A[i++]=i);
  for(i=(cur=N)-1; i>=1; i--)
    for(j=1; j<=i; printf("%d %d min\n%d %d max\n",A[j],A[j+1],A[j],A[j+1]),A[j]=++cur, A[j+1]=++cur, j++);
     for(printf("%d",final-1+(cur=final)*0+(x=2)*0); cur>N; printf(" %d",cur), cur-=x, x+=2);
  return 0;
}

```

Please explain the use of 2 exclamation marks in the first "for" statement.