首页 写随笔

cdcq(本博客废弃!现用博客:https://www.cnblogs.com/cdcq/)

本博客废弃!现用博客:https://www.cnblogs.com/cdcq/

导航

2017年5月26日 #

codeforces 338D GCD Table

摘要: 什么都不会只能学数论QAQ 英文原题不贴了 题意: 有一张N*M的表格,i行j列的元素是gcd(i,j)读入一个长度为k,元素大小不超过10^12的序列a[1..k],问这个序列是否在表格的某一行中出现过 1<=N,M<=10^121<=k<=10^4 恩 首先显然x=lcm(a[i]) 然后(y+ 阅读全文

posted @ 2017-05-26 18:29 cdcq_old 阅读(203) 评论(0) 推荐(0) 编辑

【HDU5187】contest

摘要: 真的没有什么会写的东西了QAQ 原题: As one of the most powerful brushes, zhx is required to give his juniors n problems.zhx thinks the ith problem's difficulty is i. 阅读全文

posted @ 2017-05-26 13:12 cdcq_old 阅读(272) 评论(0) 推荐(0) 编辑