プロが教えるわが家の防犯対策術!

https://projecteuler.net/problem=6

The sum of the squares of the first ten natural numbers is 385
The square of the sum of the first ten natural numbers is 3025
Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 2640.
Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.

至急答えを教えてください。
あなたが解答する言語はCまたはC++でなければならない。
あなたが提出するコード、入力、出力、解説をコメントとして送信せよ。
解説はプログラミングを全くしたことがない学生でも容易に理解できるものでなければならない。

A 回答 (1件)

    • good
    • 1
この回答へのお礼

私はあなたのコードをよく理解できなかった。しかし、そのプログラムは正解である。ありがとう。

お礼日時:2022/09/17 20:46

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!