Search found 6 matches

by ansiemens
Sun May 26, 2013 9:27 am
Forum: Volume 112 (11200-11299)
Topic: 11218 - KTV
Replies: 11
Views: 6309

Re: 11218 - KTV

here is another sample output from my AC'ed code, a little bit different from above. Case 1: -1 Case 2: 24786 Case 3: 20911 Case 4: 21213 Case 5: 15606 Case 6: 18168 Case 7: 16764 Case 8: 25441 Case 9: -1 Case 10: 13347 Case 11: -1 Case 12: 24691 Case 13: -1 Case 14: 25430 Case 15: -1 Case 16: 20529...
by ansiemens
Sun Sep 19, 2010 9:46 pm
Forum: Volume 5 (500-599)
Topic: 502 - DEL command
Replies: 21
Views: 9173

Re: 502 - DEL COMMAND

Sorry, I have found the error. The input size of each line would be at most [+-]+8 chars+'.'+3+'\0' => 14, and I used only ten char to handle. following is my WA code, I have tried the input mention above and gotten correct answer. But it can not pass. I just can not figure out where is the error pa...
by ansiemens
Sun Sep 19, 2010 8:14 pm
Forum: Volume 5 (500-599)
Topic: 502 - DEL command
Replies: 21
Views: 9173

Re: 502 - DEL COMMAND

following is my WA code, I have tried the input mention above and gotten correct answer. But it can not pass. I just can not figure out where is the error part. Any tricky input or any flaws this code? thks delete after AC any one need my code for more thinking or any discussion, welcome to PM me.
by ansiemens
Wed Aug 31, 2005 3:54 pm
Forum: Volume 105 (10500-10599)
Topic: 10573 - Geometry Paradox
Replies: 33
Views: 11923

10573 Geometry Paradox ~WA

HI! I always got WA. I don't know whats wrong with it. can anyone tell me? #include<iostream> #include<sstream> #include<string> using namespace std; const double M_PI=3.14159265358979323846; int main() { int n,r1,r2,t; string input; cin >> n; cin.ignore(); cout.setf(ios::fixed); cout.precision(4); ...
by ansiemens
Tue Aug 09, 2005 3:21 pm
Forum: Volume 104 (10400-10499)
Topic: 10473 - Simple Base Conversion
Replies: 46
Views: 13448

I've got the following error with g++-2.95: tmp.cc: In function `int main()': tmp.cc:27: `uppercase' undeclared (first use this function) tmp.cc:27: (Each undeclared identifier is reported only once tmp.cc:27: for each function it appears in.) but g++ 3.4.2 can work|| i change #include<string> #inc...
by ansiemens
Tue Aug 09, 2005 11:29 am
Forum: Volume 104 (10400-10499)
Topic: 10473 - Simple Base Conversion
Replies: 46
Views: 13448

10473 compiler error ? WHY

Here is my code I can compile it in GCC of Freebsd and devc but why compiler error? #include<string> #include<iostream> #include<sstream> #include<iomanip> using namespace std; int main() { string input; int loc_x,loc_neg,d; while(cin>>input) { loc_neg=input.find("-",0); loc_x=input.find("0x",0); if...

Go to advanced search