依次输出i个7,j个8,k个9,1个4,1个5,k0个6,1个0,1个2,k1个3。 满足i⋅j⋅k⋅789+k0⋅456+k1⋅23=n。 #include"bits/stdc++.h"usingnamespacestd;usingi64=int64_t;i64exgcd(i64a,i64b,i64&x,i64&y){if(!b){x=1,y=0;returna;}i64g=exgcd(b,a%b,y,x);y-=a/b*x...
题解:签到题,很幸运我们队一开始就找到了这道题。 代码链接:https://ac.nowcoder.com/acm/contest/view-submission?submissionId=47376389 #include<bits/stdc++.h>//code by cjj490168650usingnamespacestd;intmain(){intx;cin>>x;cout<<2020+x;return0;} I. Mr. Main and Windmills 题意:在一个二维平...
}p[MS*40];voidpush_up(intrt){ p[rt].val = p[p[rt].l].val + p[p[rt].r].val; }intupdate(intlart,intl,intr,LL pos){intrt = ++tot; p[rt] = p[lart];if(l == r){ p[rt].val += pos;returnrt; }intm = l+r>>1;if(m >= pos) p[rt].l =update(p[lart].l,...
[2020 ICPC 昆明 M] Stone Games https://ac.nowcoder.com/acm/contest/12548/M题意: 询问区间在数字可以进行任意次加法情况下的mexmex,强制在线。思路: 考虑对于一个区间,我们想要求得mexmex,可以对这个区间进行升序排序。当第一个数字不为11时,答案就是11。设当前前缀和为xx,那么我们前面的区间我们可以得到...
Between key activities at#ICPCAstana, teams could visit the Tech Showcase to engage in fun activities from our sponsors Huawei and JetBrains. Not only could they play games or solve puzzles, they could also learn more about the companies and future opportunities to advance their careers. ...
CSES: Used tolearn Thanks to this practice routine, 9 months into my cp career, I hit CM, ranking first in Lebanon :D. That was my first major achievement, and that gave me ahugeconfidence boost. If you take a look at my rating graph after I hit CM, you'll notice that I did no...
sherlockholmesgames https://sherlockholmes-games.huijiwiki.com/wiki/$1 是 是 shiwen https://shiwen.huijiwiki.com/wiki/$1 是 是 shiwuyu https://shiwuyu.huijiwiki.com/wiki/$1 是 是 shortcuts https://shortcuts.huijiwiki.com/wiki/$1 是 是 signaldecay https://signaldecay.huijiwiki.com...
Chaarshanbegaan is a gathering event at Cafebazaar similar to TGIF events at Google. Some entertainment programs like pantomime, foosball, Xbox/PS4, and several board games are part of the event. You are going to set up a dart game in Chaarshanbegaan. As a techie organizing a game for...
A mysterious country will hold a football world championships---Abnormal Cup, attracting football teams and fans from all around the world. This country is so mysterious that none of the information of the games will be open to the public till the end of all the matches. And finally only ...
K.Party Games 打表可发现 1,0数出现有规律,于是整数域缩减到mod4整数域。最简单的方法,模拟一下可以发现余数r为0,1时先手胜,余 2,3时后手胜 voidslove(){cin>>n;intr=n%4;if(r==0||r==1)cout<<"Fluttershy\n";elseif(r==2||r==3)cout<<"Pinkie Pie\n";} ...