A--勘测

推下公式  a[i] = a[i-1] + a[i-2] +2

#include<stdio.h>
#include<string.h>
];
int main()
{
     long long  n;
    scanf("%lld",&n);
    a[]=;a[]=;a[]=;
    ;i<=n;i++)
        a[i]=(a[i-]+a[i-]+)%;
    printf("%lld",a[n]);
    ;
}

B 略

C 约数

找到最大公约数 然后能被最大公约数整除的必然是 a b 的约数

#include<bits/stdc++.h>
using namespace std;
#define LL long long
LL gcd(LL a,LL b){
    return b?gcd(b,a%b):a;
}
int main(){
    LL a,b;
    cin>>a>>b;
    LL g=gcd(a,b);
    vector<LL> q;
    ;i*i<=g;i++){
        ){
            q.push_back(i);
            if(i*i!=g) q.push_back(g/i);
        }
    }
    sort(q.begin(),q.end());
    ;i<q.size();++i){
        cout<<q[i]<<' ';
    }
    ;
}

最新文章

  1. 如何利用Github+Appveyor+Nuget打造自己的.net core开源库
  2. Swift中对C语言接口缓存的使用以及数组、字符串转为指针类型的方法
  3. R提高篇(五): 描述性统计分析
  4. Android IOS WebRTC 音视频开发总结(六六)-- 三个角度分析美女视频直播这个行业
  5. 在iptables防火墙下开启vsftpd的端口
  6. ucosII移植
  7. 1) data-options
  8. HTTP,HTTP2.0,SPDY,HTTPS你应该知道的一些事
  9. -----------------------------SpringMVC理解-----------------------------
  10. Linux软件
  11. Foundation 框架 归档
  12. 海量数据,大数据处理技术--【Hbase】
  13. 安装rlwrap 的简单方法
  14. Object [object Object] has no method 'live'
  15. 清除 Xcode 项目缓存
  16. English trip -- VC(情景课) 7 A Shopping 购物
  17. P1004 方格取数
  18. MySQL :: MySQL 8.0 Reference Manual :: B.6.4.3 Problems with NULL Values https://dev.mysql.com/doc/refman/8.0/en/problems-with-null.html
  19. 峰Spring4学习(8)spring对事务的支持
  20. 「工具」三分钟了解一款在线流程绘制工具:Whimsical

热门文章

  1. 从零学习Fluter(七):Flutter打包apk详解
  2. ORA-02030: can only select from fixed tables/views
  3. Python函数二(函数名,闭包,迭代器)之杵臼之交
  4. c/c++ 继承与多态 容器与继承1
  5. Go语言学习笔记-函数部分(三)
  6. Java学习笔记记录(一)
  7. linux ssh免密登陆远程服务器
  8. 【Python 07】汇率兑换1.0-2(基本元素)
  9. JS库创建
  10. 如何判断app的页面是原生的还是H5的webview页面