結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-04 17:43:44 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 413 bytes |
| コンパイル時間 | 473 ms |
| コンパイル使用メモリ | 55,428 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-12 12:17:53 |
| 合計ジャッジ時間 | 1,342 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 22 |
ソースコード
#include <iostream>
using namespace::std;
int main() {
int x = 0;
int n;
cout << "1ȏ100ȉ̐N͂Ă" << endl;
cin >> n;
int m = 0;
if (m<n && n<=100 && n>=1) {
for(m==1; m<=n; ++m) {
x += m;
}
cout << x << endl;
}
else if (n>100 || n<1) {
cout << "1ȏ100ȉ̐͂Ă" << endl;
}
}