题解列表

筛选

回文判断-for循环

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>intmain(){ chara[1……

易懂-数组输出

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>intmain(){&nbs……

用字符串存储方便反转

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int init(string s){ int x = 0; while……

纪念品分组(贪心思维)

摘要:> 直接排序,让价格从低到高,然后价格高的和低的一起,如果没有超过上限,就一组,cnt++> 如果超过上限,价格高的一组,cnt++```cpp#include using nam……