結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2018-10-04 17:45:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 448 ms |
コンパイル使用メモリ | 54,956 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 12:17:55 |
合計ジャッジ時間 | 1,254 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <iostream> using namespace::std; int main() { int x = 0; int n; cin >> n; int m = 0; if (m<n && n<=100 && n>=1) { for(m==1; m<=n; ++m) { x += m; } cout << x << endl; } }