Search found 3 matches

by omarking05
Tue Mar 05, 2013 10:26 am
Forum: Volume 104 (10400-10499)
Topic: 10469 - To Carry or not to Carry
Replies: 24
Views: 10413

Re: 10469 - To Carry or not to Carry

well im sorry to post new thread in this section but the reason of doing that , that posting a reply in the original thread always don't get much care . lbv , thanks for your reply ^^ [*]the debugging couts was just to trace something in the code and yes i removed them before submitting the problem ...
by omarking05
Tue Mar 05, 2013 5:27 am
Forum: Volume 104 (10400-10499)
Topic: 10469 - To Carry or not to Carry
Replies: 24
Views: 10413

10469 - To Carry or not to Carry

please can anyone tell me whats wrong with this code ? #include <iostream> #include <string> #include <sstream> using namespace std; string convert (unsigned long long int n) { string s; stringstream out; out << n; s = out.str(); return s; } int bit (unsigned long long int n) { unsigned long long in...
by omarking05
Sun Feb 10, 2013 4:15 pm
Forum: Volume 118 (11800-11899)
Topic: 11850 - Alaska
Replies: 32
Views: 10108

Re: 11850-Alaska

hey .. can anybody tell me please whats wrong with my code ? #include <iostream> using namespace std; int main () { int n , lo[1430],count=1; while(cin>>n&&n!=0) { count=1; for (int i=0;i<n;i++) { cin>>lo[i]; } for (int j=0;j<n;j++) { if (lo[j]>lo[j+1]) { if (lo[j]-lo[j+1]<=200) count++; cout<<count...

Go to advanced search