11246 - K-Multiple Free set

All about problems in Volume 112. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

sapnil
Experienced poster
Posts: 106
Joined: Thu Apr 26, 2007 2:40 pm
Location: CSE-SUST
Contact:

WR help

Post by sapnil » Wed Aug 15, 2007 6:24 am

I get too many WR.
Plz special input output
Sapnil.........

mmonish
Experienced poster
Posts: 109
Joined: Sun Mar 11, 2007 2:55 pm
Location: SUST

Post by mmonish » Sat Aug 18, 2007 2:20 pm

Try this cases

Input

Code: Select all

10
1 2
1000000000 2
1000000000 100
999999999 99
999999999 3
100 20
100 100
100 10
100000000 100
1000000000 10
Output

Code: Select all

1
666666665
990099010
989999999
750000000
95
99
91
99009901
909090909
Hope this helps.

Post Reply

Return to “Volume 112 (11200-11299)”