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

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

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
  • Проголосовать: не нравится

»
9 лет назад, # |
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}
  • »
    »
    9 лет назад, # ^ |
    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 :)

    • »
      »
      »
      9 лет назад, # ^ |
        Проголосовать: нравится +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. :)

      • »
        »
        »
        »
        9 лет назад, # ^ |
          Проголосовать: нравится +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 :)

»
9 лет назад, # |
  Проголосовать: нравится +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?

  • »
    »
    9 лет назад, # ^ |
    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

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

      Hmm, does your problem name have some strange characters? Last time I had some issues with Vietnamese characters.

      I guess other than this, you can try delete existing files on FTP & upload them again..

      • »
        »
        »
        »
        9 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        Statement has cyrilic but name doesn't I tried changing it multiple times and it changes in the PDF file created, doesn't show up though.

        And do you have any clue why your problems are in HTML and mine are in PDF :P?

        • »
          »
          »
          »
          »
          9 лет назад, # ^ |
            Проголосовать: нравится 0 Проголосовать: не нравится

          Maybe it happened because Polygon could not create PDF files for my problems :))

          • »
            »
            »
            »
            »
            »
            9 лет назад, # ^ |
              Проголосовать: нравится 0 Проголосовать: не нравится

            Well, when I uploaded pictures, PDF preview didn't work but HTML preview did work. When I uploaded them to codeforces, it just said it couldn't load the statement. So I doubt that's the problem! :D

            Thanks for replying at least, I'm losing hope here :P

            Isn't there some general polygon FAQ or help? It's been around for years and people are praising it, so there has to be some solutions for those common issues..

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

              Last time I got help from directly send message to Fefer_Ivan. Though he's no longer an admin, so now I also have no idea..

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

                Well, I'm not sure what to do then, I guess I'll just continue using the standard way of creating problems instead of Polygon.

                Feels quite ironic after this post :D

                • »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  9 лет назад, # ^ |
                  Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

                  I can share plenty of my problems in Polygon. Tell me your Polygon account in the private message.

                  About statements. I usually don't care about HTML statements. I upload PDF statements and edit the contest.xml via FTP and everything works.

                  Don't say that something is that bad if you are bad in using it.

                • »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  9 лет назад, # ^ |
                    Проголосовать: нравится 0 Проголосовать: не нравится

                  Okay then, could you explain me how to get my images to work (since they don't in PDF) or how to make the names of my problems appear at all?

»
9 лет назад, # |
  Проголосовать: нравится +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....

  • »
    »
    8 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    I don't know why it doesn't working :(. Systems responsed that: Can't be rendered because of: Transformation failed: No resource found: "img.png".

    Please help me ! Thank you :D

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

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

  • »
    »
    9 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Thanks a lot for trying to help

    Currently blank names seems like the only problem (if EROR's solution for pdf images works, unable to test it right now)

    I gave you access to the codeforces gym contest but in Polygon I'm unable to find an user Gerald.

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

      In polygon, my username is gagapov.

      • »
        »
        »
        »
        9 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        You should have full access to the contest and three problems, I think names not appearing is the only problem I'm facing currently, thanks in advance :)