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 1118. Nontrivial Numbers

WA 5
Posted by rakeshvarna 27 Dec 2010 21:40
HI
  I seem to be getting WA 5 everytime. Any ideas or hints on the test?
Here is what i do:
if start is 1 cout 1
for i=stop to start and for odd numbers
    for j= 2 to floor(sqrt(i))
        add the divisors
    if it is a primeNumber cout<<i

cout the number with least triviality.
Re: WA 5
Posted by Vladimir Plyashkun [CSU] 17 Aug 2012 14:07
in test5 I = J.

Try this
2 2

aswear 2.

Edited by author 17.08.2012 14:07