Can someone provide me a link or some type of tutorial how am i supossed to write it ? I tells us that we need to write the answers in : int 64 somefunction(int64 [] K) : but how i can test if it's correct or not ?
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 160 |
4 | adamant | 160 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
8 | Dominater069 | 154 |
8 | nor | 154 |
Can someone provide me a link or some type of tutorial how am i supossed to write it ? I tells us that we need to write the answers in : int 64 somefunction(int64 [] K) : but how i can test if it's correct or not ?
In celebration of the 4th of July, Aldo goes to an American buffet. In this buffet, there are different types of dishes. The -th plate fills a percentage of your stomach and gives you a percentage of happiness.
Aldo can eat a plate at the most once, because he wants variety, and he wants to achieve 100% happiness without going over 100% full. Help Aldo determine the maximum number of dishes he can eat while satisfying his restrictions.
Notes:
It is valid to exceed 100% happiness, but not 100% fullness. It is guaranteed that Aldo can always reach 100% happiness.
Input : The first line contains an integer, the number of dishes. The following lines contain 2 integers each, and the percentages of fullness and happiness that they cause, respectively.
Example input :
Answer : 1
Please, i need at least a hint. I tried to solve it solo but i can't.
Hey ! Anyone knows any plugin for GVIM that allows me to parse problems from "COMPETETIVE COMPANION" and test it with sample tests ?
Hi ! First of all HNY 2021 ! Many noobs ( including me) doesn't have a "main" editor that they use for cp so i invite all the people from codeforces (noobs, LGM, etc) to say what's their main editor. :)
EDIT : If you're using vim please tell us , you use "gvim" or "vim".
Hi ! I have a problem with debug in c++. I'm using this —
void DBG() { cerr << "]" << endl; } template<class H, class... T> void DBG(H h, T... t) { cerr << to_string(h); if(sizeof...(t)) cerr << ", "; DBG(t...); }
When i type for example — int a = 5; dbg(a);
It's not showing any output.
Name |
---|