Input:
- Code: Select all
2
299
492
495
399
492
495
399
283
279
689
078
100
000
000
000
456
789
234
453
125
175
183
256
012
100
000
Output:
- Code: Select all
16
5
Hope these help.
EDIT : The wrong input set is removed. Sorry for posting it.
Moderator: Board moderators
2
299
492
495
399
492
495
399
283
279
689
078
100
000
000
000
456
789
234
453
125
175
183
256
012
100
000
16
5
456
789
234
453
125
175
183
256
012
100
000
5
Users browsing this forum: No registered users and 0 guests