python编写a%b 摘要:解题思路:跟a+b一样的思路只是改运算符,具体注意事项参照a+b参考代码:while True: try: a,b=map(int,input().strip().split()) print(a…… 题解列表 2023年11月13日 0 点赞 0 评论 200 浏览 评分:0.0
c代码记录之自定义函数数字分离-C 摘要:解题思路:注意事项:参考代码:#includevoid output(char num[]) { int i; for(i=0;i<4;i++) printf(…… 题解列表 2023年11月13日 0 点赞 0 评论 132 浏览 评分:0.0
链表报数问题(Python) 摘要:解题思路:注意事项:参考代码:def find_last_person(n): people = list(range(1, n + 1)) current = 0 # 当前报数人的…… 题解列表 2023年11月13日 0 点赞 0 评论 264 浏览 评分:0.0
2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d", &a, &b); if (a<60 && b>…… 题解列表 2023年11月13日 0 点赞 0 评论 204 浏览 评分:0.0
2788: 晶晶赴约会 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if (1==a || 3==a || 5==…… 题解列表 2023年11月13日 0 点赞 0 评论 127 浏览 评分:0.0
[编程入门]猴子吃桃的问题 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,w,a,i; a=1; w=1; i=1; scanf("%d",&N…… 题解列表 2023年11月13日 0 点赞 0 评论 210 浏览 评分:0.0
[编程入门]宏定义之找最大数(数组方法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Max(a,b,c) ((a>b?a:b))>c?(a>b?a:b):cdouble max(double arr[])…… 题解列表 2023年11月13日 0 点赞 0 评论 165 浏览 评分:0.0
深搜dfs,python不容易过 摘要:d=[(-1,-2),(1,-2),(-2,-1),(2,-1),(-2,1),(2,1),(-1,2),(1,2)] def dfs(x,y,s): global res if…… 题解列表 2023年11月13日 0 点赞 0 评论 179 浏览 评分:0.0
3014: 计算星期几 摘要:``` #include using namespace std; int main(){ int a,b,ans=1,x=1; cin>>a>>b; //cout…… 题解列表 2023年11月13日 0 点赞 0 评论 210 浏览 评分:0.0
用c语言以最简短的代码量解决自由落体问题 摘要:解题思路:将第一次下落和第二次上升看为一个整体,这个整体的和为第二次上升距离的三倍,最终求总距离时可以看作是将每一个整体相加,最终再减去最后一次上升的部分即可注意事项:题目想让你解答的是减去最后一次上…… 题解列表 2023年11月13日 0 点赞 0 评论 154 浏览 评分:0.0