上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 59 下一页
摘要: 题目描述 约翰家的 N 头奶牛正在排队游行抗议。一些奶牛情绪激动,约翰测算下来,排在第 i 位的奶牛 的理智度为 A i ,数字可正可负。 约翰希望奶牛在抗议时保持理性,为此,他打算将这条队伍分割成几个小组,每个抗议小组的理 智度之和必须大于或等于零。奶牛的队伍已经固定了前后顺序,所以不能交换它们的 阅读全文
posted @ 2017-06-20 13:25 PIPIBoss 阅读(268) 评论(0) 推荐(1) 编辑
摘要: 题目背景 奶牛想证明它们是聪明而风趣的。为此,贝西筹备了一个奶牛博览会,她已经对N 头奶牛进行 了面试,确定了每头奶牛的智商和情商。 题目描述 贝西有权选择让哪些奶牛参加展览。由于负的智商或情商会造成负面效果,所以贝西不希望出展奶牛的智商之和小于零,或情商之和小于零。满足这两个条件下,她希望出展奶牛 阅读全文
posted @ 2017-06-19 13:28 PIPIBoss 阅读(590) 评论(0) 推荐(1) 编辑
摘要: 题目描述 一本书的页码是从 1-n 编号的连续整数:1, 2, 3, ... , n。请你求出全部页码中所有单个数字的和,例如第 123 页,它的和就是 1+2+3=6。 一本书的页码是从 1-n 编号的连续整数:1, 2, 3, ... , n。请你求出全部页码中所有单个数字的和,例如第 123 阅读全文
posted @ 2017-06-19 12:35 PIPIBoss 阅读(266) 评论(0) 推荐(1) 编辑
摘要: B. Bear and Friendship Condition time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Bear 阅读全文
posted @ 2017-06-18 13:24 PIPIBoss 阅读(222) 评论(0) 推荐(1) 编辑
摘要: C. Karen and Game time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output On the way to school, 阅读全文
posted @ 2017-06-18 13:06 PIPIBoss 阅读(185) 评论(0) 推荐(1) 编辑
摘要: To stay woke and attentive during classes, Karen needs some coffee! Karen, a coffee aficionado, wants to know the optimal temperature for brewing the 阅读全文
posted @ 2017-06-18 12:59 PIPIBoss 阅读(223) 评论(0) 推荐(1) 编辑
摘要: Karen is getting ready for a new school day! It is currently hh:mm, given in a 24-hour format. As you know, Karen loves palindromes, and she believes 阅读全文
posted @ 2017-06-18 12:57 PIPIBoss 阅读(185) 评论(0) 推荐(2) 编辑
摘要: The modular modular multiplicative inverse of an integer a modulo m is an integer x such that a-1≡x (mod m). This is equivalent to ax≡1 (mod m). Input 阅读全文
posted @ 2017-06-16 21:57 PIPIBoss 阅读(255) 评论(0) 推荐(1) 编辑
摘要: Problem Description 要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。 Input 数据的第一行是一个T,表示有T组数据。每组数据有两个数n(0 <= n < 9973)和B(1 <= B <= 阅读全文
posted @ 2017-06-16 21:13 PIPIBoss 阅读(217) 评论(0) 推荐(1) 编辑
摘要: Description 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝着某 阅读全文
posted @ 2017-06-16 21:04 PIPIBoss 阅读(197) 评论(0) 推荐(1) 编辑
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 59 下一页