ENG
RUS
Timus 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
Discussion of Problem
1760
. Infernal Work
Show all threads
Hide all threads
Show all messages
Hide all messages
What is this pairs of ties ?
Lavi
1760
. Infernal Work
21 May 2010 13:22
1
What is this pairs of ties ?
Lavi
21 May 2010 13:22
I cant understand this problem... what are this "pairs of ties " and "long serial numbers of ties"
Suggest some other testcases
kylin
1760
. Infernal Work
21 Mar 2010 23:40
1
Suggest some other testcases
kylin
21 Mar 2010 23:40
small a,
big b,
big n,
and the LCM of a and b is larger than n.
such as
3 24999998 25000000
Edited by author 21.03.2010 23:41
why WA #12
fermion
1760
. Infernal Work
13 Mar 2010 19:51
2
why WA #12
fermion
13 Mar 2010 18:55
i divide n numbers into ceil[n/a] segments
for each segment, increasing B's ties by add b until it reach a, and count the pairs.
such like this:
while(j + b <= a) {
ans += j * b;
j += b;
}
Re: why WA #12
fermion
13 Mar 2010 19:51
it use %I64d but not %lld
New topic
Style:
flat
|
tree
|
nested
Thread Order:
bubble
|
fixed
© 2000–2025
Timus Online Judge Team
. All rights reserved.