题解列表

筛选

信息学奥赛一本通T1422-活动安排

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体aaa,包含两个整数成员s和f struct aaa{ ……

回文字符串四种情况

摘要:解题思路:1.字符串s本身回文aaa2.全为"lqb"字符,补充另一半即可lqb ==> bql_lqb3.前部分回文ioilqb ==> bql_ioilqb4.部分回文bioi_blq ==>ql……

很简单的题

摘要:解题思路:无注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int M[20]= {0,31,0,31,30,31,30,31,31,30,……

The Kth great number

摘要:#include <bits/stdc++.h>#define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v[i] << &#39;……

C++ 计算器 模拟题

摘要:#include <bits/stdc++.h> #define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v

链表的创建

摘要:#include <bits/stdc++.h> #define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v

通过数组还有循环

摘要:解题思路: //1009输入一个不多于五位的整数,输出位数,每一位,倒序输出 //通过while循环判断该数的位数,再通过循环存取每一位元素和求其倒序注意事项:参考代码:int N,count=0,a……