题解列表
c++指针法(指针练习)
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ char arr[100]; cin.getline(arr,100……
C++二维数组装置,可不限与3*3大小
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[3][3]; int i,j; for (i=0;i……
编写题解 2784: 收集瓶盖赢大奖
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b; cin>>a>>b; if(10……
C语言训练-列出最简真分数序列之利用循环和条件判断输出最简真分数
摘要:### 解题思路:
理解题目含义,可知所有偶数和5的倍数都需要进行化简,因此只需要通过循环输出除1之外的奇数但不是5的倍数的数与40的比值即可。以下是解题的思路:
1. 使用`for`循环……
[编程入门]结构体之成绩统计2(C语言解法)
摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>#include<malloc.h>typedef struct _Student{ char num[10]; cha……
题解 1050: [编程入门]结构体之成绩记录
摘要:解题思路: 1.利用结构体储存学生信息 2.利用malloc 申请内存空间 3.利用指针people 遍历内存信息并输出注……
1043: [编程入门]三个数字的排序(插入排序思想)
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a[3] = {0}; for (int……
2830: 数字统计
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args……
2947: 不吉利日期 Python 简单实现
摘要:解题思路:m保存每个月份的天数,week表示周几,当累加大于7的时候 对7取模即可注意事项:参考代码:w = int(input())
m = [0, 31, 28, 31, 30, 31, 30,……