KimJennie's blog

By KimJennie, history, 7 weeks ago, In English

Hello, Codeforces!

I was creating a problem and faced with one problem. The task is:

given n, print a, b, c, d > 1 such as a*b*c*d = n. In some cases, there are a lot of choices, how to consider all of them? For example, if n = 80, and my code prints 2*4*5*2, and user prints 10*2*2*2, my code with ncmp checker gives WA. How to fix it?

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

»
7 weeks ago, # |
Rev. 2   Vote: I like it +23 Vote: I do not like it

You can write your own checkers for problems with multiple correct solutions. Here is a good tutorial for writing checkers using the testlib.h library.