ENG
RUS
Timus 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
Discussion of Problem
1049
. Brave Balloonists
Show all threads
Hide all threads
Show all messages
Hide all messages
do u want my solution???
nicushor
1049
. Brave Balloonists
17 Mar 2003 15:20
1
do u want my solution???
nicushor
17 Mar 2003 15:20
ha-ha-ha
are u crazy?????????????
Why Crash???
discouraged one
1049
. Brave Balloonists
31 Jan 2003 12:30
1
Why Crash???
discouraged one
31 Jan 2003 12:30
#include <iostream.h>
int div[10000];
int A[10];
void del(int);
int main(void)
{
int Q = 1;
for(int i = 0 ; i < 10 ; ++i)
cin >> A[i];
for(int i = 0 ; i < 10 ; ++i)
del(A[i]);
for(int i = 0 ; i < 10000 ; ++i)
{
Q *= (div[i] + 1);
Q %= 10;
};
cout << Q;
return 0;
};
void del(int a)
{
int d = 2;
while(a != 1)
{
if(a % d)
{
if(d == 2)
d = 3;
else
d += 2;
}else
{
a /= d;
++div[d];
div[d] %= 10;
};
};
};
Can anyone explain me the algorithm of this subject?
John Bill
1049
. Brave Balloonists
29 Jan 2003 16:50
2
Can anyone explain me the algorithm of this subject?
John Bill
8 Nov 2002 12:06
Re: Can anyone explain me the algorithm of this subject?
Accepted
29 Jan 2003 16:50
> mail me at ssf_digi@hotmail.com i'll told u .
New topic
Style:
flat
|
tree
|
nested
Thread Order:
bubble
|
fixed
© 2000–2024
Timus Online Judge Team
. All rights reserved.