Search found 2 matches
Search found 2 matches • Page 1 of 1
- Fri Apr 05, 2013 3:23 am
- Forum: Volume 101 (10100-10199)
- Topic: 10131 - Is Bigger Smarter?
- Replies: 93
- Views: 67431
@brianfry: I tested the i/p you gave and answer was perfect, but still getting WA. [Have used simple LIS with one change: I have also checked list of elephants from both ends because the output may not be a subsequence necessarily. [eg most intelligent and thinnest elephant may be at list end.] Code...
- Fri Apr 05, 2013 2:06 am
- Forum: Volume 4 (400-499)
- Topic: 497 - Strategic Defense Initiative
- Replies: 144
- Views: 23469
I tested for the inputs in this thread, which work perfectly. Why WA? Thanks in advance. Here's the code (simple LIS) [http://ideone.com/hihvoU] : #include<iostream> #include<fstream> #include<sstream> #include<cstdio> #include<stdlib.h> #include<string> #include<cstring> #include<cmath> #include<al...