题解列表

筛选

题目 1739: 成绩排序

摘要:解题思路:注意事项:参考代码:def compare_students(student):    name, age, score = student    return (score, name, ……

没学链表,但学好循环和数组照样能解决问题

摘要:解题思路:创建一个数组,根据输入的人数往数组中存放每个人的编号,虽然没办法直接删除数组中的元素,但编号是从1开始的,也就是说当报数到3的时候,可以通过将那个编号变为0的方式达到退出的效果(变为其他数也……

2807: C++解题

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai……

2819: 数字反转

摘要:``` #include using namespace std; int main(){ int a,ans=0; cin>>a; while(a){ ans=ans*10+……

c代码记录之验证字串

摘要:1.空串是所有字符串的子串,但这题好像不验证这个 2.gets不通过,scanf能通过 #include #include int main() { ……