上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 题目: Error Curves Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1151 Accepted Submission(s): 440 阅读全文
posted @ 2017-04-16 19:21 枫虹 阅读(230) 评论(0) 推荐(0) 编辑
摘要: D - Cheerleaders 题目链接:https://vjudge.net/contest/154063#problem/D 题目大意: 给你一个 n∗m 的方格,现在有 k 个相同石子,我们要将这 k 个石子完全放入 n∗m 中, 要求的是第一行、第一列、最后一行和最后一列中必须有石子,求的 阅读全文
posted @ 2017-03-18 16:00 枫虹 阅读(222) 评论(0) 推荐(0) 编辑
摘要: B - Sumdiv 题目链接:https://vjudge.net/contest/154063#problem/B 题意: 求A^B的所有约数(即因子)之和,并对其取模 9901再输出。 解题思路: 要求有较强 数学思维 的题 应用定理主要有三个: 要求有较强 数学思维 的题 应用定理主要有三个 阅读全文
posted @ 2017-03-18 15:43 枫虹 阅读(163) 评论(0) 推荐(0) 编辑
摘要: A - Biorhythms 链接:https://vjudge.net/contest/154063#problem Description 人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人会在相应的方面表现出色。 阅读全文
posted @ 2017-03-18 15:21 枫虹 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 糖果传递 (环状的均分纸牌) Description 有n个小朋友坐成一圈,每人有ai个糖果。每人只能给左右两人传递糖果。每人每次传递一个糖果代价为1。 有n个小朋友坐成一圈,每人有ai个糖果。每人只能给左右两人传递糖果。每人每次传递一个糖果代价为1。 Input 小朋友个数n 下面n行 ai 小朋 阅读全文
posted @ 2017-03-18 14:50 枫虹 阅读(934) 评论(0) 推荐(0) 编辑
摘要: Bubble Sort Problem Description P is a permutation of the integers from 1 to N(index starting from 1).Here is the code of Bubble Sort in C++. for(int 阅读全文
posted @ 2016-07-29 10:48 枫虹 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Dertouzos 题意: 就是给一个n和一个d,问有多少个小于n的数的最大因子是d。 分析: 如果一个数是质数,又和d互质,它们的乘积在范围内的话显然是满足条件的, 如果这个质数和d不互质,那么如果只有这个质数是d最小的质因子时才满足这个条件,其他都不满足, 输入样例 输出样例 阅读全文
posted @ 2016-07-25 16:57 枫虹 阅读(188) 评论(0) 推荐(0) 编辑
摘要: E - The Values You Can Make Description Pari wants to buy an expensive chocolate from Arya. She has n coins, the value of the i-th coin is ci. The pri 阅读全文
posted @ 2016-07-16 09:03 枫虹 阅读(237) 评论(0) 推荐(0) 编辑
摘要: D - Remainders Game Description Today Pari and Arya are playing a game called Remainders. Pari chooses two positive integer x and k, and tells Arya k  阅读全文
posted @ 2016-07-15 21:30 枫虹 阅读(276) 评论(0) 推荐(0) 编辑
摘要: C - NP-Hard Problem Description Recently, Pari and Arya did some research about NP-Hard problems and they found the minimum vertex cover problem very 阅读全文
posted @ 2016-07-14 21:47 枫虹 阅读(198) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页