题解列表

筛选

循环嵌套写法

摘要:解题思路:建议参考矩阵输出方式。注意事项:参考代码:#include<stdio.h>int main(){ for (int i = 1; i <=9 ; i++) { for (int o = ……

for循环解决同因查找

摘要:解题思路:for循环解决同因查找注意事项:限制条件可以写一起参考代码:#include<stdio.h>int main(){ for (int i = 10; i <= 1000; i++) { ……

二次C语言——公约公倍

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m, n,q, t; scanf_s("%d%d", &m, &n); q = m * n; if (m……

题解 2821: 开关灯

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

暴力典中典

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

数列(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==&……

自定义函数之字符提取

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