第十题银行家算法解题过程程

第十题…求解题过程_百度知道第十题化学题要具体的解题思路.&
坑爹hwGQ20BV82
1据题目所指反应后剩余2.5g固体,因为杂质不溶于水不与稀盐酸反应所以2.5g为杂质,则样品中含有碳酸钙为12.5-2.5=10g2大理石主要成分是碳酸钙,与足量稀盐酸反应化学方程式为CaCO3+2HCl==CaCl2+H2O+CO2
4410/100=X/44X=4.4g
为您推荐:
其他类似问题
(1)杂质未参加反应 所以大理石质量为10g
(2)列方程式CaCO3+2HCl=CaCl2+H2O+CO2↑
因代入方程式的必须为纯净物所以把碳酸钙10g代入:
  思路:(1)样品中杂质不溶于水且不与稀盐酸反应,所以加入足量稀盐酸完全反应后固体剩余物的质量2.5g即是杂质的质量,碳酸钙的质量=12.5g-2.5g=10g;  (2)据碳酸钙的质量结合方程式计算二氧化碳的质量.
扫描下载二维码第十题,请告诉我解题步骤,谢谢&
选A,详细步骤如下,)由题意可以,向量b和c的夹角为30,b相当于斜边,c为直角边,那么|c|/|b|=cos30=根号3/2同时向量a和c也形成直角三角形,它们为此直角三角形的两条直角边,并且c对应的角度为60度,那么|c|/|a|=tan60=根号3两式一除,可得|a|/|b|=1/2,所以选A.
??????????????????????????????ɡ?
为您推荐:
其他类似问题
扫描下载二维码Regular Expression Matching
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not partial).
The function prototype should be:
bool isMatch(const char *s, const char *p)
Some examples:
isMatch(&aa&,&a&) return false
isMatch(&aa&,&aa&) return true
isMatch(&aaa&,&aa&) return false
isMatch(&aa&, &a*&) return true
isMatch(&aa&, &.*&) return true
isMatch(&ab&, &.*&) return true
isMatch(&aab&, &c*a*b&) return true
这里面,动态规划,以及递归的思想很重要
First of all, this is one of the most difficulty problems. It is hard to think through all different cases. The problem should be simplified to handle 2 basic cases:
the second char of pattern is &*&the second char of pattern is not &*&
For the 1st case, if the first char of pattern is not &.&, the first char of pattern and string should be the same. Then continue to match the remaining part.
For the 2nd case, if the first char of pattern is &.& or first char of pattern == the first i char of string, continue to match the remaining part.
public boolean isMatch(String s, String p) {
// base case
if (p.length() == 0) {
return s.length() == 0;
// special case
if (p.length() == 1) {
// if the length of s is 0, return false
if (s.length() & 1) {
//if the first does not match, return false
else if ((p.charAt(0) != s.charAt(0)) && (p.charAt(0) != '.')) {
// otherwise, compare the rest of the string of s and p.
return isMatch(s.substring(1), p.substring(1));
// case 1: when the second char of p is not '*'
if (p.charAt(1) != '*') {
if (s.length() & 1) {
if ((p.charAt(0) != s.charAt(0)) && (p.charAt(0) != '.')) {
return isMatch(s.substring(1), p.substring(1));
// case 2: when the second char of p is '*', complex case.
//case 2.1: a char & '*' can stand for 0 element
if (isMatch(s, p.substring(2))) {
//case 2.2: a char & '*' can stand for 1 or more preceding element,
//so try every sub string
int i = 0;
while (i&s.length() && (s.charAt(i)==p.charAt(0) || p.charAt(0)=='.')){
if (isMatch(s.substring(i + 1), p.substring(2))) {
大神解答网址:/2012/12/leetcode-regular-expression-matching-in-java/
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:235次
排名:千里之外
原创:12篇PS10 第14题 解题步骤_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
PS10 第14题 解题步骤
上传于||暂无简介
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
定制HR最喜欢的简历
你可能喜欢

我要回帖

更多关于 bomblab解题过程 的文章

 

随机推荐