摘要:
【题目链接】:http://acm.uestc.edu.cn/#/problem/show/1544【题意】 【题解】 容斥原理题; 1..(2^m)-1枚举 设k为其二进制形式中1的个数; k为奇数 ans+=2^(k-1)*(n/lcm(对应的k个数)) 否则-=….. 如果不... 阅读全文
posted @ 2017-10-04 18:44
AWCXV
阅读(141)
评论(0)
推荐(0)
摘要:
Problem StatementYou are given two ints: n and m. Let D be the number of permutations of the set {1,2,…,n+m} such that the first m values are ... 阅读全文
posted @ 2017-10-04 18:44
AWCXV
阅读(133)
评论(0)
推荐(0)
摘要:
【题目链接】:http://codeforces.com/problemset/problem/821/E【题意】 一开始位于(0,0)的位置; 然后你每次可以往右上,右,右下3走一步; (x+1,y+1),(x+1,y),(x+1,y-1) 然后有n条横线,限制你在横线与x轴之间... 阅读全文
posted @ 2017-10-04 18:44
AWCXV
阅读(300)
评论(0)
推荐(0)
摘要:
Problem StatementAlice has a string s of lowercase letters. The string is written on a wall. Alice also has a set of cards. Each card contains... 阅读全文
posted @ 2017-10-04 18:44
AWCXV
阅读(179)
评论(0)
推荐(0)
摘要:
Problem StatementYou are given a vector t that describes a rectangular table of zeroes and ones. Each character in t is either ‘0’ or ‘1’. We... 阅读全文
posted @ 2017-10-04 18:44
AWCXV
阅读(127)
评论(0)
推荐(0)
摘要:
【题目链接】:http://codeforces.com/contest/820/problem/B【题意】 给你一个正n边形; 然后让你在这正n边行中选3个点,组成一个角; 找出角的大小和所给的角最接近的角; 【题解】 同弧所对应的圆周角都是相同的; 而且每个正多边行都能作... 阅读全文
posted @ 2017-10-04 18:44
AWCXV
阅读(318)
评论(0)
推荐(0)
摘要:
【题目链接】:http://codeforces.com/contest/820/problem/A【题意】 每天看书能看v页; 且这个v每天能增加a; 但是v有上限v1; 然后每天还必须往回看t页; 问你最少多少天能看完; 一共有c页; 【题解】 傻逼题. 【Number O... 阅读全文
posted @ 2017-10-04 18:44
AWCXV
阅读(121)
评论(0)
推荐(0)
摘要:
Problem StatementA string S is a subsequence of a string T if we can obtain S from T by erasing some (possibly all or none) of its characters.... 阅读全文
posted @ 2017-10-04 18:44
AWCXV
阅读(190)
评论(0)
推荐(0)
摘要:
【题目链接】:http://codeforces.com/contest/821/problem/C【题意】 给你2*n个操作; 包括把1..n中的某一个数压入栈顶,以及把栈顶元素弹出; 保证压入和弹出操作都恰好各n个; 且压入的n个数字都各不相同; 在弹出栈的时候你可以把栈中的元... 阅读全文
posted @ 2017-10-04 18:44
AWCXV
阅读(98)
评论(0)
推荐(0)
摘要:
【题目链接】:http://codeforces.com/contest/821/problem/B【题意】 当(x,y)这个坐标中,x和y都为整数的时候; 这个坐标上会有x+y根香蕉; 然后给你一条直线的方程y=1mx+b 给你m和b; 让你在这条直线以下选一个长方形; (长方形... 阅读全文
posted @ 2017-10-04 18:44
AWCXV
阅读(148)
评论(0)
推荐(0)

浙公网安备 33010602011771号