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 ...
Search found 94 matches
- Sun Mar 16, 2008 2:37 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11407 - Squares
- Replies: 24
- Views: 14102
- Fri Jun 22, 2007 8:01 am
- Forum: Volume 5 (500-599)
- Topic: 541 - Error Correction
- Replies: 27
- Views: 16763
- Wed Jun 20, 2007 10:21 am
- Forum: Volume 110 (11000-11099)
- Topic: 11057 - Exact Sum
- Replies: 50
- Views: 30493
- Wed Jun 20, 2007 4:59 am
- Forum: Volume 110 (11000-11099)
- Topic: 11057 - Exact Sum
- Replies: 50
- Views: 30493
- Wed Jun 20, 2007 4:41 am
- Forum: Volume 110 (11000-11099)
- Topic: 11059 - Maximum Product
- Replies: 96
- Views: 51693
- Wed Jun 20, 2007 4:31 am
- Forum: Volume 110 (11000-11099)
- Topic: 11059 - Maximum Product
- Replies: 96
- Views: 51693
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: 51693
- Tue Jun 19, 2007 7:19 pm
- Forum: Volume 5 (500-599)
- Topic: 541 - Error Correction
- Replies: 27
- Views: 16763
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
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: 40690
- Wed Apr 25, 2007 2:27 pm
- Forum: Volume 3 (300-399)
- Topic: 333 - Recognizing Good ISBNs
- Replies: 166
- Views: 40690
- Sat Apr 21, 2007 6:46 pm
- Forum: Bugs and suggestions
- Topic: 333 - PE
- Replies: 1
- Views: 2161
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
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: 40690
- Mon Apr 16, 2007 6:49 pm
- Forum: Volume 3 (300-399)
- Topic: 333 - Recognizing Good ISBNs
- Replies: 166
- Views: 40690
- Sun Apr 15, 2007 8:46 pm
- Forum: Volume 3 (300-399)
- Topic: 333 - Recognizing Good ISBNs
- Replies: 166
- Views: 40690
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 ...
# 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 ...
- Tue Feb 20, 2007 6:05 pm
- Forum: Volume 2 (200-299)
- Topic: 216 - Getting in Line
- Replies: 57
- Views: 31057
why wa ????
Code: Select all
CODE DELETED AFTER AC :)