2019年10月24日

L1-027 出租

摘要: #include <iostream> #include <algorithm> using namespace std; int main() { int data[11],arr[11]; int index[11]; for(int i=0;i<11;i++) { scanf("%1d",&d 阅读全文

posted @ 2019-10-24 12:40 TigerDZ 阅读(110) 评论(0) 推荐(0) 编辑

2019年10月23日

L1-023 输出GPLT

摘要: #include <iostream> #include <algorithm> #include <cmath> #include <map> #include <cstdio> #include <sstream> #include <cstring> #include <cctype> usi 阅读全文

posted @ 2019-10-23 18:58 TigerDZ 阅读(114) 评论(0) 推荐(0) 编辑

2019年10月22日

L1-017 到底有多二

摘要: #include #include #include #include #include #include #include #include using namespace std; #define maxn 3000 int main() { string s; cin >>s; float ans = 0; int flag =1; if... 阅读全文

posted @ 2019-10-22 19:40 TigerDZ 阅读(199) 评论(0) 推荐(0) 编辑

L1-016 查验身份证

摘要: #include #include #include #include #include #include #include #include using namespace std; #define maxn 3000 int main() { string ids[maxn] ; int N,count=0; cin >>N; int we... 阅读全文

posted @ 2019-10-22 12:35 TigerDZ 阅读(142) 评论(0) 推荐(0) 编辑

2019年10月21日

L1-015 跟奥巴马一起画方块 (15 分) 四舍五入

摘要: #include <iostream> #include <algorithm> #include <cmath> #include <map> #include <cstdio> #include <sstream> using namespace std; #define maxn 3000 i 阅读全文

posted @ 2019-10-21 19:50 TigerDZ 阅读(249) 评论(0) 推荐(0) 编辑

2019年10月17日

L1-008 求整数段和

摘要: #include <iostream> #include <algorithm> #include <cmath> #include <map> #include <cstdio> using namespace std; #define maxn 3000 int main() { int a,b 阅读全文

posted @ 2019-10-17 12:17 TigerDZ 阅读(66) 评论(0) 推荐(0) 编辑

L1-007 念数字

摘要: #include <iostream> #include <algorithm> #include <cmath> #include <map> using namespace std; #define maxn 3000 int main() { map<int,string> ma; ma[0] 阅读全文

posted @ 2019-10-17 11:54 TigerDZ 阅读(127) 评论(0) 推荐(0) 编辑

2019年4月2日

SDUT ———— 2107 数据结构实验之图论二:图的深度遍历

摘要: 数据结构实验之图论二:图的深度遍历 Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 请定一个无向图,顶点编号从0到n-1,用深度优先搜索(DFS),遍历并输出。遍历时,先遍历节点编号小的。 请定一个无向图,顶点编号从0到 阅读全文

posted @ 2019-04-02 20:56 TigerDZ 阅读(109) 评论(0) 推荐(0) 编辑

SDUT ———— 2448 DFS走迷宫

摘要: #include using namespace std; int matrix[7][7]; int cout1 = 0; int n,m; int visit[7][7]; inline bool judge(int e1,int e2 ) { return (e1 > 0 ) && ( e1 0)&&( e2 >T; while (T -- > 0){ ... 阅读全文

posted @ 2019-04-02 14:28 TigerDZ 阅读(98) 评论(0) 推荐(0) 编辑

2019年3月19日

SDUT -—— 递归第三弹 1295 螺旋方阵

摘要: n×n的螺旋方阵当n=5和n=3时分别是如下的形式 请给出一个程序,对于任意的输入n(0<n<11),输出按照上面规律所获得的n×n的螺旋方阵。 Input 输入第一行为整数m(0<m<10),代表有m组输入;接下来是m行数据,每行输入一个n(0<n<11)。 Output 按照输入的次序,依次输出 阅读全文

posted @ 2019-03-19 19:12 TigerDZ 阅读(112) 评论(0) 推荐(0) 编辑

导航