Was attempting a question in codechef and got TLE, so can anyone help me optimize it?

前端 未结 0 1903
礼貌的吻别
礼貌的吻别 2020-12-07 11:58

Question: You are given two positive integers N and K, where K≤N. Find a sequence A1,A2,…,AN such that: for each valid i, Ai is either i or −i there are exactly K values of

相关标签:
回答
  • 消灭零回复
提交回复
热议问题