I wrote a code for the FCTRL2 problem. Below link has the input+output sequence I get in gcc.

http : // pastebin . com / m4d152f8a

But, SPOJ says "WRONG ANSWER". What could be the reason? I'm getting the correct answer for each input in my system..

Please help!

  • created

    May '09
  • last reply

    May '09
  • 1

    reply

  • 143

    views

  • 2

    users

Your answer for 100 is incorrect. Here's my output for your inputs.

10
100
93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
96
991677934870949689209571401541893801158183648651267795444376054838492222809091499987689476037000748982075094738965754305639874560000000000000000000000
93
1156772507081641574759205162306240436214753229576413535186142281213246807121467315215203289516844845303838996289387078090752000000000000000000000
59
138683118545689835737939019720389406345902876772687432540821294940160000000000000
33
8683317618811886495518194401280000000
21
51090942171709440000
10
3628800
14
87178291200
9
362880
4
24

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 34 26d

Want to read more? Browse other topics in C and C++ or view latest topics.