ssl提高组周六模拟赛【2019.3.2】
前言
Rank1Rank1Rank1耶
成績
RankRankRank是有算別人的
只放前Rank10Rank10Rank10
| 111 | meselfmeselfmeself | 340340340 | 808080 | 100100100 | 100100100 | 606060 |
| 222 | XXYXXYXXY | 250250250 | 808080 | 707070 | 100100100 | 000 |
| 333 | LWLWLW | 250250250 | 808080 | 707070 | 100100100 | 000 |
| 444 | ZYCZYCZYC | 250250250 | 808080 | 707070 | 100100100 | 000 |
| 555 | GJHGJHGJH | 190190190 | 808080 | 707070 | 404040 | 000 |
| 666 | HJQHJQHJQ | 170170170 | 808080 | 707070 | 202020 | 000 |
| 777 | YYCYYCYYC | 150150150 | 808080 | 707070 | 000 | 000 |
| 888 | HZBHZBHZB | 140140140 | 000 | 100100100 | 404040 | 000 |
| 999 | LRZLRZLRZ | 140140140 | 303030 | 707070 | 404040 | 000 |
| 101010 | ZJZJZJ | 130130130 | 808080 | 101010 | 404040 | 000 |
正題
T1:nssl1296?T1:nssl1296-T1:nssl1296?貓咪的進化【dpdpdp】
博客鏈接:
https://blog.csdn.net/Mr_wuyongcong/article/details/88075152
T2:nssl1297?GFT2:nssl1297-GFT2:nssl1297?GF打DotaDotaDota
因為之前做過一樣的,直接放
連接:
https://blog.csdn.net/Mr_wuyongcong/article/details/81088251
T3:nssl1298?T3:nssl1298-T3:nssl1298?網站計劃【線段樹】
博客鏈接:
https://blog.csdn.net/Mr_wuyongcong/article/details/88075197
T3:nssl1299?T3:nssl1299-T3:nssl1299?選做作業【最大流,最小割,最大子權閉合圖】
博客鏈接:
https://blog.csdn.net/Mr_wuyongcong/article/details/88075314
someofcodesome\ of\ codesome?of?code
T4 60分code
#include<cstdio> #include<queue> #include<algorithm> using namespace std; const int N=350; struct node{int to,next; }a[N*N]; int n,tot,ls[N],in[N],v[N],ans; queue<int> q,root; void addl(int x,int y) {a[++tot].to=y;a[tot].next=ls[x];ls[x]=tot;in[y]++; } void top() {for(int i=1;i<=n;i++)if(!in[i]) {q.push(i);root.push(i);}while(!q.empty()){int x=q.front();q.pop();for(int i=ls[x];i;i=a[i].next){int y=a[i].to;in[y]--;if(!in[y])q.push(y);}} } int dfs(int x) {if(in[x]) return 0;int sum=0;for(int i=ls[x];i;i=a[i].next)sum+=dfs(a[i].to);return max(sum+v[x],0); } int main() {scanf("%d",&n);for(int i=1;i<=n;i++){int m,x;scanf("%d%d",&v[i],&m);for(int j=1;j<=m;j++){int x;scanf("%d",&x);addl(x,i);}}top();while(!root.empty()){ans+=dfs(root.front());root.pop();}printf("%d",ans); }總結
看題預估分100+100+100+0=300100+100+100+0=300100+100+100+0=300
做題預估分100+100+100+50=350100+100+100+50=350100+100+100+50=350
實際分數80+100+100+60=34080+100+100+60=34080+100+100+60=340
還好,不是很難
T1T1T1明顯dpdpdp水題,然后因為OJOJOJ太慢卡成808080
T2T2T2做過,直接切掉
然后T3T3T3顯然線段樹,結果開始忘記%\%%了,%\%%了之后切掉
T4T4T4不會,就去寫初一的題,寫完之后就打算回來打算水個505050,結果拿了606060。
然后出來T1T1T1加快讀切掉,T4T4T4改了一會
尾聲
沒有尾聲
總結
以上是生活随笔為你收集整理的ssl提高组周六模拟赛【2019.3.2】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 5月19日是什么日子 5月19日的节日
- 下一篇: 二类电商广告怎么投放