C语言训练-求矩阵的两对角线上的元素之和-题解(C语言代码) 摘要:解题思路:用此不需要再减奇数中间的数 注意事项:参考代码:#include<stdio.h>int main(){ int a[10][10]; int sum = 0,N; scan…… 题解列表 2020年09月27日 0 点赞 0 评论 651 浏览 评分:0.0
二级C语言-等差数列-题解(C语言代码) 摘要:解题思路和注意事项:因为此题出现在循环联系中,所以这里是用循环角度而非等差数列求和的做法。参考代码:#include<stdio.h>int main(){ int n; int a=1; int b…… 题解列表 2020年09月26日 0 点赞 0 评论 1269 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路: 不知道为什么使用typedef答案就是错误,搞不懂,求大神解答。注意事项:参考代码:#include<stdio.h> struct date{ int year; int month…… 题解列表 2020年09月26日 0 点赞 0 评论 790 浏览 评分:0.0
蓝桥杯算法训练VIP-黑色星期五-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stido.h>int main(){ int a[12]={31,29,31,30,31,30,31,31,30,31,30,31}; int b[1…… 题解列表 2020年09月26日 0 点赞 0 评论 860 浏览 评分:9.9
误落迷宫-题解(Java代码) 摘要:坑题,题目描述不清楚。1:“ 接下来n行每行两个数字表示相互连通的点”,题目说相互连通容易误解为两个顶点可以相互畅通,其实只是a点到b点,b不能到a。2: 题目没有说明接下来输入的n行数字的范围,通过…… 题解列表 2020年09月26日 0 点赞 3 评论 334 浏览 评分:9.9
[编程入门]分段函数求值-题解(双题解,Python代码) 摘要:题解一: ```python x=int(input()) if x=1 and x…… 题解列表 2020年09月26日 0 点赞 1 评论 1511 浏览 评分:6.0
[编程入门]三个数最大值-题解(双题解,Python代码) 摘要:题解一: ```python a, b, c= map(int,input().split()) #表示的是一次能够输入多个值,依照空格进行分割。(输入不够三个数则不能按回车) sum = […… 题解列表 2020年09月26日 0 点赞 2 评论 2824 浏览 评分:8.8
字符求(C语言代码) 摘要:解题思路: 2^32次方有点大 用longlong定义的话求余比较麻烦,所以就用字符串,再将字符化为数字求和注意事项: 参考代码:#include<stdlib.h> #include<str…… 题解列表 2020年09月26日 0 点赞 0 评论 775 浏览 评分:0.0
[编程入门]第一个HelloWorld程序!-题解(双题解,Python代码) 摘要:题解一: ```python print("**************************") print("Hello World!") print("****************…… 题解列表 2020年09月26日 0 点赞 0 评论 1590 浏览 评分:7.8
[竞赛入门]简单的a+b-题解(双题解,Python代码) 摘要:题解一: ```python while True: #while True 语句中一定要有结束该循环的break语句,否则会一直循环下去的 try: #Python 中,用…… 题解列表 2020年09月26日 0 点赞 0 评论 2847 浏览 评分:8.0