Skip to content

Posterize

Unrated
English

Language

Contribute a translation
Time limit
2000 ms
Memory limit
2048 MB (no extra memory)
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Posterize, original English page 1

Posterize, original English page 2

Examples

Sample input 1
2 1
50 20000
150 10000
Sample output 1
66670000
Sample input 2
2 2
50 20000
150 10000
Sample output 2
0
Sample input 3
4 2
0 30000
25 30000
50 30000
255 30000
Sample output 3
37500000

Tags

No tags yet

Source