結果
| 問題 |
No.480 合計
|
| ユーザー |
|
| 提出日時 | 2018-06-27 17:13:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 136 bytes |
| コンパイル時間 | 685 ms |
| コンパイル使用メモリ | 53,984 KB |
| 実行使用メモリ | 16,960 KB |
| 最終ジャッジ日時 | 2024-06-30 23:11:44 |
| 合計ジャッジ時間 | 6,864 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 21 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:7:14: warning: iteration 2147483646 invokes undefined behavior [-Waggressive-loop-optimizations]
7 | for(i=1;i++;i<=N){
| ~^~
main.cpp:7:14: note: within this loop
ソースコード
#include<iostream>
using namespace std;
int main(){
int num,i,N;
cin>>N;
for(i=1;i++;i<=N){
num=num+i;
}
}