B. Brute Force

    提交答案题

Brute Force

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Description

You are in the Hello ACM competition. But you found that you can only come up with a brute force.

Your brute force code is:

#include<bits/stdc++.h>
using namespace std;
int main(){
    unsigned long long ans=0;
    for(int x=1;x<=10000000;++x){
        ans+=x;
        for(int y=1;y<=x;++y){
            ans-=y;
            for(int z=1;z<=y;++z){
                ans+=z;
                for(int w=1;w<=z;++w){
                    ans-=w;
                    ++ans;
                }
            }
        }
    }
    printf("%llu\n", ans);
    return 0;
}

It is absolutely impossible to run out the answer. But you may calculate it by hand, and output it directedly. Only through this way can you accept this problem and get rk1.

Format

Only a single number. The output of the brute force code.

Samples

The example is for illustration of the format only; it may be incorrect.

114514

Hello ACM 2025 环境测试

未参加
状态
已结束
规则
ACM/ICPC
题目
2
开始于
2025-8-12 13:00
结束于
2025-8-12 18:00
持续时间
5 小时
主持人
参赛人数
21