题解列表

筛选

1050-结构体之成绩记录

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{     char num[10];     char name……

一般人写的常规代码

摘要:解题思路:注意事项:参考代码: int i,n,sum=0,p=-1; scanf("%d",&n); for(i=0;i<n;i++) {     p=p+3;     sum=sum+p;    ……

1051-结构体之成绩统计2

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{     char num[10];     char name……

1052-链表合并

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef struct Node{     int num;     int grade……

1112-一元二次方程

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

1113-保留字母

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ string s,s1; getli……

1124-大、小写问题

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main() //该段代码无法通过,显示答案错误。D……

非字符串方法,暴力求解

摘要:解题思路:一步一步来,先确定位数是多少,再求出余数等,直接看代码。注意事项:参考代码:#include<stdio.h>int func_a(int a){ int i = 0; //判断传入的数字是……

1126-字符串正反连接

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

1010: [编程入门]利润计算

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