1557. Can you answer these queries IIProblem code: GSS2Being a completist and a simplist, kid Yang Zhe cannot solve but get Wrong Answer from most of....
分类:
其他好文 时间:
2014-07-26 05:44:27
阅读次数:
377
给定n组球心,每一组有两个球体,每一组只能选择一个球。现在需要选n个球,求选择的所有球体的R的最大值且互相不重叠
这题有一个需要注意的点:题目要求最后round后答案仍满足,那么直接取后三位就是答案,直接printf后由于会四舍五入导致wrong...
分类:
其他好文 时间:
2014-07-26 02:16:46
阅读次数:
196
题目:输入一个整数,输出该数二进制表示中1的个数。// 二进制中1的个数#include int wrong_count_1_bits(int n) // 错误解法: 当n为负数时, n>>=1右移, 最高位补1, 陷入死循环{ int count = 0; while(n) { ...
分类:
其他好文 时间:
2014-07-24 22:33:42
阅读次数:
221
PerformanceNow that we have a basic model for how things are working, let's consider some things that could go wrong that would make it slow. That wil...
分类:
其他好文 时间:
2014-07-22 22:51:16
阅读次数:
258
安装ez_setup.py时出现了这个问题:UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)Something went wrong during the...
分类:
编程语言 时间:
2014-07-21 23:27:53
阅读次数:
236
在用virtualbox 挂载windows下的文件时,出现错误mount: wrong fs type, bad option, bad superblock ,在安装增强包后,解决方案:sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuest...
分类:
其他好文 时间:
2014-07-19 19:23:44
阅读次数:
171
举一个容易犯错的例子class Date{private: int month; int day; int year;public:Date(int month,int day,int year){ this->month = month; ... }}//wrong exampleDa...
分类:
编程语言 时间:
2014-07-12 00:13:54
阅读次数:
235
题意:n个数,m次询问,每次问区间a到b之间的和为s,问有几次冲突
思路:带权并查集的应用,[a, b]和为s,所以a-1与b就可以确定一条边,通过计算与根的距离可以判断出询问的正确性
#include
#include
#include
#include
using namespace std;
const int MAXN = 200010;
int f[MAXN],arr[MA...
分类:
其他好文 时间:
2014-07-02 16:38:40
阅读次数:
177
There is something wrong in PhyreEngine 3.8 to fullfill MSAA, actually, I think it is eqaaYou have to merge the codes from PhyreEngine 3.9. Thank God ...
分类:
其他好文 时间:
2014-07-01 16:29:11
阅读次数:
268