日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

欢乐纪中某B组赛【2019.1.24】

發布時間:2023/12/3 编程问答 52 豆豆
生活随笔 收集整理的這篇文章主要介紹了 欢乐纪中某B组赛【2019.1.24】 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

前言

劃水AKAKAK


成績

RankRankRank是有算別人的

RankRankRankPersonPersonPersonScoreScoreScoreAAABBBCCC
1112017myself2017myself2017myself300300300100100100100100100100100100
1112017xjq2017xjq2017xjq300300300100100100100100100100100100
9992017zyc2017zyc2017zyc260260260100100100606060100100100
1212122017xxy2017xxy2017xxy250250250100100100100100100505050
3434342017lrz2017lrz2017lrz180180180303030100100100505050
5252522017lw2017lw2017lw130130130303030100100100000
7272722017hzb2017hzb2017hzb110110110303030606060202020
9494942017hjq2017hjq2017hjq606060303030303030000

正題


T1之前做過就直接放連接了

博客鏈接:
https://blog.csdn.net/Mr_wuyongcong/article/details/82501562


T2:jzoj3913?T2:jzoj3913-T2:jzoj3913?艱難的選擇【差分,統計】

博客鏈接:
https://blog.csdn.net/Mr_wuyongcong/article/details/86624013


T3:jzoj3914?T3:jzoj3914-T3:jzoj3914?人品問題【樹形dpdpdp

博客鏈接:
https://blog.csdn.net/Mr_wuyongcong/article/details/86624067


someofcodesome\ of\ codesome?of?code


T1暴力

#include<cstdio> #define ll long long using namespace std; ll x,y,ans; int main() {freopen("data.in","r",stdin);freopen("data.ans","w",stdout);scanf("%lld%lld",&x,&y);for(ll i=1;i<=y;i++)ans+=x%i;printf("%lld",ans); }

T1隨機數據

#include<cstdio> #include<cstdlib> #include<ctime> #define random(x) rand()*rand()%x+1 using namespace std; int main() {freopen("data.in","w",stdout);srand(time(0));printf("%d %d",random(1000000),random(1000000)); }

T2暴力

#include<cstdio> #include<algorithm> using namespace std; int n,x[1010],sum[1010],ans; int main() {freopen("data.in","r",stdin);freopen("data.ans","w",stdout);scanf("%d",&n);for(int i=1;i<=n;i++){scanf("%d",&x[i]);sum[i]=sum[i-1]+x[i]*2-1;}for(int i=1;i<=n;i++){for(int j=i;j<=n;j++){if(!(sum[j]-sum[i-1]))ans=max(ans,j-i+1);}}printf("%d",ans); }

T2隨機數據

#include<cstdio> #include<cstdlib> #include<ctime> #define random(x) rand()*rand()%x+1 using namespace std; int main() {freopen("data.in","w",stdout);srand(time(0));printf("100000\n");for(int i=1;i<=100000;i++)printf("%d ",rand()%2); }

尾聲

XJQXJQXJQ竟然用O(n2)O(n^2)O(n2)切掉了T2T2T2

總結

以上是生活随笔為你收集整理的欢乐纪中某B组赛【2019.1.24】的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。