摘要: #include<bits/stdc++.h> using namespace std; const int N = 50; int addition (char[] , char[] , int[]);//大数加法,返回sum数组的长度 int subtraction (char[] , char 阅读全文
posted @ 2020-05-20 11:39 FOOLISH06 阅读(99) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.hrbust.edu.cn/contests/index.php?act=showproblem&cid=1570&p=F 解题思路:简单的dfs 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define l 阅读全文
posted @ 2020-05-17 12:23 FOOLISH06 阅读(134) 评论(0) 推荐(0)
摘要: 思路1: 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N = 1005; 4 char pre[N],now[N],ans[N]; 5 bool f() 6 { 7 int k = 0; 8 int len = min(s 阅读全文
posted @ 2020-05-11 22:16 FOOLISH06 阅读(107) 评论(0) 推荐(0)