2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s…… 题解列表 2023年11月04日 0 点赞 0 评论 222 浏览 评分:0.0
2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s…… 题解列表 2023年11月04日 0 点赞 0 评论 163 浏览 评分:0.0
2848: 基因相关性 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ doubl…… 题解列表 2023年11月04日 0 点赞 0 评论 217 浏览 评分:0.0
2851: 合法C标识符 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ cin>>…… 题解列表 2023年11月04日 0 点赞 0 评论 233 浏览 评分:0.0
自定义函数来筛选N以内的素数 摘要:解题思路:——————————————定义函数+循环注意事项:参考代码:#include int is_prime(int n) { int j=0; for(j=2;j<n;j++) …… 题解列表 2023年11月04日 0 点赞 0 评论 161 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:由于两个数的乘积等于这两个数的最大公约数与最小公倍数的积。所以,求两个数的最小公倍数,就可以先求出它们的最大公约数,然后用两个数的积除去最大公约数得出它们的最小公倍数。参考代码:#inclu…… 题解列表 2023年11月04日 0 点赞 0 评论 178 浏览 评分:0.0
结构体之成绩记录(原始解法通俗易懂) 摘要:解题思路:原始解法,没有加任何指针或者链表。方便理解。注意事项:参考代码:#include<stdio.h>#include<string.h>struct Student { char id[128…… 题解列表 2023年11月04日 0 点赞 0 评论 145 浏览 评分:0.0
for循环c语言版 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int Y; float M,R; scanf("%f %f %d",&R,&M,&Y); …… 题解列表 2023年11月04日 0 点赞 0 评论 217 浏览 评分:0.0
宏定义之闰年判断 摘要:解题思路:在这题中使用定义宏的方法比使用定义函数的方法更简单注意事项:#define 定义常量和宏注意 #define 后面没有分号;#define 常量名 常量值#define 宏名 宏表达式参考代…… 题解列表 2023年11月05日 0 点赞 0 评论 152 浏览 评分:0.0
新手简单快速解决!!! 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n = 0, x = 0, y = 0; cin …… 题解列表 2023年11月05日 0 点赞 0 评论 169 浏览 评分:0.0