Some Simple Mistakes I had

This week, I had some mistakes. It is really hard to say:

#1 py business what's happening

    l = abs(px[x] - bl); r = abs(px[x] - br);
    t = abs(py[x] - bt); b = abs(pxpy[x] - bb);

How can I felt smooth while typing these codes? Stress Everyone will punch me!!!

#2 arrays must be bigger

int n, m, a, b, vx[maxn*maxn], vy[maxn*maxn], hx[maxn*maxn], hy[maxn*maxn];

I had made it so small so I only got 10 points.

After I made it larger, it passed!! I am naïve!

#3 if() -> while()

bool bitechar() {
    char s;
    s = getchar();
    ifwhile (s != '#' && s != '.') s = getchar();
    if (s == '#') return true;
    return false;
}

No wonder dph wants to punch me. Stress

So I can do better. :)


Post author 作者: Grey
Copyright Notice 版权说明: Except where otherwise noted, all content of this blog is licensed under a CC BY-NC-SA 4.0 International license. 除非另有说明,本博客上的所有文章均受 知识共享署名 - 非商业性使用 - 相同方式共享 4.0 国际许可协议 保护。
原文地址:https://www.cnblogs.com/greyqz/p/6680241.html