码迷,mamicode.com
首页 >  
搜索关键字:addition    ( 590个结果
UVA 10994 Simple Addition
感觉这个一定要记下来涨教训啊。一开始找规律找错了。判断超麻烦还各种WA。浪费N个小时啊。。人家几行就A了。太弱,#include #include #include #include #include #include #include #include #include #include #inc...
分类:其他好文   时间:2014-09-26 21:19:58    阅读次数:205
[数位dp] hdu 2451 Simple Addition Expression
题意:给N,求小于N的数中,三个连续的数相加不进位的数有多少个。 思路:和上题类似,就是不是个位的话,可以放0,1,2,3,个位的话只能放0,1,2。 然后就是边界考虑一下,不能超过当前位。 然后就是边界的判断,不是等于len而是等于当前位。 代码: #include"cstdlib" #include"cstdio" #include"cstring" #include"cmath" ...
分类:其他好文   时间:2014-09-24 23:32:18    阅读次数:220
C puzzles详解【51-57题】
第五十一题Write a C function which does the addition of two integers without using the '+' operator. You can use only the bitwise operators.(Remember the g...
分类:其他好文   时间:2014-09-24 00:51:55    阅读次数:253
Passing arguments to a shell script
Any shell script you run has access to (inherits) the environment variables accessible to its parent shell. In addition, any arguments you type after the script name on the shell command line are p...
分类:其他好文   时间:2014-09-19 15:49:26    阅读次数:282
zoj 3813 Alternating Sum(2014ACMICPC Regional 牡丹江站网络赛 E)
Alternating Sum Time Limit: 2 Seconds      Memory Limit: 65536 KB There is a digit string S with infinite length. In addition, S is periodic and it can be formed by concatenating infinite re...
分类:其他好文   时间:2014-09-09 13:28:48    阅读次数:210
2014牡丹江网络预选赛E题(线段树)zoj3813
Alternating Sum Time Limit: 2 Seconds      Memory Limit: 65536 KB There is a digit string S with infinite length. In addition, S is periodic and it can be formed by concatenating infinite repeti...
分类:其他好文   时间:2014-09-09 13:10:58    阅读次数:164
给UIColor 添加自定义属性(颜色)
#import<UIKit/UIKit.h>@interfaceUIColor(Addition)+(UIColor*)lightGreenColor;@end#import"UIColor+Addition.h"@implementationUIColor(Addition)+(UIColor*)lightGreenColor{return[UIColorcolorWithRed:kRed/255.0green:kGreen/255.0blue:kBlue/255.0alpha:1.0];}@end
分类:其他好文   时间:2014-09-05 03:24:21    阅读次数:249
UVA - 12163 Addition-Subtraction Game (博弈)
Description   You and your friend are playing a 2 player game. The game is played in a graph of V vertices. The vertices are numbered from 0 to V-1. The graph has some directed edges. But the gr...
分类:其他好文   时间:2014-08-29 01:26:06    阅读次数:305
[POJ 3368]Frequent values(RMQ)
Description You are given a sequence of n integers a1 , a2 , ... , an in non-decreasing order. In addition to that, you are given several queries consisting of indices i and j (1 ≤ i ≤ j ≤ n). ...
分类:其他好文   时间:2014-08-26 17:24:06    阅读次数:333
UVA - 10692 Huge Mods (欧拉函数)
Problem X Huge Mod Input: standard input Output: standard output Time Limit: 1 second The operator for exponentiation is different from the addition, subtraction, multiplication or division opera...
分类:其他好文   时间:2014-08-25 11:55:14    阅读次数:249
590条   上一页 1 ... 54 55 56 57 58 59 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!