
STL
huihui985211
If you get what you are worth ,then go out get what you are worth!
展开
-
NYOJ 19 擅长排列的小明 (STL之next_permutation()的使用)
擅长排列的小明 时间限制:1000 ms | 内存限制:65535 KB 难度:4 描述 小明十分聪明,而且十分擅长排列计算。比如给小明一个数字5,他能立刻给出1-5按字典序的全排列,如果你想为难他,在这5个数字中选出几个数字让他继续全排列,那么你就错了,他同样的很擅长。现在需要你写一个程序来验证擅长排列的小明到底对不对。 输入第一行输入整数N(1 每组测试数据第一行两个原创 2017-05-30 20:03:41 · 363 阅读 · 0 评论 -
nyoj 412 Same binary weight
Same binary weight 时间限制:300 ms | 内存限制:65535 KB 难度:3 描述 The binary weight of a positive integer is the number of 1's in its binary representation.for example,the decmial number 1 has a bina翻译 2017-06-18 00:07:47 · 399 阅读 · 0 评论