题解列表

筛选

递推 + 前缀和

摘要:解题思路:递推 + 前缀和注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>us……

结构体之成绩记录

摘要:解题思路:结构体变量和结构体数组注意事项:学号和姓名不能超过10个字符参考代码:#include<stdio.h>typedef struct{ un……

1051: [编程入门]结构体之成绩统计2

摘要:解题思路:设计学生对象的结构体变量,将全局结构体数组做为函数形参,完成函数之间数据的传递。注意事项:在输入ID和NAME时,由于其为字符串数组,所以不需要使用取地址运算符&参考代码:#incl……

1054: 二级C语言-计算素数和

摘要:解题思路:注意事项:重要: 素数的定义是大于1且只能被1和自身整除的数参考代码:int isprime(int num){ if(num>1) ……

二级C语言-计算素数和

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;bool isprime(int a){……

C语言训练-角谷猜想

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int a=n;……

判断素数遍历

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; int x; &n……

乘法口诀表

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int i=1;i<……