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 …… 题解列表 2023年11月03日 0 点赞 0 评论 261 浏览 评分:0.0
巨大的数(因为只需要求个位,那每次的乘积只保留个位就行) 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); long long sum=1;//不用在意long long 这是…… 题解列表 2023年11月04日 0 点赞 0 评论 365 浏览 评分:0.0
数组插入处理 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i, j, n, temp, a; int arr[10]; int add[10]…… 题解列表 2023年11月04日 0 点赞 0 评论 268 浏览 评分:0.0
二维数组的转置 摘要:解题思路:当j>i时换(等号有没有都行)注意事项:参考代码:#include<stdio.h>int main(){ int i, j; int temp; int arr[3][3…… 题解列表 2023年11月04日 0 点赞 0 评论 319 浏览 评分:0.0
题解 2214: 蓝桥杯算法提高-快速排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int hanshu(int a[],int low,int high){ int pivot=a[low]; while(…… 题解列表 2023年11月04日 0 点赞 0 评论 441 浏览 评分:0.0
2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s…… 题解列表 2023年11月04日 0 点赞 0 评论 370 浏览 评分:0.0
2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s…… 题解列表 2023年11月04日 0 点赞 0 评论 335 浏览 评分:0.0
2848: 基因相关性 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ doubl…… 题解列表 2023年11月04日 0 点赞 0 评论 374 浏览 评分:0.0
2851: 合法C标识符 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ cin>>…… 题解列表 2023年11月04日 0 点赞 0 评论 400 浏览 评分:0.0
自定义函数来筛选N以内的素数 摘要:解题思路:——————————————定义函数+循环注意事项:参考代码:#include int is_prime(int n) { int j=0; for(j=2;j<n;j++) …… 题解列表 2023年11月04日 0 点赞 0 评论 325 浏览 评分:0.0