c++指针法(指针练习) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ char arr[100]; cin.getline(arr,100…… 题解列表 2023年12月14日 0 点赞 0 评论 458 浏览 评分:0.0
利用数组解决Sn求和 摘要:解题思路:首先明确n和a的关系每当n增加一个数值,a增加一倍可以得到a*10+2;最后对得到的每个a进行储存,最后求和注意事项:参考代码:#include<stdio.h>int main(){ in…… 题解列表 2023年12月14日 0 点赞 0 评论 324 浏览 评分:0.0
2786: 判断能否被3、5、7整除 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n, count = 0; cin >> n; …… 题解列表 2023年12月14日 1 点赞 0 评论 475 浏览 评分:0.0
奇数单增序列(python超简单方法) 摘要:解题思路:灵活使用列表推导式和sorted函数,python来写这道题不要太简单!四行代码直接解决参考代码:N = int(input())nums = sorted(map(int, input()…… 题解列表 2023年12月14日 0 点赞 0 评论 403 浏览 评分:0.0
摘苹果的天天 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int b; int i=0,j=0; while(~scanf(…… 题解列表 2023年12月14日 0 点赞 0 评论 280 浏览 评分:0.0
................ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=1; scanf("%d",&n); for(int i=0;i<n-1;…… 题解列表 2023年12月14日 0 点赞 0 评论 322 浏览 评分:0.0
略显生疏。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double n=0,change,k=0; scanf("%lf"…… 题解列表 2023年12月14日 0 点赞 0 评论 282 浏览 评分:0.0
Pell数列(C语言) 摘要:参考代码: ```c #include int m(int k) { int sum=0; int a1=1,a2=2; if(k==1) { …… 题解列表 2023年12月15日 0 点赞 0 评论 594 浏览 评分:0.0
题解 1023: [编程入门]选择排序(冒泡排序 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int temp; int ar…… 题解列表 2023年12月15日 0 点赞 0 评论 319 浏览 评分:0.0
用C语言简单的思路来解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,h,count=0;//i为数组下标,h为陶陶高度,count为摘下来的果子个…… 题解列表 2023年12月15日 0 点赞 0 评论 355 浏览 评分:0.0