比赛 2026郑轻校赛 评测结果 AAAAAAAAAAAAAAAAAAAA
题目名称 巴啦啦能量 最终得分 100
用户昵称 梦那边的美好ME 运行时间 0.047 s
代码语言 C++ 内存使用 3.52 MiB
提交时间 2026-04-07 18:21:55
显示代码纯文本
#include <bits/stdc++.h>
using namespace std;
#define ll long long

ll n,m;

int main(){
    freopen("energy.in","r",stdin);
    freopen("energy.out","w",stdout);
    ios::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
    cin>>n>>m;
    if (n>m) swap(n,m);
    if (n%2) n++;
    if (m%2) m--;
    cout<<(n+m)/2*(m/2-n/2+1);
    
    return 0;
}