Search found 10 matches

by musfiqur.cse
Sat Dec 20, 2014 7:09 pm
Forum: Volume 128 (12800-12899)
Topic: 12897 - Decoding Baby Boos
Replies: 4
Views: 7067

Re: 12897 - Decoding Baby Boos

Why I am getting WA. My code is here #include<bits/stdc++.h> using namespace std; #define PI acos(-1.0) #define ll long long #define mem(a) memset(a,0,sizeof(a)); #define M 10000007 int main() { string ss; int i,j,k,l,n,m,arr[1001]; char ch,kh; scanf("%d",&n); while(n--){ mem(arr); for(i=(int)'A';i<...
by musfiqur.cse
Sat Dec 20, 2014 6:44 pm
Forum: Volume 128 (12800-12899)
Topic: 12898 - AND OR
Replies: 7
Views: 1537

Re: 12898 - AND OR

Now I/O is updated. They give me WA. I can't find the bugs in my solution.
by musfiqur.cse
Fri Dec 19, 2014 5:03 pm
Forum: Volume 128 (12800-12899)
Topic: 12898 - AND OR
Replies: 7
Views: 1537

12898 - AND OR

I am getting output limit exceed.. Need Some help #include<bits/stdc++.h> using namespace std; #define PI acos(-1.0) #define ll long long #define mem(a) memset(a,0,sizeof(a)); #define M 10000007 vector< ll>vt; vector< ll>qt; ll bitcount( ll n){ ll i,j=n,cnt=0; while(j!=0){ cnt++; j/=2; } return cnt;...
by musfiqur.cse
Sun Sep 28, 2014 5:20 pm
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 29246

Re: 10004 - Bicoloring

I am getting WA .. where is the bug in my code.. #include<bits/stdc++.h> using namespace std; #define PI acos(-1.0) #define ll long long #define mem(a) memset(a,0,sizeof(a)); #define M 10000007 int visit[10001],matrix[1000][1000],col[100001],chk; bool phk; void dfs(int p) { int i,a,b,j; for(i=0;i<p;...
by musfiqur.cse
Fri Sep 19, 2014 10:27 am
Forum: Volume 106 (10600-10699)
Topic: 10650 - Determinate Prime
Replies: 67
Views: 24542

Re: 10650 - Determinate Prime

Why i'm getting WA.. Please help .. I triend all input and output..

Code: Select all


Thank you Very much ! got accepted



by musfiqur.cse
Tue Sep 16, 2014 5:17 pm
Forum: Volume 109 (10900-10999)
Topic: 10925 - Krakovia
Replies: 50
Views: 21513

Re: 10925 - Krakovia

Code: Select all

Accepted!!
by musfiqur.cse
Tue Aug 26, 2014 10:16 pm
Forum: Volume 109 (10900-10999)
Topic: 10924 - Prime Words
Replies: 44
Views: 22346

Re: 10924 - Prime Words

Help Me please getting WA ! :( :'( #include<bits/stdc++.h> using namespace std; #define PI acos(-1.0) #define ll long long #define MAX 1000007 bool a[MAX]; void isPrime() { ll i,j; for(i=3;i*i<=MAX;i+=2) { if(a[i]==false){ for(j=i*i;j<=MAX;j+=i+i){ a[j]=true; } } } } bool checkprime(ll n) { if(n<1) ...
by musfiqur.cse
Sun Jun 08, 2014 10:26 pm
Forum: Volume 8 (800-899)
Topic: 893 - Y3K Problem
Replies: 11
Views: 8669

893- Y3K

I don't know why I'm getting wa! #include<bits/stdc++.h> using namespace std; long long p[1000]; int main() { long long int rd,dd,mm,yy; p[1]=31;p[3]=31;p[5]=31;p[7]=31;p[8]=31;p[10]=31;p[12]=31;p[2]=28; p[4]=30;p[6]=30;p[9]=30;p[11]=30; while(cin>>rd>>dd>>mm>>yy) { if(rd==0&&dd==0&&mm==0&&yy==0 ) b...
by musfiqur.cse
Sun Jun 08, 2014 12:56 pm
Forum: Volume 115 (11500-11599)
Topic: 11559 - Event Planning
Replies: 29
Views: 9281

11559- Event Planning

i don't know why I am getting wa in this code. #include<bits/stdc++.h> using namespace std; int main() { long n,b,h,w,minn,p,q,r,i,h_cost; bool flag,tflag; while(cin>>n>>b>>h>>w) { flag=false; minn=0; for(i=1;i<=h;i++) { tflag=true; cin>>h_cost; for(int j=1;j<=w;j++) { cin>>p; if(p<n) tflag=false; }...
by musfiqur.cse
Wed Jun 04, 2014 9:55 pm
Forum: Volume 115 (11500-11599)
Topic: 11559 - Event Planning
Replies: 29
Views: 9281

Re: 11559 Event planning

i can't find the bug of my code..Help me please !!!! #include<bits/stdc++.h> using namespace std; int main() { long n,b,h,w,minn,p,q,r,i,h_cost; bool flag,tflag; while(cin>>n>>b>>h>>w) { flag=false; minn=0; for(i=1;i<=h;i++) { tflag=true; cin>>h_cost; //cout<<"1st input"<<endl; for(int j=1;j<=w;j++...

Go to advanced search