Skip to content

Conversation

MouJieQin
Copy link

No description provided.

@YuyuZha0
Copy link
Owner

YuyuZha0 commented Mar 5, 2018

你好,我大致瞄了一眼你的代码,我看到在生成所有选项的部分,你用了宏来实现多层的嵌套循环,这样也可以,但是其实是有只用循环一层的方式的,十道题一共4^10种可能性,每种可能性对应0~4^10中的一个数,ABCD四种可能正好是2^2,所以很容易就能用位运算实现这种映射了

@vectorequa
Copy link

这操作靓丽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants