MikeMirzayanov's blog

By MikeMirzayanov, history, 19 months ago, In English

Hello, Codeforces.

I have implemented automatic translation of problem statements in Polygon (yes, yes, through ChatGPT). Here's an example of how to use it:

  • Suppose we have a problem statement only in Russian and we want to have it in English as well.

  • Create an empty problem statement in English.

  • Go to the bottom of the problem statement and click on "Add automatic translation."

  • In the popup window, you can choose the original language for translation (we only have Russian, so there's nothing to choose) and the section of the problem statement to translate (by default, it usually selects the appropriate option — translate everything).

  • Click the "Translate" button.

  • Wait for ChatGPT to translate the text (it may take up to a couple of minutes).

  • When the translation is ready, it will be loaded into the popup window.

  • Click "Save Translation."

  • Done.

  • Remember to proofread the statement yourself. Although it's a quality machine translation, it's still a machine translation.

One useful thing to note is that this method of translation miraculously preserves most of the LaTeX markup.

When using it, remember that the API is not free. I have set quotas, and if they are exceeded, I will have to turn off the feature. I hope this doesn't happen.

There are a few more ideas on how to use ChatGPT for peaceful purposes. Don't go too far.

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

| Write comment?
»
19 months ago, # |
  Vote: I like it +61 Vote: I do not like it

Thank you thank you thank you

»
19 months ago, # |
  Vote: I like it +14 Vote: I do not like it

Has someone tried translating using chatGPT before? I sure do hope it's not as cursed as google translate...

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

    In my experience it's pretty great. The translations are better than what you usually get on Google Translate or DeepL and you can be very specific. (Like saying "don't translate this word" or "use this kind of language")

»
19 months ago, # |
Rev. 2   Vote: I like it +140 Vote: I do not like it

can you also add a button to generate solution into submit page, pls

»
19 months ago, # |
  Vote: I like it +5 Vote: I do not like it

I have a feature idea (Not related to Chat-GPT)

I was giving virtuals for a few weeks now. Around 25% of the contests, I face some problems which I have mind-solved before or maybe read it. It's very frustrating when it is one of the hard ones.

So maybe some marker, which would help to mark the problems as mind-solved or read? It would also be very useful to avoid problems while practicing.

  • »
    »
    19 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Don't be lazy, implement the solutions when you mind-solve them!

  • »
    »
    19 months ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    I usually just resubmit an existing AC solution whenever I solve it in theory, that way it gets picked up by TLE bot and skipped when I request new problems or virtuals

»
19 months ago, # |
  Vote: I like it +35 Vote: I do not like it

I think you can enable us to use our own API

»
19 months ago, # |
  Vote: I like it +1 Vote: I do not like it

Your kindness is greatly appreciated.

»
19 months ago, # |
  Vote: I like it 0 Vote: I do not like it

thank you!

»
19 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Thank you

»
19 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I bet the next things are the validators, checkers, and generators

»
19 months ago, # |
  Vote: I like it +11 Vote: I do not like it

That's great, it will save so much time!

It would also be wonderful if the users can switch through the languages when they are presented with the problems. A few weeks ago, I organized a contest on my faculty with my own problems, but because of the rules on the faculty, the tasks had to be in Slovene. So, because of this limitation, I wrote the Slovene statements in the "English" tab and the English statements in the "Slovene" tab. This way, the Slovene statements were "default" and I only exported the English as .pdf file.

Adding such a language chooser would be greatly appreciated by many! Thank you.

»
19 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Fantastic feature! Thank you!

»
19 months ago, # |
  Vote: I like it -27 Vote: I do not like it

How about using ChatGPT to convert long problem statements into short problem statements or remove stories?

  • »
    »
    19 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I prefer the stories to none and its a skill to be able to abstract it yourself as well. That's my opinion at least.

  • »
    »
    19 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    ChatGPT is not good at all at understanding underlying complex abstract concepts of the tasks, so probably it'll remove a lot of important stuff, it's even highlighted in "sparks of agi" paper where they compare how well chatgpt and gpt4 actually understand several math problems and evaluate their solution reasoning. gpt4 is much better for such use case, but it's not available for public for now.

»
19 months ago, # |
  Vote: I like it +8 Vote: I do not like it

thank you sir

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

I don't know if you're aware of this but this is prone to prompt injection attacks

https://imgur.com/a/N5IzgoM

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

    Of course, I am aware of such a possibility. If I notice any abuses of the system, I will ban a user and/or impose strict quotas. It seems that if you really want to send a request to ChatGPT, you should open its website and do it there.

»
19 months ago, # |
  Vote: I like it +50 Vote: I do not like it

Finally no и in place of and

»
19 months ago, # |
  Vote: I like it +24 Vote: I do not like it

will chatgpt learn about the problem and give it away before the contest?