题解列表

筛选

自定义函数之字符提取

摘要:解题思路:遍历第一个字符串,用switch case语句筛选出元音储存在第二个数组中注意事项:while行中应该为*p!='\0'而不是p[i]!='\0'参考代码#i……

数列(2进制)

摘要:k,N=map(int,input().split())lst=list(str(bin(N)))[::-1]del lst[-2:]f=0;ans=0for i in lst:    if i==&……

2782: 整数大小比较

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

编写题解 3007: 收费

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

2782: 整数大小比较

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

冒泡法轻松解开!

摘要:解题思路:先输入前九个元素,然后输入插入元素,再然后使用冒泡法进行整体排序注意事项:参考代码:#include <stdio.h>int main(){ int arr[10]; for (int a……

暴力典中典

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 100001int main(){    char str[N];    gets(str);    int len……

题解 2821: 开关灯

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