自定义函数之字符串反转(除了hellow word 外简单的代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; gets(str); int n = strl…… 题解列表 2023年02月09日 0 点赞 0 评论 521 浏览 评分:9.9
自定义函数之数字分离(这样也行) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[5]; gets(arr); int n = strlen…… 题解列表 2023年02月09日 0 点赞 0 评论 544 浏览 评分:9.9
因数平方和(数论分块+数学式子推导) ~~~#includeusingnamespacestd;constintmod=1e9+7;typedeflonglongll;intn;llqmin(lla,llb,intm){lls=1;while(b){if(b&1)s=a%m*s%m;a=a%m*a%m;b>>=1;}returns;}ll 题解列表 2023年02月09日 0 点赞 0 评论 1073 浏览 评分:5.0
刷题统计Pthon 摘要:解题思路:注意事项:参考代码:a,b,n=map(int,input().split())week=5*a+2*bdays=(n//week)*7n%=weekif n<=a*5: day=0 …… 题解列表 2023年02月09日 0 点赞 0 评论 566 浏览 评分:0.0
1002: [编程入门]三个数最大值c++代码 摘要:解题思路:先重大到小排序,再输出最大值。注意事项:要输最大值。参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[…… 题解列表 2023年02月09日 0 点赞 0 评论 588 浏览 评分:9.9
K-进制数题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int zuhe(int n,int m){ int z=1; for(int i=…… 题解列表 2023年02月09日 0 点赞 0 评论 511 浏览 评分:9.9
有详解 简单易懂 ```cpp//目标:计算每个科目的平均分以及输出总分最高的学生的信息#include#includeusingnamespacestd;structstudent{stringxuehao;stringname;intkm1,km2,km3;};intmain(){//n个学生的成绩, 题解列表 2023年02月09日 0 点赞 0 评论 788 浏览 评分:0.0
最简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; int s=1; for(i=1;i<=n;i++)…… 题解列表 2023年02月09日 0 点赞 0 评论 472 浏览 评分:0.0
计算球的体积(Python) 摘要:解题思路:注意事项:参考代码:import math pi = math.pi while True: try: r = float(input()) …… 题解列表 2023年02月09日 0 点赞 1 评论 1293 浏览 评分:7.5
最大上升子序列和-DP ####DP问题####注意事项-与最长上升子序列问题思路相同,仅仅改变维护的信息。######代码```#include#includeusingnamespacestd;constintN=1010;intn;inta[N],f[N];intmain(){cin>>n;for(inti=1;i 题解列表 2023年02月09日 0 点赞 0 评论 746 浏览 评分:9.9