1 solutions

  • 1

    就10行,我都懒得换行了,超简单,AC解答 #include #include using namespace std; int n; int main () { cin >> n; cout << (1 + n) * n / 2; return 0; }

    • 1

    Information

    ID
    4592
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    57
    Accepted
    43
    Uploaded By