考场时迅速地把四道题正解想出来了,但是T3T4常数过大各卡了30min常。
但是T2。。。
if (ch == '-') { int i = read(); nxt[i] = -nxt[read()]; }因为这个,我挂了40pts,改成如下就过了。
if (ch == '-') {
int i = read(), p = read();
if (nxt[p] == U) nxt[i] = U;
else if (nxt[p] == F) nxt[i] = T;
else if (nxt[p] == T) nxt[i] = F;
else nxt[i] = -nxt[p];
}伤心ing。
但是在云斗上一测,发现有390pts。于是我开始对CCF的数据抱有一丝希望。
反向挂了10pts,赢!
