题解列表

筛选

2786: 判断能否被3、5、7整除

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    int n, count = 0;    cin >> n; ……

奇数单增序列(python超简单方法)

摘要:解题思路:灵活使用列表推导式和sorted函数,python来写这道题不要太简单!四行代码直接解决参考代码:N = int(input())nums = sorted(map(int, input()……

摘苹果的天天

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[10];    int b;    int i=0,j=0;    while(~scanf(……

................

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

略显生疏。。

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    double n=0,change,k=0;    scanf("%lf"……

Pell数列(C语言)

摘要:参考代码: ```c #include int m(int k) { int sum=0; int a1=1,a2=2; if(k==1) { ……

用C语言简单的思路来解题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){      int a[10],i,h,count=0;//i为数组下标,h为陶陶高度,count为摘下来的果子个……

流感传染(用深度优先做,这题深搜里应该也会有)

摘要:解题思路: 这题与那个细菌的繁殖和扩散很相似,用深搜,上下左右四个方向遍历一下,每天在一个方向只传染一个人, 建两个数组,第一个数组存每天传染前,第二个数组存传染后,以免遍历的时候出现今天刚被传染……