結果

問題 No.8043 yukicoderへようこそ!
ユーザー xuzijian629
提出日時 2019-04-01 22:24:37
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 484 bytes
コンパイル時間 1,910 ms
コンパイル使用メモリ 194,848 KB
最終ジャッジ日時 2025-01-07 01:07:29
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

void solve1() {
    cout << "Hello World!" << endl;
}

bool solved2;
void solve2(stringstream& ss) {
    if (solved2) {

    } else {
        int n;
        ss >> n;
        cout << n * (n + 1) / 2 << endl;
    }
}

int main() {
    stringstream ss;
    char c;
    while ((c = getchar()) != EOF) {
        ss << c;
    }
    if (ss.str().size() == 0) {
        solve1();
    } else if (ss.str().size() < 4) {
        solve2(ss);
    }
}
0