题解列表

筛选

1239: 班级人数

摘要:```cpp #include using namespace std; float least_stu(float a,float b) { int N=1; bool ……

结构体之成绩记录(简单易懂)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student {    char num[10];     char name[20];    int a;     i……

计算(a+b)*c的值

摘要:解题思路:输入后直接输出注意事项:无参考代码:#include<iostream>  using namespace std;  int main( ){  int a,b,c;  cin>>a>>b……

1240: 生日日数

摘要:```cpp #include using namespace std; bool check(int n) { if(n%4==0&&n%100||n%400==0) ……

1210: 小明A+B(简单解法)

摘要:解题思路:对于小于100的数,对100取余得它本身对于大于100的数,对100取余得后两位参考代码:#include<stdio.h> int main(){ int c,i,n,a,b; sc……

数字的处理与判断

摘要:```python while True: try: a = list(map(int, input())) b = a[-1: -7: -1] print(len(a)) ……

基础的筛选n内素数

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