Hi, the input file is so big that my vscode and sublime crashed and now I am not able to run it anywhere and get my output! Can anyone pls help me regarding this?

# | User | Rating |
---|---|---|

1 | tourist | 3757 |

2 | jiangly | 3590 |

3 | ksun48 | 3582 |

4 | Um_nik | 3539 |

5 | maroonrk | 3533 |

6 | slime | 3498 |

7 | djq_cpp | 3486 |

8 | Radewoosh | 3442 |

9 | cnnfls_csy | 3427 |

10 | ko_osaga | 3355 |

# | User | Contrib. |
---|---|---|

1 | -is-this-fft- | 184 |

2 | awoo | 181 |

3 | dario2994 | 171 |

4 | SecondThread | 169 |

4 | maroonrk | 169 |

4 | Um_nik | 169 |

7 | adamant | 167 |

8 | YouKn0wWho | 165 |

8 | errorgorn | 165 |

10 | antontrygubO_o | 162 |

FIXED

THE ISSUE HAS BEEN RESOLVED.

THANKS META!

Alice is a little girl, she lovest o eat cakes too much. There are N cakes in a line and an array of tastes is given to her, the i'th of them has taste[i]. She is allowed to choose at most K distinct subarrays of the array and eat all the cakes in the subarrays (the subarray can't intersect each other), such that the total taste of the cakes is exactly M. Since Alcie is very little, she wants to eat a minimum possible number of cakes such that the total taste is exactly M.

If possible, print minimum number of cakes alice can each such that the total taste is M otherwise print -1.

1 =< N <= 100 1 =< K <= N 1 =< M <= 600 1 =< TASTE[i] <= 100

Codeforces (c) Copyright 2010-2022 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Oct/02/2022 12:26:51 (j3).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|