cadmiumky's blog

By cadmiumky, history, 2 months ago, In English

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

 
 
 
 
  • Vote: I like it
  • +35
  • Vote: I do not like it

»
2 months ago, # |
  Vote: I like it +25 Vote: I do not like it

Isn't attaching GIF distracting for the problem solver?

  • »
    »
    2 months ago, # ^ |
      Vote: I like it +18 Vote: I do not like it

    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 months ago, # ^ |
        Vote: I like it +7 Vote: I do not like it

      Also here

    • »
      »
      »
      2 months ago, # ^ |
      Rev. 5   Vote: I like it +8 Vote: I do not like it

      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 months ago, # ^ |
          Vote: I like it +3 Vote: I do not like it

        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 months ago, # ^ |
          Vote: I like it +10 Vote: I do not like it

        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.

»
2 months ago, # |
  Vote: I like it +7 Vote: I do not like it

Hey boomer!

»
2 months ago, # |
  Vote: I like it +57 Vote: I do not like it

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.