Search found 13 matches
- Tue Mar 29, 2011 8:49 pm
- Forum: Volume 4 (400-499)
- Topic: 469 - Wetlands of Florida
- Replies: 63
- Views: 30096
Re: Wetlands Of Florida - 469
Why WA!!!!! #include<stdio.h> #include<string> #include<string.h> #include<algorithm> using namespace std; typedef pair<int, int> pii; #define SZ 1000 char grid[SZ][SZ], s[SZ]; char seen[SZ][SZ]; int len[SZ], sz, cnt; int dr[] = {-1, -1, -1, 0, 0, 1, 1, 1}; int dc[] = {-1, 0, 1, -1, 1, -1, 0, 1}; in...
- Mon Oct 25, 2010 8:59 pm
- Forum: Volume 5 (500-599)
- Topic: 531 - Compromise
- Replies: 73
- Views: 34146
Re: 531 - Compromise - WA
Why WA !!!!!! #include<stdio.h> #include<iostream> #include<string> using namespace std; char s1[110][35], s2[110][35], s[35]; int lcs[110][110]; int b[110][110], con; string str; void dp(int sz1, int sz2) { int i, j; for(i=0; i<=sz1; i++) { for(j=0; j<=sz2; j++) { if(i>0 && j>0) { if(strcmp...
- Wed Oct 06, 2010 8:01 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10221 - Satellites
- Replies: 34
- Views: 18669
Re: 10221 - Satellites
Why WA?????
Code: Select all
Solved
- Wed Oct 06, 2010 8:00 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 116568
Re: 10189 - Minesweeper
WHy WA????
Code: Select all
Solved...
- Wed Oct 06, 2010 7:58 pm
- Forum: Volume 6 (600-699)
- Topic: 612 - DNA Sorting
- Replies: 122
- Views: 29716
Re: 612 - DNA Sorting
Why WA?????
Code: Select all
Solved
- Wed Oct 06, 2010 7:56 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10013 - Super long sums
- Replies: 212
- Views: 62651
Re: 10013 - Super Long Sums (WHY WA)
solved....
- Wed Oct 06, 2010 7:54 pm
- Forum: Volume 8 (800-899)
- Topic: 884 - Factorial Factors
- Replies: 49
- Views: 33723
Re: 884 - Factorial Factors (WHY TLE)
#include<stdio.h> #include<math.h> int prime[1000010], prm[1000010], sz; void sieve(int n) { prime[0]=1; prime[1]=1; int m = int(sqrt(n)), i=2, k; for(k=i*i; k<=n; k+=i) prime[k]=1; for (i=3; i<=m; i+=2) if(!prime[i]) for (k=i*i; k<=n; k+=i) prime[k]=1; } void only_primes() { prm[0] = 2; sz = 1; fo...
- Tue Oct 05, 2010 5:42 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10100 - Longest Match
- Replies: 95
- Views: 31082
Re: 10100 - Longest Match
my code also gives the same output.... but why wa..........
- Fri Oct 01, 2010 3:53 am
- Forum: Volume 100 (10000-10099)
- Topic: 10013 - Super long sums
- Replies: 212
- Views: 62651
Re: 10013 - Super Long Sums (WA)
Why WA
Code: Select all
Solved
- Fri Oct 01, 2010 3:51 am
- Forum: Volume 4 (400-499)
- Topic: 483 - Word Scramble
- Replies: 122
- Views: 35256
Re: 483 Word Scramble PE!!!!!!!!!!!!!
i change this
with
and got WA... ![:D](./images/smilies/icon_biggrin.gif)
Code: Select all
printf("%s ", s);
Code: Select all
printf("%s%c", str[i]);
![:D](./images/smilies/icon_biggrin.gif)
- Fri Sep 17, 2010 2:27 am
- Forum: Volume 101 (10100-10199)
- Topic: 10100 - Longest Match
- Replies: 95
- Views: 31082
Re: 10100 - Longest Match why WA
Code: Select all
Got AC... thanks Shafaet_du
- Wed Sep 15, 2010 6:06 pm
- Forum: Volume 4 (400-499)
- Topic: 483 - Word Scramble
- Replies: 122
- Views: 35256
Re: 483 Word Scramble PE!!!!!!!!!!!!!
Why PE ?? Can anyone plz refer me some critical i/o.
Code: Select all
Solved....
- Wed Sep 15, 2010 1:41 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 91910
Re: 10200 - Prime Time
Why i am getting wa....
Code: Select all
AC