Search found 7 matches

by shopnobaj_raju
Fri Jul 27, 2012 2:16 am
Forum: Volume 4 (400-499)
Topic: 473 - Raucous Rockers
Replies: 16
Views: 7384

Re: 473 - Raucous Rockers

Got WA :( . Can anoyone help?? #include<cstdio> #include<iostream> #include<vector> #include<utility> #include<algorithm> using namespace std; int main() { int c,i,j,k,ans,n,t,m,temp,tem2,tk,x; vector<int> songs; vector<vector<int> > dp; scanf("%d",&c); for(x=1;x<=c;x++) { songs.clear(); dp.clear();...
by shopnobaj_raju
Thu Jun 21, 2012 8:48 pm
Forum: Volume 110 (11000-11099)
Topic: 11057 - Exact Sum
Replies: 50
Views: 20904

Re: 11057 - Exact Sum

Thanks brianfry. U r a great helper. :)
by shopnobaj_raju
Sat Jun 16, 2012 2:53 pm
Forum: Volume 5 (500-599)
Topic: 562 - Dividing coins
Replies: 73
Views: 29592

Re: 562 - Dividing Coins

Thanks
by shopnobaj_raju
Sat Jun 16, 2012 2:47 pm
Forum: Volume 110 (11000-11099)
Topic: 11057 - Exact Sum
Replies: 50
Views: 20904

Re: 11057 - Exact Sum

why am i getting wa?? #include<stdio.h> #include<math.h> #include<string.h> #include<stdlib.h> int main() { int i,j,k,N; long int books[10002],M,sum,price1,price2,min_diff; while(scanf("%d\n",&N)!=EOF) { for(i=1;i<=N;i++) scanf("%ld",&books[i]); scanf("%ld",&M); price1=0; price2=0; min_diff=3000000;...
by shopnobaj_raju
Fri Jun 15, 2012 12:38 am
Forum: Volume 5 (500-599)
Topic: 562 - Dividing coins
Replies: 73
Views: 29592

Re: 562 - Dividing Coins

Runtime error. Why????

Code: Select all

AC
by shopnobaj_raju
Mon Jun 11, 2012 6:29 pm
Forum: Volume 114 (11400-11499)
Topic: 11420 - Chest of Drawers
Replies: 11
Views: 4918

Re: 11420 - Chest of Drawers

getting runtime error :-? . please help #include<stdio.h> #include<math.h> unsigned long long int secureit(int n,int s); unsigned long long int soln_lck_fst_it(int n,int s); unsigned long long int secure[100][100]; unsigned long long int soln_lck_fst[100][100]; int main() { int n,s; unsigned long lo...
by shopnobaj_raju
Sat Oct 29, 2011 12:50 am
Forum: Volume 117 (11700-11799)
Topic: 11716 - Digital Fortress
Replies: 39
Views: 10844

Re: 11716 - Digital Fortress

I'm getting WA. Please help :( #include<stdio.h> #include<string.h> #include<math.h> #include<stdlib.h> void main() { int t,i,j; long int length,k; double root; char arr[10001],**p; scanf("%d",&t); fflush(stdin); while(t--) { gets(arr); length=strlen(arr); root=sqrt(length); if(floor(root)==ceil(roo...

Go to advanced search