wuhudsm's blog

By wuhudsm, history, 9 months ago, In English

A

code
solution

B

code
solution

C

code
solution

D

code
hint1
hint2
hint3
solution

E

code
solution

F

code
solution

G

code
solution
  • Vote: I like it
  • +36
  • Vote: I do not like it

»
9 months ago, # |
  Vote: I like it +54 Vote: I do not like it

I compile the code with -fsanitize=address, find that for

3 4 2
1 2
3 3
2 3
1 2
2 2 7
1 3 3 2

the arg r of sumadd::sum can be negative in the sample solution of G. Did it cause the unexpected result?

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

G was very hard. seems like intended solution was sqrt decomposition but still can't get the idea

»
9 months ago, # |
  Vote: I like it +22 Vote: I do not like it

nice contest

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

Solution for $$$E$$$ and $$$G$$$ updated