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 | 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 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
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 :(