Is it considered A cheating if I use another person's implemention for a data structure instead of designing one by myself?
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
Is it considered A cheating if I use another person's implemention for a data structure instead of designing one by myself?
Name |
---|
It depends on platform rules but usually you can use prewritten code if it is either written by you or was published on the internet with appropriate license (which allows you to use it) before the start of the contest. Obviously, you can't ask someone to implement a data structure for you during the contest.
.
Jon Louis Bentley : Yes
That's not segment tree lol, wikipedia has wrong data structure under its definition
You'd be amazed at how often something like segment tree was actually discovered independently by newbie contestants :) .
Been there, done that.
Granted my implementation was very rudimentary and based primarily on guesswork, but yeah I did kinda discovered before I read up on it a few days later.
Yeah, fun times.
Mine was using 2x less memory, like Fenwick, but the code was longer than segtree and Fenwick combined.
oof.
What about using someone else's library ? , it counts as open-source and prewritten
It's fine. Lots of people copy from KACTL for example.