結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2019-05-17 13:01:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 235 bytes |
コンパイル時間 | 481 ms |
コンパイル使用メモリ | 57,724 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-17 05:53:06 |
合計ジャッジ時間 | 1,215 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
コンパイルメッセージ
main.cpp:8:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 8 | main() | ^~~~
ソースコード
#include <iostream> #include <string> #include <cmath> using namespace std; // namespace std main() { int N; cin >> N; int sum = 0; for (int i = 0; i <= N; i++) { sum += i; } cout << sum << endl; }