Search found 1 match

by desperate12
Sat Dec 10, 2011 12:37 pm
Forum: Volume 111 (11100-11199)
Topic: 11185 - Ternary
Replies: 34
Views: 20307

11185 - ternary

Why I have got WA I can't understand ... ...


#include <cstdio>
#include <iostream>
#include <cstdlib>
#include <cstring>

using namespace std;

int main()
{
long long a;
int ternary[200],i,j;
while(cin>>a)
{
if(a<0)
{
return 0;
}


if(a==0)
{
cout<<'0'<<endl;
}


else
{
for(i=0;a>0 ...

Go to advanced search