题解列表

筛选

2901:查找特定的值——遍历

摘要:解题思路: 给了n个数,需要从中找值为x的数的下标。               因此可以设定一个数组a,用来存放这n个数。               然后遍历数组a,寻找某个下标k,使得  a[k……

2764: 带余除法

摘要:```cpp #include using namespace std; int main() { int a,b; cin>>a>>b; cout……

蓝桥杯算法提高VIP-sign函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int sign(double x){      if(x>0)      {            return 1;      } ……

三位数分解

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){      int a,b,c,n,i;      scanf("%d",&n);      for(i=100;……

C++ 贪心 + 排序

摘要:```cpp #include using namespace std; #define ll long long namespace test1 { struct tool {……