1,expra)expr calculate//a=10;echo `expr $a - 1 `b)string index //a='abcde';echo `expr index $a "b"`|| string substr// a='abcde'; echo `expr substr $a ...
分类:
系统相关 时间:
2014-10-28 12:07:51
阅读次数:
270
Solution: when see question about two strings , DP should be considered first.We can abstract this question to calculate appear times for string T wit...
分类:
其他好文 时间:
2014-10-26 00:12:57
阅读次数:
211
2226: [Spoj 5971] LCMSumTime Limit:20 SecMemory Limit:259 MBSubmit:578Solved:259[Submit][Status]DescriptionGiven n, calculate the sum LCM(1,n) + LCM(2...
分类:
其他好文 时间:
2014-10-22 23:40:27
阅读次数:
389
题意 求n=0~9时的sigma(1/n!)分析 因为刚学c++ 所以对浮点操作还是很不熟练,正好来了这么一道题Accepted Code 1 /* 2 PROBLEM:hdu 1012 3 AUTHER:Nicole Lam 4 MEMO:水题 5 */ 6 #incl...
分类:
其他好文 时间:
2014-10-20 23:11:29
阅读次数:
218
Calculate the FunctionTime Limit:2 Seconds Memory Limit:65536 KBYou are given a list of numbersA1A2..ANandMqueries. For the i-th query:The query has t...
分类:
其他好文 时间:
2014-10-20 18:51:12
阅读次数:
153
ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionGive two positive integers a and b, please help us calculate a*b.InputThe first line of t...
分类:
其他好文 时间:
2014-10-16 14:06:42
阅读次数:
135
原文出自:http://ttitfly.iteye.com/blog/1364671. 以一个算术运算为例,传统做法为:java 代码package org.common; public class Calculate { public String getResu...
分类:
编程语言 时间:
2014-10-15 13:17:30
阅读次数:
214
sqwswwEEEeUntitled Document 复习提纲 stereographic projection (definition and the way to find a projecting point) calculate square root for a given complex number triangle inequality differentiatio...
分类:
其他好文 时间:
2014-10-14 14:01:29
阅读次数:
412
题目链接Dreamoon loves summing up something for no reason. One day he obtains two integersaandboccasionally. He wants to calculate the sum of allniceinteg...
分类:
其他好文 时间:
2014-10-13 23:10:27
阅读次数:
221
Problem DescriptionGiven a positive integer N, your task is to calculate the sum of the positive integers less than N which are not coprime to N. A .....
分类:
其他好文 时间:
2014-10-11 16:30:15
阅读次数:
172