题解列表

筛选

1276: [NOIP2008]立体图

```cpp#include#includeusingnamespacestd;constintN=500;intn,m,h[N][N];charbox[6][8]={"..+---+",".//|","+---+|","||+","||/.",

题解 1209: 密码截获(C++)

```cpp#include#includeusingnamespacestd;intmain(){chara[1000];charb[1000];while(std::cin>>a){intn=1;intx;x=strlen(a);for(inti=0;i=m)?n:m;}}printf("%d\n

for循环暴力求解

摘要:解题思路:通过for循环遍历所有数求出最大与最小值。注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int n;    double……

暴力数组循环(简单明了)

摘要:解题思路:通过三层循环遍历每一种情况,再通过函数判断注意事项:暴力循环得不到满分但是能得一半以上的分。参考代码:#include<stdio.h>#include<string.h>int e=0;i……

利用集合List实现求幸运数(JAVA代码)

解题思路:开始数字存放放在list集合中list下标0123456数字序列0123456数字序号123456第一轮:幸运数字2(list初始化可以直接填入下列数字序列)list下标0123456数字序列01357911第二轮:幸运数3剔除后:list下标0123456数字序列01379缩紧后:list

编写题解 3005: 糖果游戏

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

Crazy-wang小小见解

解题思路:将存在异或为x的数据区间保存到建立的二维数组中去,然后在输入区间时对区间的左右值进行大小判断,如果输入的新区间大于已经保存区间,则代表这段新区间绝对存在异或为x的两个数,故可以直接得出结论,不需要再去重新遍历判断注意事项:参考代码:#include#include