题解列表

筛选

出圈,人要麻木了,真的出圈了

摘要:解题思路:注意事项:在判断最后一个函数中的迭代器要两次判断尾参考代码:#include <iostream> #include <vector> using namespace std; voi……

1149计算1~N之间所有奇数之和

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    string a;    getline(cin, ……

铺地毯 利用二维数组 易懂

摘要:解题思路:利用二维数组形成矩阵,答案中感觉比较少提到这种方法,在这里我来给出,请不吝赐教。参考代码:   int n;    scanf("%d",&n);                      ……

菜鸟编程,高手勿看

摘要:解题思路:利用while 循环来进行元素逆置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[10]; for (……