05 2014 档案
摘要:题目,排队打印问题Input FormatOne line with a positive integer: the number of test cases (at most 20). Then for each test case:One line with two integers n and...
阅读全文
摘要:虽然GDB调试工具功能强大,但对于平时做题调试的使用并不方便,这里尝试学习使用比较简单的valgrind工具Valgrind是一个提供程序调试及性能分析的工具集。其包含的工具主要有Memcheck,Cachegrind,Callgrind,Massif等。其中,最为常用的是Memcheck,其主要用...
阅读全文