摘要:
DescriptionWhen Valera has got some free time, he goes to the library to read some books. Today he's gottfree minutes to read. That's why Valera tooknbooks in the library and for each book he estimated the time he is going to need to read it. Let's number the books by integers from 1 ton 阅读全文
摘要:
还没写过大数减法,今天比赛还WA了两次。。。 1 #include 2 #include 3 using namespace std; 4 5 void sub(string a, string b) 6 { 7 string tmp,ans = "",c = ""; 8 int flag = 0;//借位 9 int k = 0;10 bool flag1 = false;//判断是否加负号11 12 if(a.length() = 0 && j >= 0)22 {23 if(a[i] + flag > b[j])24 .. 阅读全文