Search found 1 match

by sam83
Sat Jan 31, 2009 4:30 pm
Forum: Volume 4 (400-499)
Topic: 443 - Humble Numbers
Replies: 82
Views: 18122

Re: 443 WA I M GETTING WRONG ANS ........PLEASE HELP

#include<iostream>
#include<vector>
#include<math.h>
using namespace std;
int main()
{
long long int a,b=0,c,i,j,k,l;
vector<long long int>v;
for(i=0;i<=31;i++){
for(j=0;j<=31;j++){
for(k=0;k<=31;k++){
for(l=0;l<=31;l++){
a=pow(2,l)*pow(3,k)*pow(5,j)*pow(7,i);
if(a>0)
v.push_back(a ...

Go to advanced search