I'm think, that applying astyle (or other code beautifier) to solutions before showing them in 'HACK solution mode', could be fine :)
What is your opinion?
№ | Пользователь | Рейтинг |
---|---|---|
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 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
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 |
I'm think, that applying astyle (or other code beautifier) to solutions before showing them in 'HACK solution mode', could be fine :)
What is your opinion?
Название |
---|
I'm consider this idea again. Using macros for loops (like FOR, REP, EACH etc.) is an issue for astyle.
So, patch for astyle is required or we can choose other code beautifier.
Note that solutions in hack mode are shown in flash player plugin, not HTML (it is made to prevent code copy-paste).
And using code beautifier in flash is much harder than in HTML.
I'm thinking about running code beautifier before generating 'flash image'
How exactly flash prevents copy-paste? The code is transferred from server to client anyway, so if one wants to copy the code, he will do it. Flash just complicates the process (nice example of security-through-obscurity), and it also complicates the life of 64bit-linux users. I'd propose to rewrite it in JS (so that the code is rendered by js in picture), lazy cheaters won't copy it anyway, and it'll be possible to use js libs to process the code.
By the way, is code really transferred in text form now? I observed that the font rendering of the code is substantially different from what it would normally be on my system. This makes me think that the text is pre-rendered to a picture and only then transferred to the client (but then, why use Flash altogether?).
There has been a 64-bit Flash for Linux for about 3 years now.
Even if it is transferred in picture, it is easy to use OCR to convert in it text. If there is no security anyway, there is no point in making others life harder.
64-bit flash for Linux is one of the most bugged programs I've ever seen. And I have to keep it installed because of codeforces hacks :(