码迷,mamicode.com
首页 >  
搜索关键字:简单题    ( 1039个结果
nyoj 96 n-1位数【字符串简单题】
n-1位数 时间限制:3000 ms  |  内存限制:65535 KB 难度:1 描述 已知w是一个大于10但不大于1000000的无符号整数,若w是n(n≥2)位的整数,则求出w的后n-1位的数。 输入第一行为M,表示测试数据组数。 接下来M行,每行包含一个测试数据。输出输出M行,每行为对应行的n-1位数(忽略前缀0)。如果除了最高位外,其余位都为0,则输出0。样例输...
分类:其他好文   时间:2015-09-01 09:16:24    阅读次数:265
hdu 5422 Rikka with Graph(简单题)
Problem DescriptionAs we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is o...
分类:其他好文   时间:2015-08-29 23:16:15    阅读次数:245
输入一行字符,分别统计出包含英文字母、空格、数字和其它字符的个数-简单题
#include?"stdafx.h" #include<iostream> using?namespace?std; void?count(char?*c) { ?if(c==NULL) ??return; ?int?zimu=0; ?int?shuzi=0; ?int?kongge=0; ?int?qita=0; ?while(*c) ?{ ??i...
分类:其他好文   时间:2015-08-28 23:30:41    阅读次数:386
博弈简单题目
HDU 1846 有n个石头,2个人,每次只能拿m个,谁最后拿完谁赢。 假如n%(m+1)==0,第一个人拿x个,那么第二个人拿m+1-x个,第一个人拿完之后,第二个人始终能拿。 HDU 2147 有n*m个格子和一个棋子,棋子初始在(1,m),每次移动棋子只能到3个位置(左边,下边和左下),谁不能走谁就输。 HDU 2188 和HDU1846一样 HDU ...
分类:其他好文   时间:2015-08-27 23:08:33    阅读次数:193
Talented Chef(简单题,被我想的太复杂了,用复杂的方法当然会超时咯,由此可见,并非所有题都是想的越多越好)
DescriptionAs we all know,Coach Gaois a talented chef, because he is able to cookMdishes in the same time. Tonight he is going to have a hearty dinner...
分类:其他好文   时间:2015-08-27 07:11:52    阅读次数:189
HDU4160 Dolls(最大匹配)
简单题 #include #include #include #include #include #include #include #include #include #include #include #include<cstd...
分类:其他好文   时间:2015-08-25 23:47:14    阅读次数:105
hdoj分类(转)
注:网上搜的第一篇 1001 这个就不用说了吧1002 简单的大数1003 DP经典问题,最大连续子段和1004 简单题1005 找规律(循环点)1006 感觉有点BT的题,我到现在还没过1007 经典问题,最近点对问题,用分治1008 简单题1009 贪心1010 搜索题,剪枝很关键1011...
分类:其他好文   时间:2015-08-19 13:19:14    阅读次数:139
UVA5874 Social Holidaying 二分匹配
二分匹配简单题,看懂题意,建图比较重要。#include#include#define maxn 1100int map[maxn][maxn];int a[maxn],b[maxn],match[maxn],vis[maxn];int n,m;void makemap(){ int i,j,...
分类:其他好文   时间:2015-08-18 09:04:52    阅读次数:109
UVA5876 Writings on the Wall 扩展KMP
扩展KMP的简单题。#include#include#define maxn 51010char s[maxn],t[maxn];int extand[maxn],next[maxn];void getnext(char *t){ int i,k,j,len=strlen(t); nex...
分类:其他好文   时间:2015-08-18 08:58:40    阅读次数:120
状态压缩简单题
状态压缩·一题目传送:#1044 : 状态压缩·一AC代码:#include #include #include #include #include #include #include #include #include #include #in...
分类:其他好文   时间:2015-08-17 15:33:32    阅读次数:117
1039条   上一页 1 ... 59 60 61 62 63 ... 104 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!