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 1268. Little Chu

Tolstiy_BSU I've got AC without precalculating array ... 0.046 sec [10] // Problem 1268. Little Chu 15 Feb 2005 14:16
Please, send me your solution or algorithm!
my email: xujand000@rambler.ru
Please, send me your solution or algorithm!
my email: cpp_student@163.com
Please, send me your solution or algorithm!
my email: ttxxli@163.com
Sended ...
DixonD (Lviv NU) Re: I've got AC without precalculating array ... 0.046 sec [1] // Problem 1268. Little Chu 3 Jan 2008 02:52
Heh, I solved without precalc too, but my solution got time near 0.234 sec ((
Please, send me your solution or algorithm!
my email: k13795263@126.com
Я на java решил за 0.25 без масива .На С++ было бы намного быстрее.Вообще основная идея - первообразный корень по примарному модулю. (Извините за русский но английский я не знаю )
http://e-maxx.ru/algo/primitive_root
It's very helpful, but in russian..
Thanks e-maxx!!!
AC whithout precalculating http://pastebin.com/d9UX3xh2
Thank you...

Edited by author 12.10.2013 08:56