1013: [编程入门]Sn的公式求和 摘要:import java.io.*; /** * Java 提供的 String 与 int 相互转换的方法解决这题十分方便 */ public class Main { …… 题解列表 2021年12月11日 0 点赞 0 评论 337 浏览 评分:0.0
1014: [编程入门]阶乘求和 摘要:import java.io.*; /** * 写一个计算阶乘的方法,再循环求和 * 踩坑:计算的结果有一个大数!用 long 来保存阶乘的结果! */ public clas…… 题解列表 2021年12月11日 0 点赞 0 评论 346 浏览 评分:0.0
1017: [编程入门]完数的判断 摘要:思路是从 1 到 n 挨个处理,保存其所有因数(除了自身),最后所有因数和与自身比较,如果相等则为完数。#include<bits/stdc++.h> using namespace std; …… 题解列表 2021年12月11日 0 点赞 0 评论 321 浏览 评分:0.0
1063: 二级C语言-统计字符 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string words; getline(cin,wo…… 题解列表 2021年12月11日 0 点赞 0 评论 338 浏览 评分:0.0
1067: 二级C语言-分段函数 摘要:#include<bits/stdc++.h> using namespace std; int main() { double x; cin >> x; if…… 题解列表 2021年12月12日 0 点赞 0 评论 346 浏览 评分:0.0
1071: 二级C语言-阶乘公式求值 摘要:注意 fact 函数的返回值类型是 double。(不是 double 的话 100 的测试值无法通过)#include<bits/stdc++.h> using namespace std; …… 题解列表 2021年12月12日 0 点赞 0 评论 399 浏览 评分:0.0
数列排序(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<vector> #include<cstdio> using namespace std; vector<…… 题解列表 2021年12月12日 0 点赞 0 评论 429 浏览 评分:0.0
编写题解 1159: 偶数求和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,n=0…… 题解列表 2021年12月12日 0 点赞 0 评论 907 浏览 评分:0.0
最长字符串 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){ char n[5][100]; int s=0; for(…… 题解列表 2021年12月12日 0 点赞 0 评论 390 浏览 评分:0.0
蓝桥杯算法训练VIP-字符删除 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){ char n[100]; char m[100]; ch…… 题解列表 2021年12月12日 0 点赞 0 评论 512 浏览 评分:0.0