摘要:
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston 阅读全文
posted @ 2015-10-12 23:22
Grandyang
阅读(12013)
评论(0)
推荐(0)
摘要:
使用C++的unordered_map类型时,我们经常要根据关键字查找,并移除一组映射,在Java中直接用remove即可,而STL中居然没有实现remove这个函数,还要自己写循环来查找要删除项,然后用erase来清除,我也是醉了,参见下面代码:vector v1;// remove A *a1f... 阅读全文
posted @ 2015-10-12 12:40
Grandyang
阅读(6114)
评论(0)
推荐(0)

浙公网安备 33010602011771号