本文共 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 |
博客链接:
博客链接:
博客链接:
#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
#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/