题解列表

筛选

LETTERS(经典DFS)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int r, s,t1=0,t2;//r,s表示迷……

循环输入简单易懂

摘要:#include int main() { int n,i; int a; int sum; while(1)//进入循环,结束条件为当输入的数等于0的时候……

数据结构-集合union(基础)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef struct List{    int L[200];    int leng……

26行解决问题

摘要:解题思路:1.一个数组存数字的读法,一个数组存单位的读法,这里不需要个位,将个位置空就行,因为平时也不读 “个” 。2. 通过输入字符串,让每位字符和 &#39; 0 &#39; 做差,来获取每一位的……

信息学奥赛一本通T1424-喷水装置

摘要:解题思路:注意事项:整体思路是按照喷头的起始位置从小到大进行排序,然后依次放置喷头,直到覆盖整个地块或者没有剩余的喷头可以放置。#include<iostream>#include<algorithm……