ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1049. Brave Balloonists

I don't know what is the problem
Posted by Diego Alfonso Prieto Torres 9 Nov 2012 06:27
somebody know what is the test 3, I don't know what problem I have in my code; here is it

#include <stdlib.h>
#include <stdio.h>

int main(){

    int desicion[10];
    int exponentes[1000]={0};
    int i,j,valor=1;
    int numeroDivisores=1;
    int valorIteracion;
    int impresion;

    for(i=0;i<10;i++){
        scanf("%i",&desicion[i]);
        valor*=desicion[i];
    }

    i=2;
    j=0;
    while(valor!=1){
        if(valor%i==0){
            exponentes[j]++;
            valor=valor/i;
        }else{
            i++;
            numeroDivisores=numeroDivisores*(exponentes[j]+1);
            j++;
        }
    }

    numeroDivisores=numeroDivisores*(exponentes[j]+1);

    numeroDivisores%=10;

    printf("%i\n",numeroDivisores);
}