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

Автор valeriu, история, 2 года назад, По-английски

Hello,

I would like to put GIFs in statements (in polygon), but attaching the GIF directly (and then inserting it like a picture) doesn't do the job. Does anybody know how to do this? please don't downvote me, I'm a very boomer

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

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

Isn't attaching GIF distracting for the problem solver?

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

    I sometimes use GIFs to explain the sample test cases. It's much easier to explain and more pleasing to the eyes (at least I hope). You can see it in action here and here

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

      Also here

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

      Frankly it is quite horrible

      If you want to use pictures, attach them frame by frame, animated pictures look cute but are of little help.

      Static frame by frame illustrations would make the statements above better
      I liked the illustrations in the last D problem https://codeforces.com/problemset/problem/1609/D and I appreciate that they're NOT animated

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

        The example you gave doesn't really work in my opinion. It's written in the statement that each $$$i$$$ is an independent problem, so it doesn't make sense to animate them.

        I still think there are cases where GIFs are better but you're right. Sometimes it's better to keep the pictures frame by frame. I will consider them next time. Thanks

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

        Reason I find gifs annoying : There is no way to control them and you have to wait for the loop to complete if you're looking for something.

      • »
        »
        »
        »
        23 месяца назад, # ^ |
          Проголосовать: нравится -10 Проголосовать: не нравится

        It's a matter of preference. I like high-quality slow gifs more. Both approaches have pros and cons. You have to compare static illustrations manually, and it is hard to examine too many of them.

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

          I just happened look at one of those gifs after your comment and encountered the same problem as always

          The biggest problem is that when reading some explanation (either it is an article or a problem) I nearly always need to focus on one or two specific transitions to understand the whole picture. And animation makes it difficult. Without being able to comprehend those specific transitions, animation as a whole is useless.

          It maybe helpful as an addition to static pictures. However if I had to choose only one of them, I would ask to replace absolute majority of gifs here with static panes

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

Hey boomer!

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

Maybe you can use 1508D - Swap Pass as an example. It looks like they use this:

\begin{center}
\includegraphics{sample1.png}
\end{center}

Where sample1.png is an apng (animated png) file. You can convert gifs to apng here.

»
23 месяца назад, # |
Rev. 2   Проголосовать: нравится +28 Проголосовать: не нравится

[EDIT: Oops, didn't realize this was posted six months ago, but hopefully this is helpful information for anyone looking at this thread now :) ]

If this is for a CF round: the last time gifs were used in problem statements, many competitors with weaker internet connections found themselves unable to load the problems. As a result, rather than embedding the gifs in the problem statement, I’d recommend hosting them on an external site and providing a link in the problem.