题解列表

筛选

单词的长度

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ char a[1000]; int n[300]={}; /……

1307: 表达式计算1

摘要:```cpp #include using namespace std; const int N=10001; int a[N],b[N]; char op,k; bool key,mar……

简单又实用,看不懂请打死我

摘要:解题思路:用排序函数sort对输入的数据进行排序,使用降重函数unique对输入的数据进行降重并输出注意事项:使用sort和unique前添加头文件#include<algorithm>参考代码:#i……

个人觉得这解法是非常简单解法

摘要:解题思路我觉得代码能看懂,x=a/b,想要求x的最小,则x=a/(b+1)+1即可,x=a/b已经是最大的了。注意事项:参考代码:#include<iostream>#include<algorith……

蓝桥杯C组-填充

摘要:解题思路:大劣,考试的时候没想到╥﹏╥参考代码:#include <iostream>  // 引入输入输出流库 #include <cstring> // 引入字符串库 using namesp……

2775: 等差数列末项计算

摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a,b,c;    cin >>a>>b>>c;    cout<……