1 条题解

  • 1
    @ 2022-10-21 10:52:17

    难度:-100

    //数学很重要
    #include<bits/stdc++.h>
    using namespace std;
    
    int main()
    {
    	int n,m;
    	cin>>n>>m;
    	cout<<(n*(n-1)+m*(m-1))/2;
    	return 0;
    }
    
    • 1

    信息

    ID
    20937
    时间
    500ms
    内存
    1024MiB
    难度
    3
    标签
    (无)
    递交数
    294
    已通过
    154
    上传者