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

Автор disisbig, история, 5 лет назад, По-английски

Did you ever wish in a contest for something which would tell you which competitive programming concept will be used to solve the problem?

Check out Code with AI where you just need to copy-paste the problem statement and AI will help you figure out which concept you should apply to get an AC :)

Code with AI ""/>

 2). Copy the problem statement you're solving

 3). Paste it and hit enter

Issues at: https://github.com/goru001/code-with-ai

Update: I've added the code for data collection and model training in the repository. Those who're interested can check out.

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

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

Nice concept but I think you are using tags of problems which are already known. I'm curious to know how will it work on the problems having no tags given already.

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

    I don't think that's the case. I tested it with a problem from here and it pretty much gave me the correct tags.

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

    I've used the same name of tags which codeforces uses — to train my model using NLP. So, there's no "hashtable" kind of implementation about which you're thinking maybe. The model is generalized enough to give good enough score — and to be precise — I've a model with F1 Score of 60. I'll be posting my model and how I trained it soon on github and then maybe it'll be clear how it's happening.

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

Did you consider contacting AlexSkidanov! They work on similar project (producing complete solution from the statement)

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

However, it says A+B problem contains "data stuctures" and "number theory" :-)

Statement
Output the sum of two integers A and B.
Input
two integers, A and B.

Output

One integer, sum of A and B.

constraint
1 <= A, B <= 10^9

Example
input
3 5
output
8

Sorry but I don't know how to insert pictures...

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

    To your first point, a similar comment was made on Jeremy's tweet as well. But the thing is, input should be similar to the training data (which was competitive programming problems), only then you'll get reasonable results.

    I can handle A+B, 1+2 kind of situations through a hack by doing something like

    if len(problemStatement) < 10:
         # Don't output any class
    

    but I'm looking for a neat solution, which will only come with such training data (tell me if any of you has any ideas on this) I guess.

    To your second point, No need to insert pictures (or no way to input pictures into the model yet), just copy paste the rest of the text of your problem, and if the output isn't too dependent on pictures, you'll get the correct answer.

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

      Thank you for your reply.

      And for the second point, I meant that I made a screenshot of that page but don't know how to insert it into the comment. Sorry if it has different meanings.

»
18 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

its down