結果

問題 No.8043 yukicoderへようこそ!
ユーザー e869120
提出日時 2019-04-01 21:53:22
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 400 bytes
コンパイル時間 856 ms
コンパイル使用メモリ 66,592 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-26 22:31:19
合計ジャッジ時間 1,048 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

string S, T, U;

int main() {
	cin >> S;
	for (int i = 0; i < S.size(); i++) {
		if (S[i] >= 'a' && S[i] <= 'z') {
			cout << "Hello World!" << endl;
			return 0;
		}
	}

	cin >> T;
	if (T == "") {
		int N = stoi(S);
		cout << N * (N + 1) / 2 << endl;
		return 0;
	}
	cin >> U;
	cout << stoll(S) + stoll(T) << " " << U << endl;
	return 0;
}
0