您当前的位置: 首页 > 

*DDL_GzmBlog

暂无认证

  • 3浏览

    0关注

    605博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

KYOCERA Programming Contest 2021(AtCoder Beginner Contest 200) C - Ringo‘s Favorite Numbers 2

*DDL_GzmBlog 发布时间:2021-05-08 21:48:09 ,浏览量:3

总结:

下次组合数 只用求那种 C[2,n]这种 不需要用板子

code:
#include 
using namespace std;
typedef unsigned long long LL;
map mp;
int n;
const int N1 = 2e5+10;
int a[N1];
inline void read(int &sum)
{
    char ch = getchar();
    int tf = 0;
    sum = 0;
    while((ch  '9') && (ch != '-')) ch = getchar();
    tf = ((ch == '-') && (ch = getchar()));
    while(ch >= '0' && ch >n;
    for(int i=1; isecond >=2)
        sum+=((it->second*(it->second-1))/2);
    }
    
    cout            
关注
打赏
1657615554
查看更多评论
0.0370s