結果
| 問題 | No.480 合計 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-06-05 14:08:15 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 144 bytes |
| 記録 | |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 37,796 KB |
| 実行使用メモリ | 11,428 KB |
| 最終ジャッジ日時 | 2026-04-10 01:22:42 |
| 合計ジャッジ時間 | 6,933 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 21 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:7:11: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized]
7 | printf("%d",ans);
| ~~~~~~^~~~~~~~~~
main.cpp:3:13: note: 'ans' was declared here
3 | int i,k,ans;
| ^~~
ソースコード
#include<stdio.h>
int main(){
int i,k,ans;
scanf("%d",&i);
for(k=1;k<=i;i++)
ans += i;
printf("%d",ans);
return 0;
}