Search found 5 matches

by Aseem chakrabarthy
Thu Mar 26, 2015 10:12 am
Forum: Volume 116 (11600-11699)
Topic: 11636 - Hello World!
Replies: 30
Views: 6888

Re: 11636 - Hello World!

Thanks Accepted...
by Aseem chakrabarthy
Thu Mar 26, 2015 10:11 am
Forum: Volume 102 (10200-10299)
Topic: 10221 - Satellites
Replies: 34
Views: 13516

Re: 10221 - Satellites

Thanks Accepted...
by Aseem chakrabarthy
Mon Feb 09, 2015 7:27 am
Forum: Volume 128 (12800-12899)
Topic: 12898 - AND OR
Replies: 7
Views: 1657

Re: 12898 - AND OR

Why i'm getting wrong answer.... #include<stdio.h> #include<iostream> #include<math.h> #include<algorithm> #include<string.h> using namespace std; int main() { int test,i; cin>>test; for(i=1;i<=test;i++) { long long int a,b,a_or,b_and; cin>>a>>b; a_or=a|b; b_and=a&b; cout<<"Case "<<i<<": "<<a_or<<" ...
by Aseem chakrabarthy
Fri Feb 06, 2015 10:10 am
Forum: Volume 102 (10200-10299)
Topic: 10221 - Satellites
Replies: 34
Views: 13516

Re: 10221 - Satellites

why i getting wrong Answer..... #include<stdio.h> #include<iostream> #include<iomanip> #include<string.h> #include<math.h> #include<stdlib.h> #define PI 2*acos(0.0) using namespace std; int main() { double s,a; string n; double arc,chord; while(cin>>s>>a>>n) { arc=s+6440; if(n=="deg") { if(a>180) a=...
by Aseem chakrabarthy
Tue Jan 20, 2015 2:26 pm
Forum: Volume 116 (11600-11699)
Topic: 11636 - Hello World!
Replies: 30
Views: 6888

Re: 11636 - Hello World!

Why getting wrong answer?? plz help me... #include<iostream> #include<math.h> using namespace std; int main() { int n,i,test,copy,line; cin>>test; for(i=1;i<=test;i++) { cin>>n; if(n<0) { break; } if(n==0) { cout<<"Case "<<i<<": "<<"0"<<endl; } else { n=ceil(log(n)/log(2)); cout<<"Case "<<i<<": "<<n...

Go to advanced search