結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2018-03-19 18:27:57 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 344 ms |
コンパイル使用メモリ | 27,648 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-02 21:46:04 |
合計ジャッジ時間 | 1,191 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&N); | ~~~~~^~~~~~~~~
ソースコード
#include <stdio.h> int main(){ //input int N; scanf("%d",&N); //total int total = 0; for (int i = 1;i <= N;i++){ total += i; } //output printf("%d\n",total); return 0; }