题解列表

筛选

求1+2+3+...+n的值-题解(C++代码)

摘要: 题解: 该题可以直接用等差数列求和公式,不过要注意变量的设置防止爆掉。所以将变量设置为long long型就可以过了。 #include #in……

题解:纯逻辑即可

摘要:#include #include typedef struct node { int id; int score; struct node *next; }node,*lin……