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

Discussion of Problem 1528. Sequence

Posted by Machvi 18 Feb 2007 15:05
I hate long numbers!!!
I am begginer and I don't know them. so I have big problems.
I wrote an algorithm but it doesn't work because f is very big!!!

I've made it!!!
whithout long arithmetics

Edited by author 18.02.2007 16:25
Re: terrible
Posted by RadekDembkowski 18 Feb 2007 15:07
alforithm corect for that problem is not using strings :D
Re: terrible
Posted by Roma Labish[Lviv NU] 18 Feb 2007 21:06
My program takes only 15 lines :D
Re: terrible
Posted by David Wu 28 Feb 2007 08:15
My AC Program only takes 13 lines.

There's no need to use "LONG" numbers

Just this:
[code deleted]

Edited by moderator 04.02.2020 18:21
Re: terrible
Posted by moonsun 29 Jul 2007 09:32
just N!%P
Re: terrible
Posted by Yashar Abbasov 9 Nov 2007 01:28
But what about p? And don't you have to use int64 type instead of longint?
Answer, plz
is this test true? if yes then why i have WA2?????

10000 1999999999
0 0