题解列表

筛选

1852: 求1+2+3+...+n的值

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long sum(long long n){    long long ……

2955: 判决素数个数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long sushu(long long x){    if(x<2) ……

2778: 判断数正负

摘要:```c #include int main() { int n; scanf("%d",&n); if(n>0) printf("positive");……

C++ STL next_permutation

摘要:# STL `next_permutation` ```c++ #include #include #include using namespace std; int main(……

C语言训练-大、小写问题-简单方法

摘要:解题思路:大写字母A与小写字母a相差32,用第二个数组获取重新赋值的b[i]=a[i]+32注意事项:记得用&#39;\0&#39;,结束输出参考代码:#include<string.h>int ma……