Search found 94 matches

by abhi
Sun Mar 16, 2008 2:37 pm
Forum: Volume 114 (11400-11499)
Topic: 11407 - Squares
Replies: 24
Views: 9130

11407 - Squares

i am getting WA for this problem.it seems to be really simple. please give me some special inputs. here is my code # include <iostream> # include <fstream> using namespace std; int sqrs[101]; int main() { for(int i=0;i<=100;i++){ sqrs[i]=i*i; } int t; cin>>t; while(t--) { int N,c=0; cin>>N; //cout<<...
by abhi
Fri Jun 22, 2007 8:01 am
Forum: Volume 5 (500-599)
Topic: 541 - Error Correction
Replies: 27
Views: 11744

plz hlp me :(( :((
by abhi
Wed Jun 20, 2007 10:21 am
Forum: Volume 110 (11000-11099)
Topic: 11057 - Exact Sum
Replies: 50
Views: 21213

could you please describe the algo
by abhi
Wed Jun 20, 2007 4:59 am
Forum: Volume 110 (11000-11099)
Topic: 11057 - Exact Sum
Replies: 50
Views: 21213

i have AC in 4.871 s .
i have used a O(n^2) algorithm. is there any linear algorithm for this problem ????
by abhi
Wed Jun 20, 2007 4:41 am
Forum: Volume 110 (11000-11099)
Topic: 11059 - Maximum Product
Replies: 96
Views: 37269

never mind.
found my error and got AC :)
by abhi
Wed Jun 20, 2007 4:31 am
Forum: Volume 110 (11000-11099)
Topic: 11059 - Maximum Product
Replies: 96
Views: 37269

my program outputs the following for ur test case

Code: Select all

Case #1: The maximum product is 0.
by abhi
Tue Jun 19, 2007 7:52 pm
Forum: Volume 110 (11000-11099)
Topic: 11059 - Maximum Product
Replies: 96
Views: 37269

why WA ??? :(

Code: Select all

CODE DELETED AFTER AC :)
by abhi
Tue Jun 19, 2007 7:19 pm
Forum: Volume 5 (500-599)
Topic: 541 - Error Correction
Replies: 27
Views: 11744

hi i am unable to figure out the reason for WA.
plz give me some test cases atleast..............
here is my code if u wanna have a look at it

Code: Select all

CODE DELETED AFTER AC :-)
by abhi
Thu Apr 26, 2007 4:31 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21662

the second one does give error in the judge. but it compiles properly on my machine :(. may i know the reason.
and i also include all the necessary header files like <algorithm> etc ...
while making the final submission to the judge
by abhi
Wed Apr 25, 2007 2:27 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21662

hi i am using Dev-cpp. it doesnt give any compile error on my machine.
may i know the reason for CE .
by abhi
Sat Apr 21, 2007 6:46 pm
Forum: Bugs and suggestions
Topic: 333 - PE
Replies: 1
Views: 1858

333 - PE

hi i am unable to understand the reason for PE. it passes all the test cases on the board. i have considered the trailing and leading blanks. i have even tried to remove the blanks within the ISBN's. but still PE
i have already spent 19 submissions for this.
please tell me the reason for PE :(
by abhi
Wed Apr 18, 2007 2:05 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21662

i just dont understand the reason for PE.

please help :(
by abhi
Mon Apr 16, 2007 6:49 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21662

thsi is my new code still PE :( # include <iostream> # include <sstream> # include <cstdio> # include <string> //# define debug(x) cout<<#x<<" - "<<x<<'\n'; using namespace std; int ok(string s) { int i; int s1[10]={0},s2=0; if(s.size()!=10) {/* debug(s.size())*/return 0;} for(i=0;i<s.size();i++) if...
by abhi
Sun Apr 15, 2007 8:46 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21662

333 PE

why PE plz help # include <iostream> # include <sstream> # include <cstdio> # include <string> //# define debug(x) cout<<#x<<" - "<<x<<'\n'; using namespace std; int ok(string s) { int i; int s1[10]={0},s2=0; if(s.size()!=10) {/* debug(s.size())*/return 0;} for(i=0;i<s.size();i++) if(isalpha(s[i])) ...
by abhi
Tue Feb 20, 2007 6:05 pm
Forum: Volume 2 (200-299)
Topic: 216 - Getting in Line
Replies: 57
Views: 24594

why wa ????

Code: Select all

CODE DELETED AFTER AC :)

   

Go to advanced search