ACM-OnlineJudge

Accepted code for some OnlineJudges; mostly SJTU OJ; update off and on

MIT License

Stars
14

ACM-OnlineJudge

OIACMOJOJ

issue

SJTU Online Judge

ACMOnline JudgeOJOJ

  • ,

  • gcc3.4.81617OJgcc4.8187.1REWACE(AC )

  • (OJ)Mental Disorder

    issue,pr~

516030910552 yyong119

OJ

~

  • YYHSOJ(since 2010) yyhsyy yyhsoj(yyhs)
  • Vijos(since 2012) 1479773600 Vijos
  • CodeVS(since 2013) yyong119 CodeVS
  • USACO(since 2013) yyhsyy USACO
  • POJ(since 2013) yyhsyy POJ
  • leetcode(since 2017) yyong119 leetcode
  • UVasince 2017) sjtuMao UVa
  • BZOJ

()

  • if ((n & 1) == 0)
  • <<|()index << 1index << 1 | 1
  • ~y = -y - 1,x - yx + (~y) + 1

1

  • 1x = x + 1, x += 1, x++, ++x
  • ++x,x++, x += 1, x = x + 1(x).

  • ,
memcpy(b, a, sizeof(a));
sort(b, b + n);
int cnt = unique(b, b + n) - b;
for (int i = 0; i < n; ++i)
    a[i] = lower_bound(b, b + cnt, a[i]) - b; // a[i]
Related Projects