結果
問題 |
No.480 合計
|
ユーザー |
![]() |
提出日時 | 2017-09-03 20:22:43 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 165 bytes |
コンパイル時間 | 416 ms |
コンパイル使用メモリ | 53,848 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-06 20:06:18 |
合計ジャッジ時間 | 1,175 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 22 |
ソースコード
#include<iostream> using namespace std; int main() { int n,sum=0; cin >> n; for (int i = 1; i < n + 1; i++) { sum += n*i; } cout << sum << endl; return 0; }