随笔分类 - 网络赛
摘要:A LL “LL是什么?这都不知道的话,别说自己是程序猿啊!” “longlong?” “。。。肯定是LoveLive啊!” qwb为了检验你是否是真正的程序猿,决定出道题考考你:现在程序会输入一行字符串,如果恰好是lovelive(不区分大小写)就输出yes,否则输出no。 输入描述: 输出描述:
阅读全文
摘要:大吉大利今晚吃鸡 Problem Description 最近流行吃鸡,那就直接输出一行"Winner winner ,chicken dinner!"(没有双引号)模板代码:#include <stdio.h>int main(){printf("hello world\n");return 0;
阅读全文
摘要:Permutation 找规律 先输出奇数 1 2 3 4 5... 偶数就用剩下的依次加1 找规律 先输出奇数 1 2 3 4 5... 偶数就用剩下的依次加1 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int main() { 5
阅读全文
摘要:The frequent subset problem is defined as follows. Suppose U={1, 2,…\ldots…,N} is the universe, and S1S_{1}S1, S2S_{2}S2,…\ldots…,SMS_{M}SM a
阅读全文
摘要:Let S be a sequence of integers s1s_{1}s1, s2s_{2}s2, ........., sns_{n}sn Each integer is is associated with a weight by the following rules
阅读全文
摘要:There are nnn rectangles on the plane. The problem is to find the area of the union of these rectangles. Note that these rectangles might overlap with
阅读全文
摘要:You are given a list of train stations, say from the station to the station 100. The passengers can order several tickets from one station to another
阅读全文
摘要:Problem Description Giving two strings and you should judge if they are matched.The first string contains lowercase letters and uppercase letters.The
阅读全文
摘要:A Secret Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 256000/256000 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0 Problem De
阅读全文
摘要:CaoHaha's staff Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0 Probl
阅读全文
摘要:小C的倍数问题 Problem Description 根据小学数学的知识,我们知道一个正整数x是3的倍数的条件是x每一位加起来的和是3的倍数。反之,如果一个数每一位加起来是3的倍数,则这个数肯定是3的倍数。现在给定进制P,求有多少个B满足P进制下,一个正整数是B的倍数的充分必要条件是每一位加起来的
阅读全文
摘要:题目链接http://acm.hdu.edu.cn/showproblem.php?pid=6090 Problem Description As we know, Rikka is poor at math. Yuta is worrying about this situation, so he
阅读全文
摘要:Problem Description 哗啦啦村袭击了喵哈哈村!度度熊为了拯救喵哈哈村,带着自己的伙伴去救援喵哈哈村去了!度度熊与伙伴们很快的就过来占据了喵哈哈村的各个军事要地,牢牢的守住了喵哈哈村。但是度度熊发现,这是一场旷日持久的战斗,所以度度熊决定要以逸待劳,保存尽量多的体力,去迎战哗啦啦村的
阅读全文
摘要:度度熊保护村庄 Accepts: 47 Submissions: 900 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) 度度熊保护村庄 Accepts: 47 Submissions:
阅读全文
摘要:题目大意:任意△ABC中F、D、E分别为三边的三等分点中点,将其分别与对应的顶点相连,得到一个新的△RPQ。 现在给出△ABC的坐标,求△RPQ的面积 解题思路:求出△ABC的面积三角形 ABC 的面积 可以证明:S△BPQ :S△ABC = 1 : 7 也可以用每个边用向量缩减三倍求三分点,然后求
阅读全文
摘要:给定n行m列个正方形,求可以组成多少个三角形。 如1×2,有18个。 总的点有N个,那个答案就是C(N,3),然后减去横向、竖向、斜向的三点共线的个数即可,斜线三点共线等价于所枚举的矩形的长宽成倍数关系,即gcd不为1。(这个想不懂,先放在这)
阅读全文
摘要:A - The Trip, 2007 小包可以放在打包里,求最少的数量。 做法就是求出现相同数字最多的。 B - Partitioning by Palindromes 传送 C - Seek the Name, Seek the Fame The little cat is so famous,
阅读全文
摘要:打表可以找出规律就是求n^k。
阅读全文
摘要:A - Fence Repair Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤
阅读全文
摘要:最小的数 Problem Description 定义一种正整数集合K,集合中有N个数,集合中元素Ki(1<=i<=N)是包含i个不同质因子的最小的数。因为Ki可能会很大,所以将集合中所有Ki对10^9+7取余。 Input 本题只有唯一一组测试数据,第一行给出N,q,表示K的个数以及q次询问。1<
阅读全文

浙公网安备 33010602011771号