Блог пользователя Enchom

Автор Enchom, 11 лет назад, По-английски

So I recently decided to create some Gym contest (for my friends) using polygon. I have encountered a few problems and if someone could please help me out or link me to detailed polygon help, that would be fantastic.

1) Naming the actual problems. As stupid as it may sound I couldn't find how to name the problem. In the statement itself it appears with the name I've chosen, but when you open the contest, this is what you get:

2) Sample input/output tests. In the statement section I found how to add Input/Output descriptions, Notes descriptions and general statement description, but not how to add sample tests in statement. Solved thanks to EROR

3) Changing an already created problem. When I upload the problem to codeforces contest and afterwards change it in the polygon system, I couldn't find a way to update the actual problem in codeforces. It changes fine in polygon system but it keeps the originally uploaded version in codeforces itself. Solved thanks to EROR

4) Using pictures in statement and better fonts/bolding/etc. Writing the statement seems to allow only simple text and not even bolding the text. I see an option to add pictures as resource but I don't have clue how to actually use them afterwards, so some help with that would be amazing. Solved thanks to EROR

Edit 5) Is there a way to change the view to HTML view and not PDF view? I believe it looks better, but by default it opens PDF view when I click on the problem in cf. Also pictures don't seem to work in PDF.

Update:

Names of problems are still not showing up and pictures don't seem to work in PDF format, but I'm unable to change the statements to show up in HTML format. Those 2 problems are still unresolved, so any help is welcome!

Update 2 Thanks to EROR pictures in PDF now work, so blank problem names seems like the main problem.

Sorry if these questions sound dumb, but I couldn't find a good way to solve them.

Thanks in advance! :)

  • Проголосовать: нравится
  • +7
  • Проголосовать: не нравится

»
11 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +29 Проголосовать: не нравится

Some days ago I add some problems in polygon and got in trouble as like you. Solved some as my own and some CF user helped me to solve some. Thnx to them. Now here are some solution of yours

  1. I don't know how to solve this.

  2. Go to "Tests" and then "Add Test" Use Your input test case into the data section. Check the Box labeled "Use in statements". Then this test will appear in your problem statement as sample test. You do not need to upload any output for your tests. You need to upload the solution file in the solution tab the system will generate output for you.

  3. For changing a problem you need to repackage it. Just commit your changes and repackage it from the "Packages" tab. Your problem will be updated automatically. No need to do anything in CodeForces.

  4. Use those for image in problem statement.

\begin{center}
\includegraphics{Your image name with extension which is already uploaded goes here}
\end{center}

For Boldfing a text you need to write

\textbf{Your Text Here}
  • »
    »
    11 лет назад, скрыть # ^ |
    Rev. 3  
    Проголосовать: нравится +3 Проголосовать: не нравится

    That's great, thanks a lot!

    Is there a list of special commands to bold/add pictures and such stuff. For example is changing font size an option?

    And about just repackaging a problem, it didn't seem to work. No matter how much I repackaged it, it stayed the same in Codeforces. EDIT : Acutally fixing some permissions, it is working now :)

    And blank problem names seems like some serious issue, hopefully someone will enlighten us with a solution :)

    • »
      »
      »
      11 лет назад, скрыть # ^ |
       
      Проголосовать: нравится +3 Проголосовать: не нравится

      You are welcome. The problem statement support simpleTex ( A variation of LaTeX maybe) syntax. You can see searching for that. The name of problems appears in my contest, I just added the name in the "Name" Field of "Statement" tab. The update of problem also worked for me when I repackage and give permission to "Codeforces Judge System" for reading.

      Though i faced a serious problem that i can not delete problem from the contest list when added. When i tried hiding them the problem statement repetead itself with A2, A3 and with none access able link. Couldn't fix it. :)

      • »
        »
        »
        »
        11 лет назад, скрыть # ^ |
         
        Проголосовать: нравится +3 Проголосовать: не нравится

        Yeah, I have the same problems pretty much. I gave "write" permission to codeforces, thought that's enough. I'll try a few different stuff, hopefully my names will start working.

        Thanks a lot :)

»
11 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

For 1, I also faced the same issue. Then I tried randomly many things: upload contest descriptor through FTP, click Update contest, update packages in Polygon...

For 5, my problems always show in HTML ( though I prefer PDF :( ). Did you type in the problem statement in Statement tab? Or did you upload it?

  • »
    »
    11 лет назад, скрыть # ^ |
    Rev. 2  
    Проголосовать: нравится +3 Проголосовать: не нравится

    I typed it, I'm not sure how to upload it. I didn't even know it's possible.

    I can't seem to fix names no matter what I do.

    And wow, everyone at every round post is "thanks for the amazing polygon system" and you guys tell me everyone has tons of issues with it? I'm quite surprised to be honest, kind of dissapointed :P

»
11 лет назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится
\begin{center}
\includegraphics[bb=0 0 100 200]{image.png}
\end{center}

Those simpleTeX line can solve image problem in pdf. I got this from havaliza, many many thnx to him for those....

»
11 лет назад, скрыть # |
 
Проголосовать: нравится +20 Проголосовать: не нравится

Can you give me access to the problems and to the contest? I can try to figure out what's happening.