結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
leaf_1415
|
| 提出日時 | 2019-04-01 22:25:43 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 272 bytes |
| コンパイル時間 | 552 ms |
| コンパイル使用メモリ | 54,108 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 03:21:43 |
| 合計ジャッジ時間 | 1,260 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
string s;
int main(void)
{
cin >> s;
if(s[0] > '0' && s[0] <= '9'){
int n = atoi(s.c_str());
cout << n*(n+1)/2 << endl;
return 0;
}
cout << "Hello World!" << endl;
return 0;
}
leaf_1415