1051: [编程入门]结构体之成绩统计2 解题思路:上题传送门:https://blog.dotcpp.com/a/84942上一题还没想好怎么用class代替struct,这一题机会就来了。构造方法和上题完全一致,都是定义包含N个对象的数组。(上一题是包含N个结构体成员的数组)而且不管写不写input()函数, 题解列表 2022年03月07日 0 点赞 0 评论 700 浏览 评分:9.9
Hifipsysta-2088-蓝桥杯算法提高VIP-快速幂(C++代码) ```cpp#includeusingnamespacestd;typedefunsignedlonglongull;ullquickExp(ullx,ulln,intmod){ullans=1;while(n!=0){if(n%2==1){ans=ans*x%mod;}x=x*x%mod;n/=2; 题解列表 2022年03月07日 0 点赞 0 评论 610 浏览 评分:8.0
二级C语言-寻找矩阵最值 摘要:解题思路:注意事项:参考代码:a=int(input())b=[]d=[]for i in range(a): c=list(map(int,input().split())) b.app…… 题解列表 2022年03月07日 0 点赞 0 评论 572 浏览 评分:0.0
[编程入门]有规律的数列求和 摘要:解题思路:注意事项: 想复杂了参考代码:#includeint main() { float i=2.0,j=1.0,k,J,n,N; scanf("%f",&N); …… 题解列表 2022年03月07日 0 点赞 0 评论 541 浏览 评分:0.0
1050: [编程入门]结构体之成绩记录 摘要:解题思路:一开始想用class代替struct,但是没想好怎么建对象的数组,就用struct了,实际上用class好像思路也是一样的。注意事项:(1)strcpy()函数要加<cstring>头。(2…… 题解列表 2022年03月07日 0 点赞 0 评论 815 浏览 评分:9.9
dp解题简单并且通过!!! **解题思路:**dp:先把每一份装填1,剩下i-j份,再把i-j份分成1,2,3,4,5份用数组记录每n(1,2....)份的分法种数。dp[i][j]=dp[i-j][1]+dp[i-j][2]+...+dp[i-j][j],(此刻应该消去一些式子, 题解列表 2022年03月07日 0 点赞 0 评论 796 浏览 评分:6.0
编写题解 1033: [编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:def yuan(m): for x in m: if x in ['a','e','i','o&#…… 题解列表 2022年03月07日 0 点赞 0 评论 615 浏览 评分:9.9
编写题解 1031: [编程入门]自定义函数之字符串反转--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void che(char str[]){ gets(str); for(int i=s…… 题解列表 2022年03月07日 0 点赞 0 评论 429 浏览 评分:0.0
编写题解 1023: [编程入门]选择排序--选择排序 摘要:解题思路:注意事项:参考代码:#includeint main(){ int a[10]; int k; int tmp; for(int i=0;i<10;i++){ …… 题解列表 2022年03月07日 0 点赞 0 评论 487 浏览 评分:0.0
二级C语言-阶乘公式求职 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fact(int k);int main(){ int n; double sum=0; scanf("%d",&n); …… 题解列表 2022年03月07日 0 点赞 0 评论 425 浏览 评分:0.0