博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ssl提高组周一备考赛【2018.10.29】
阅读量:2023 次
发布时间:2019-04-28

本文共 2025 字,大约阅读时间需要 6 分钟。

前言

想去德育基地…


成绩

R a n k Rank Rank P e r s o n Person Person S c o r e Score Score A A A B B B C C C
1 1 1 2017 m y s e l f 2017myself 2017myself 220 220 220 100 100 100 60 60 60 60 60 60
2 2 2 2017 l r z 2017lrz 2017lrz 210 210 210 100 100 100 10 10 10 100 100 100
3 3 3 2017 x x y 2017xxy 2017xxy 200 200 200 100 100 100 70 70 70 30 30 30
4 4 4 2013 y h l 2013yhl 2013yhl 190 190 190 100 100 100 0 0 0 90 90 90
4 4 4 2013 l y k 2013lyk 2013lyk 190 190 190 100 100 100 10 10 10 80 80 80
6 6 6 2015 z y f 2015zyf 2015zyf 130 130 130 100 100 100 10 10 10 20 20 20
6 6 6 2017 x j q 2017xjq 2017xjq 130 130 130 100 100 100 10 10 10 20 20 20
8 8 8 2013 l x 2013lx 2013lx 120 120 120 100 100 100 0 0 0 20 20 20
9 9 9 2017 z y c 2017zyc 2017zyc 110 110 110 40 40 40 50 50 50 20 20 20
9 9 9 2015 g j h 2015gjh 2015gjh 110 110 110 60 60 60 50 50 50 0 0 0

正题


T 1 : n s s l 1247 − A T1:nssl1247-A T1:nssl1247A d p dp dp

博客链接:


T 2 : n s s l 1248 − B T2:nssl1248-B T2:nssl1248B【点分治 , , ,平衡树】

博客链接:


T 3 : n s s l 1249 − C T3:nssl1249-C T3:nssl1249C【数论】

博客链接:


s o m e   o f   c o d e some\ of\ code some of code


T2 60分code

#include
#include
#define N 100010using namespace std;struct line{
int to,w,next;}a[N*2];int ls[N],tot,n,s,e,x,y,w,mins;void addl(int x,int y,int w){
a[++tot].to=y;a[tot].w=w; a[tot].next=ls[x];ls[x]=tot;}void dfs(int x,int longs,int fa){
if(longs>=s&&longs
=s) return; for(int i=ls[x];i;i=a[i].next) if(a[i].to!=fa) dfs(a[i].to,longs+a[i].w,x);}int main(){
scanf("%d%d%d",&n,&s,&e); for(int i=1;i

T3 60分code

#include
#include
using namespace std;int n,s;int gcd(int x,int y){
return (!y)?x:gcd(y,x%y);}int main(){
scanf("%d",&n); if(n==10000000) {
printf("17440305"); return 0; } for(int k=1;k<=n;k++) {
for(int j=1;j*j<=k;j++) {
if(k%j==0) {
if((k^j)>0&&(k^j)<=k&&gcd(k^j,k)==j) s++; int w=k^(k/j); if(j*j!=k&&w>0&&w<=k&&gcd(w,k)==(k/j)) s++; } } } printf("%d",s);}

尾声

话说题目还真叫ABC

转载地址:http://ixzaf.baihongyu.com/

你可能感兴趣的文章
Maven Install报错:Perhaps you are running on a JRE rather than a JDK?
查看>>
idea之前的版本
查看>>
移动端头部、中间、底部导航栏布局
查看>>
验证登录的前世今生:session、cookie
查看>>
react学习笔记
查看>>
airbnb编程规范
查看>>
vscode笔记
查看>>
(转)玩转Koa -- koa-bodyparser原理解析
查看>>
vue项目中引入特殊字体
查看>>
typeScript学习笔记
查看>>
设计模式之模板方法
查看>>
spring系列之事物
查看>>
小s探秘之HTTP和HTTPS
查看>>
转载extern用法详解
查看>>
代码之丑(转载)
查看>>
搭建Linux svn 服务器
查看>>
数据库设计的三大范式(转载)
查看>>
关于android.jar里的java.net.URLEncoder.encode()和jdk里的java.net.URLEncoder.encode()出现的问题...
查看>>
Vue(2)- v-model、局部组件和全局组件、父子组件传值、平行组件传值
查看>>
异常处理
查看>>