题解列表

筛选

1095: The 3n + 1 problem

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(int n){ int i=1;  while(n!=1)  { if(n%2==0)    n=n/2;    else ……

数组插入处理

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i, j, n, temp, a;    int arr[10];     int add[10]……

二维数组的转置

摘要:解题思路:当j>i时换(等号有没有都行)注意事项:参考代码:#include<stdio.h>int main(){    int i, j;    int temp;    int arr[3][3……

2854: 密码翻译

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){    cin.getline(s……

2855: 简单密码

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){    cin.getline(s……

2848: 基因相关性

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){    doubl……

2851: 合法C标识符

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){    cin>>……

自定义函数来筛选N以内的素数

摘要:解题思路:——————————————定义函数+循环注意事项:参考代码:#include int is_prime(int n) { int j=0; for(j=2;j<n;j++) ……