2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;string a;const int N…… 题解列表 2024年07月20日 0 点赞 0 评论 460 浏览 评分:9.9
编写题解 1671: 小九九 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main(){ for(int i=1; i<=9; i++) …… 题解列表 2024年07月19日 0 点赞 0 评论 858 浏览 评分:9.9
1119: C语言训练-"水仙花数"问题1 摘要:解题思路:1,倒序。 g = n % 10;%10的结果是他的个位,个位我们用g表示。 n = n / 10;/10是剩下的数。 fn = fn + g * g * g;这是倒序后…… 题解列表 2024年07月19日 0 点赞 0 评论 436 浏览 评分:0.0
c语言简洁的解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int n,i=0; scanf("%d",&n); struct stu { char id[255]; char…… 题解列表 2024年07月19日 0 点赞 0 评论 406 浏览 评分:9.9
牛顿迭代法求平方根(C语言版) 摘要:解题思路:牛顿迭代法公式:X[n+1]=(X[n]+a/X[n])/2 ,由此可知牛顿迭代法需要知道两个临近的X值,一个是 X[n] ,另一个则是它的后一项 X[n+1] ,根据题目要求,当两个X值之…… 题解列表 2024年07月19日 4 点赞 0 评论 1429 浏览 评分:6.0
2852: 配对碱基链 摘要:解题思路:万能的张博维注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[258];int main(){cin>>s;for(i…… 题解列表 2024年07月19日 0 点赞 0 评论 411 浏览 评分:9.9
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e7;stri…… 题解列表 2024年07月19日 0 点赞 0 评论 639 浏览 评分:9.9
2853: 字符替换 摘要:解题思路:注意事项:参考代码#include <bits/stdc++.h>using namespace std;const int N=1e7;char c[N],l,k;int main(){ …… 题解列表 2024年07月19日 0 点赞 0 评论 552 浏览 评分:9.9
2853: 字符替换 摘要:解题思路:将字符串和字符存储下来后,再通过循环把字符串反复判断并改为题目要求的字符注意事项:循环内需要i从0开始循环,并用strlen()函数把数组最后的值的下标求出,放入循环参考代码:#includ…… 题解列表 2024年07月19日 0 点赞 0 评论 374 浏览 评分:0.0
思路即可解题 摘要:解题思路:定义一个结构体,分别含有字母,字母的数字,然后统计,最后输出;注意事项:参考代码:#include<iostream>using namespace std;typedef struct {…… 题解列表 2024年07月18日 0 点赞 0 评论 324 浏览 评分:0.0