摘要:题目链接Problem StatementCodenationis sendingNof its employees to a High Profile Business Conference and the goal is to cover maximum number of presentati...
阅读全文
摘要:具体百度。。。这里只记下,构造构造代码块在构造函数之前执行,每创建一个对象则执行一次。静态代码块属于类,而不是对象,只执行一次。
阅读全文
摘要:题目链接Problem StatementAt Quora, we run all our unit tests across many machines in a test cluster on every code push.One day, we decided to see if we co...
阅读全文
摘要:传送门 1 /* 2 * input: an expression seperated by a '-' or '+'; for example: a-b, a+b 3 * ouput: the answer of the input expression 4 */ 5 #includ...
阅读全文
摘要:传送门题意:求区间[a, b]中二进制位为1的个数最多的那个数,如果存在多解,则输出最小的那个。(0 2 3 typedef long long ll; 4 5 int main(void) { 6 int n; 7 scanf("%d", &n); 8 while (...
阅读全文