Search found 2 matches

by minor_coder
Sat Oct 18, 2014 6:53 pm
Forum: Volume 12 (1200-1299)
Topic: 1225 - Digit Counting
Replies: 17
Views: 8466

Re: 1225 - Digit Counting

Can't understand what is the problem? at first i got PE then fixing the spaces now WA. Please help



#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main()
{
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
int n;
cin>>n;
for (int i = 0 ...
by minor_coder
Mon Nov 02, 2009 1:49 pm
Forum: Volume 3 (300-399)
Topic: 343 - What Base Is This?
Replies: 72
Views: 28374

Re: 343(What Base is This?)

I cant understand why i m getting WA pls help

#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<math.h>


char num1[50],num2[50];
long long value1,value2;


long long basevalue(char num[],int base)
{
int i,j,length;
long long value=0;
length=strlen(num);
for(i=length-1,j=0;i>=0;i ...

Go to advanced search