菜鸡求助:fileread快读挂掉

P2114 [NOI2014] 起床困难综合症

@[ELLIAS](/space/show?uid=65678) 不如试试在!isdigit(c)的时候加一句c!=EOF
by WorldBest丶牛顿 @ 2018-08-08 12:05:40


@[WorldBest丶牛顿](/space/show?uid=53164) 已解决QwQ ```cpp //freopen ("nico.in","r",stdin); read(n), read(m); register char cc; while (n --) { //scanf ("%s", opt); cc = gc (); read(t); if (cc == 'A') nn &= t, ni &= t; else if (cc == 'O') nn |= t, ni |= t; else nn ^= t, ni ^= t; } ``` file read偷走了opt,,,, 感谢大佬
by ELLIAS @ 2018-08-08 12:21:03


|