回复 10楼 TonyDeng
算法 重要?什么东西还没涉及 就学了个递归
墨一世红颜倾醉己 霁天谁与话风流
修仙``````````````````````````````````````````````
#include <stdio.h> #include <conio.h> #include <time.h> #define N (double)1E9 void main(void) { clock_t Start_Time, End_Time; Start_Time = clock(); printf_s("Sum = %.0f\n", N * (N + 1) / 2); End_Time = clock(); printf_s("Run time is %6.4fs\n", (double)(End_Time - Start_Time) / CLOCKS_PER_SEC); _getwch(); }