結果

問題 No.3043 yukicoderへようこそ!
ユーザー leaf_1415leaf_1415
提出日時 2019-04-01 22:26:09
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 1,595 ms
コンパイル使用メモリ 51,196 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-08-18 01:37:12
合計ジャッジ時間 1,201 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0