Pages
Home
Sitemap
Wednesday, September 16, 2009
UVA Problem#575
Question:
http://uva.onlinejudge.org/external/5/575.html
Solution:
int main(){
.....
....
for(i=0; i<l; i++){
s=1;
for(j=l; j>i; j--){
s*=2;
}
k+=((a[i]-48)*(s-1));
}
......
.....
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment