前言
成绩
RankRankRank是有算别人的
RankRankRank | PersonPersonPerson | ScoreScoreScore | AAA | BBB | CCC |
---|---|---|---|---|---|
222 | 2017myself2017myself2017myself | 210210210 | 100100100 | 100100100 | 101010 |
333 | 2017zyc2017zyc2017zyc | 200200200 | 100100100 | 100100100 | 000 |
333 | 2017xjq2017xjq2017xjq | 200200200 | 100100100 | 100100100 | 000 |
333 | 2017xxy2017xxy2017xxy | 200200200 | 100100100 | 100100100 | 000 |
101010 | 2017lw2017lw2017lw | 130130130 | 100100100 | 303030 | 000 |
141414 | 2017hjq2017hjq2017hjq | 606060 | 606060 | 000 | 000 |
171717 | 2017hzb2017hzb2017hzb | 303030 | 303030 | 000 | 000 |
181818 | 2017lrz2017lrz2017lrz | 202020 | 000 | 202020 | 000 |
正题
T1:jzoj3054−T1:jzoj3054-T1:jzoj3054−祖孙询问【LCALCALCA】
链接:
https://blog.csdn.net/Mr_wuyongcong/article/details/88359248
T2:jzoj3055−T2:jzoj3055-T2:jzoj3055−比赛【数学,,,统计】
连接:
https://blog.csdn.net/Mr_wuyongcong/article/details/88359658
T3:jzoj3056−T3:jzoj3056-T3:jzoj3056−数字【数位dp,dp,dp,统计,,,容斥】
连接:
https://blog.csdn.net/Mr_wuyongcong/article/details/88361756
someofcodesome\ of\ codesome of code
T2 暴力
#include<cstdio>
#define ll long long
using namespace std;
ll n,a[50010],b[50010],ans1,ans2;
int main()
{scanf("%lld",&n);for(ll i=1;i<=n;i++)scanf("%lld",&a[i]);for(ll i=1;i<=n;i++)scanf("%lld",&b[i]);for(ll i=1;i<=n;i++)for(ll j=1;j<=n;j++){ll w=(a[i]-b[j])*(a[i]-b[j]);if(a[i]>b[j]) ans1+=w;else ans2+=w;}printf("%.1lf",(double)(ans1-ans2)/n);
}
T3 暴力
#include<cstdio>
#include<cstring>
using namespace std;
const int N=1010,XJQ=999983;
int n,Z,ans,m,a[12],c[12];
char s[12];
void dfs(int x,int ys,int ds)
{if(x==2*n){if(ys!=0&&ds!=0)return;//for(int i=0;i<2*n;i++)// printf("%d",c[i]);//putchar('\n');ans=(ans+1)%XJQ;return;}for(int i=1;i<=m;i++){c[x]=a[i];dfs(x+1,ys+a[i]*((x%2)?1:-1),ds+a[i]*((x>=n)?1:-1));}
}
int main()
{scanf("%d",&n);scanf("%s",s+1);//double star=clock();m=strlen(s+1);for(int i=1;i<=m;i++)a[i]=s[i]-'0';dfs(0,0,0);printf("%d",ans);
}
总结
看题预估分100+30+20=150100+30+20=150100+30+20=150
做题预估分100+100+20=220100+100+20=220100+100+20=220
实际分数100+100+10=210100+100+10=210100+100+10=210
T1T1T1明显LCALCALCA,直接切掉
T2T2T2开始不会,后来发现了全排列的性质,然后推一下公式就切掉了
之后死刚T3T3T3,然后公式全靠猜,结果10分
尾声
没有尾声