QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#53709#1426. ExpCrysflyCompile Error//C++11140b2022-10-05 20:45:212022-10-05 20:45:24

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-10-05 20:45:24]
  • 评测
  • [2022-10-05 20:45:21]
  • 提交

answer

$F= \sum_{i=0}^{k}p_ix^i$

$G(x) = F(x)^n$

O(x*k)

$G'(x) = nF(x)^{n-1}F'(x)$

$G'(x)F(x) = nG(x)F'(x)$

然后就可以递推了

Details

answer.code:1:5: error: stray ‘\’ in program
    1 | $F= \sum_{i=0}^{k}p_ix^i$
      |     ^
answer.code:7:3: warning: character constant too long for its type
    7 | $G'(x) = nF(x)^{n-1}F'(x)$
      |   ^~~~~~~~~~~~~~~~~~~~
answer.code:9:3: warning: character constant too long for its type
    9 | $G'(x)F(x) = nG(x)F'(x)$
      |   ^~~~~~~~~~~~~~~~~~
answer.code:1:1: error: ‘$F’ does not name a type
    1 | $F= \sum_{i=0}^{k}p_ix^i$
      | ^~
answer.code:1:15: error: expected unqualified-id before ‘^’ token
    1 | $F= \sum_{i=0}^{k}p_ix^i$
      |               ^
answer.code:1:19: error: ‘p_ix’ does not name a type
    1 | $F= \sum_{i=0}^{k}p_ix^i$
      |                   ^~~~