题解列表

筛选

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……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i,a[2],b[2],c,d,j=0,k=0;    for (i = 1000; i <= 9……

分离整数的各个数位

摘要:解题思路:注意事项:参考代码:#include <stdio.h>void func(long long n);int main() {  long long a;  scanf("%lld", &a……