摘要:
声明一个char类型的栈。假设题目输入内容为n(int),a(string),b(string),a、b的下标记为index1和indexe2。第一步肯定是入栈。然后遍历b中每个字符: 如果栈不为空且栈顶元素等于b[index2],出栈。否则a[index1]入栈,如果没有元素可入栈,输出No。... 阅读全文
摘要:
This problem is just like java's BigInteger:#include #include using namespace std;string format(string str){ bool zheng=true; int ppos=str.find('.'); ... 阅读全文