摘要: D. Gluttony time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given an array a wit 阅读全文
posted @ 2017-11-18 23:31 zbtrs 阅读(390) 评论(0) 推荐(0) 编辑
摘要: C. Pride time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Pride time limit per test 2 阅读全文
posted @ 2017-11-18 23:07 zbtrs 阅读(393) 评论(0) 推荐(0) 编辑
摘要: B. Wrath time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Hands that shed innocent blood! 阅读全文
posted @ 2017-11-18 22:56 zbtrs 阅读(312) 评论(0) 推荐(0) 编辑
摘要: A. Greed time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Jafar has n cans of cola. Each 阅读全文
posted @ 2017-11-18 22:51 zbtrs 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 描述 给定一个长度为 n 的非负整数序列 a[1..n] 你需要求有多少个非负整数 S 满足以下两个条件: (1).0 ≤ S < 2^60 (2).对于所有 1 ≤ i < n ,有 (a[i] xor S) ≤ (a[i+1] xor S) 输入 第一行一个正整数 n 第二行 n 个非负整数表示 阅读全文
posted @ 2017-11-18 17:06 zbtrs 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Fib[0]=0,Fib[1]=1,Fib[n]=Fib[n-1]+Fib[n-2] if n>1. 定义索函数Sor(n)=Fib[0]| Fib[1] |Fib[2]|…|Fib[n]. 给定整数n,要求计算Sor(n)%1,000,000,007(1e9+7). Fib[0]=0,Fib[1] 阅读全文
posted @ 2017-11-18 16:00 zbtrs 阅读(330) 评论(0) 推荐(0) 编辑
摘要: A. The Brand New Function time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Polycarpus has 阅读全文
posted @ 2017-11-18 15:14 zbtrs 阅读(414) 评论(0) 推荐(0) 编辑