blob: e3b81ff970b016126a9809505a7e835cde1995d1 [file] [log] [blame]
>>>
void main() {
final f = stdin.readLineSync,
p = int.parse,
n = p(f()),
ranges = List.generate(n, (_) {
final t = f().split(' '), a = p(t[0]), b = a + p(t[1]);
return [a, b];
}),
dp = List<int>(n);
}
<<<
void main() {
final f = stdin.readLineSync,
p = int.parse,
n = p(f()),
ranges = List.generate(n, (_) {
final t = f().split(' '), a = p(t[0]), b = a + p(t[1]);
return [a, b];
}),
dp = List<int>(n);
}