問題追加 Represent A Number As Two Square Sum #1242
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#1241
つくりました.
問題タイトルは Three, Four に差し替えられる感じのものにしています.
符号限定しない方が代数的整数論の意味で綺麗だと思いますが,
出力を減らす意味もあり非負に限定して全部出力としました (max=3072, これが手元実行時間 worst case)
テストケースは factorize から流用して半分くらいに間引いていくつか新規実装です.
sol は自分の手持ちからで,使用回数はそれほど多くはないのですが,
解の個数がそうなることも確かめていて(correct.cpp)distinct かつ 2 乗和が正しい(checker.cpp)ので,
ジャッジが壊れている可能性はかなり低いと思います.