首页 写随笔

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

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

导航

随笔分类 -  codeforces

cf不是tx的某游戏
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 阅读(220) 评论(0) 推荐(0)

codeforce 804B Minimum number of steps
摘要:cf劲啊 原题: We have a string of letters 'a' and 'b'. We want to perform some operations on it. On each step we choose one of substrings "ab" in the strin 阅读全文

posted @ 2017-05-05 09:07 cdcq_old 阅读(378) 评论(0) 推荐(0)

codeforces 788A Functions again
摘要:…… 原题: Something happened in Uzhlyandia again... There are riots on the streets... Famous Uzhlyandian superheroes Shean the Sheep and Stas the Giraffe 阅读全文

posted @ 2017-03-31 11:09 cdcq_old 阅读(417) 评论(0) 推荐(0)

codeforces 724c Ray Tracing
摘要:好题 原题: There are k sensors located in the rectangular room of size n × m meters. The i-th sensor is located at point (xi, yi). All sensors are located 阅读全文

posted @ 2017-02-16 14:39 cdcq_old 阅读(263) 评论(0) 推荐(0)

USACO 2015 December Contest, Gold Problem 2. Fruit Feast
摘要:Problem 2. Fruit Feast 很简单的智商题(因为碰巧脑出来了所以简单一,一 原题: Bessie has broken into Farmer John's house again! She has discovered a pile of lemons and a pile of 阅读全文

posted @ 2016-12-11 10:18 cdcq_old 阅读(314) 评论(2) 推荐(0)