随笔分类 - Pitfalls
摘要:(留坑待填) Extraction from the C++ Programming Language 4th. ed., Bjarne Stroustrup 31.3.3 Size and Capacity The size is the number of elements in the con
阅读全文
摘要:传送门 E. Epic Fail of a Genie time limit per test 0.5 seconds memory limit per test 64 megabytes input standard input output standard output Aladdin had
阅读全文
摘要:已经是第二次遇到这个问题了: 试图在终端编译,运行: (gcc version 4.8.4) 返回结果: 显示变量 y1 和 C++ 标准库中的某个变量名称冲突,这个问题应当引起注意。 另外这不是头文件写成 <bits/stdc++.h> 引起的,即使换成各具体的头文件(<iostream>, <a
阅读全文
摘要:传送门 time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output Little Petya is now fond of data com
阅读全文
摘要:传送门 Time Limit: 2000MS Memory Limit: 65536K Description Farmer John is an astounding accounting wizard and has realized he might run out of money to r
阅读全文
摘要:1. 在printf()的参数前加& (2015/10/7) 这是我写的一个数据生成器(generator)片段
阅读全文
摘要:传送门:A Bug's Life Description Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature tw
阅读全文