## Search found 94 matches

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

### 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<<...
Fri Jun 22, 2007 8:01 am
Forum: Volume 5 (500-599)
Topic: 541 - Error Correction
Replies: 27
Views: 12585
plz hlp me ( (
Wed Jun 20, 2007 10:21 am
Forum: Volume 110 (11000-11099)
Topic: 11057 - Exact Sum
Replies: 50
Views: 22598
could you please describe the algo
Wed Jun 20, 2007 4:59 am
Forum: Volume 110 (11000-11099)
Topic: 11057 - Exact Sum
Replies: 50
Views: 22598
i have AC in 4.871 s .
i have used a O(n^2) algorithm. is there any linear algorithm for this problem ????
Wed Jun 20, 2007 4:41 am
Forum: Volume 110 (11000-11099)
Topic: 11059 - Maximum Product
Replies: 96
Views: 39412
never mind.
found my error and got AC
Wed Jun 20, 2007 4:31 am
Forum: Volume 110 (11000-11099)
Topic: 11059 - Maximum Product
Replies: 96
Views: 39412
my program outputs the following for ur test case

Code: Select all

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

Code: Select all

``````CODE DELETED AFTER AC :)
``````
Tue Jun 19, 2007 7:19 pm
Forum: Volume 5 (500-599)
Topic: 541 - Error Correction
Replies: 27
Views: 12585
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 :-)
``````
Thu Apr 26, 2007 4:31 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 24919
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
Wed Apr 25, 2007 2:27 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 24919
hi i am using Dev-cpp. it doesnt give any compile error on my machine.
may i know the reason for CE .
Sat Apr 21, 2007 6:46 pm
Forum: Bugs and suggestions
Topic: 333 - PE
Replies: 1
Views: 1922

### 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
Wed Apr 18, 2007 2:05 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 24919
i just dont understand the reason for PE.

Mon Apr 16, 2007 6:49 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 24919
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...
Sun Apr 15, 2007 8:46 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 24919

### 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(isalp...
Tue Feb 20, 2007 6:05 pm
Forum: Volume 2 (200-299)
Topic: 216 - Getting in Line
Replies: 57
Views: 25884
why wa ????

Code: Select all

``````CODE DELETED AFTER AC :)

``````