|
|
вернуться в форумterrible Послано Machvi 18 фев 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 alforithm corect for that problem is not using strings :D Re: terrible My program takes only 15 lines :D Re: terrible 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 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 1854601288 |
|
|