题解列表

筛选

排序+遍历

摘要:先对数列进行排序,定义a[1]-a[0]为公差,遍历数列,如果有相邻两个数的差不等于公差输出no 否则输出yes ```cpp #include "iostream" using names……

超级玛丽游戏

摘要:解题思路:同理注意事项:参考代码:#include <stdio.h>int main(){    printf( "                ********\n"            " ……

1979: 求平均工资

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

C语言训练-阶乘和数*

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int Weishu(int n)//判断位数{    int i = 0;    while (n ……

C++_dfs容易理解

摘要:解题思路:10个位置每个位置上找到满足的数放置注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int n;int ar……

题解 2799: 奥运奖牌计数

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d,b1=0,c1=0,d1=0,s; ……
优质题解

校门外的树

摘要:解题思路:1.把这条道路上树的总数用一个数组装起来,把这个数组的每个元素都先定义为0;2.确定地铁区域,用双循环,外循环确定有多少个铁路区域;内循环用来给铁路区域做处理,并让此区域中对应所有的数组元素……

【Python】如何一行解决这道题

摘要:解题思路:普通的思路注意事项:没什么注意的参考代码:print(sum(list(map(int, [i*&#39;2&#39; for i in range(1,int(input())+1)]))……