码迷,mamicode.com
首页 > 2015年08月10日 > 全部分享
简单字符串处理方法:
string:一些字符串处理函数: strcpy(s1,s2): **s1,s2定义为字符数组。** 把字符串s2中的内容copy到s1中,连字符串结束标志也一起copy. strcmp(s1,s2): **s1,s2定义为字符数组。** 比较两个字符串的大小,返回比较的结果。一般形式是: ①字符串1小于字符串2,strcmp函数返回一个...
分类:其他好文   时间:2015-08-10 20:05:31    阅读次数:123
【笔试】12、企业发放的奖金根据利润提成。
/** * 题目:企业发放的奖金根据利润提成。 * 利润(I)低于或等于10万元时,奖金可提10%; * 利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可可提成7.5%; * 20万到40万之间时,高于20万元的部分,可提成5%;,前面的提成不变 * 40万到60万之间时高于40万元的部分,可提成3%; * 60万到100万之...
分类:其他好文   时间:2015-08-10 20:05:03    阅读次数:108
454 Authentication failed, please open smtp flag first!
1、错误描述454 Authentication failed, please open smtp flag first! Exception in thread "main" javax.mail.AuthenticationFailedException at javax.mail.Service.connect(Service.java:267) at javax.mail.Servic...
分类:其他好文   时间:2015-08-10 20:04:41    阅读次数:120
leetcode:LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key if ...
分类:系统相关   时间:2015-08-10 20:02:52    阅读次数:163
PHP日志
$des = './Application/Runtime/Logs/Api/api.log'; // $now = date('c'); $now = date('Y-m-d H:i:s'); $log = 'NOTICE'; $destination = 'DB连接失败'; error_log("[{$now}] ".$destination.' '.$_SERVER['REMOTE...
分类:Web程序   时间:2015-08-10 20:02:41    阅读次数:168
【笔试】13、求数值
/** * 题目:一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少? * 时间:2015年7月29日08:31:58 * 文件:Lianxi13.java * 作者:cutter_point */ package bishi.zuixin50.t2015729; public class Lianxi13 { public static v...
分类:其他好文   时间:2015-08-10 20:04:59    阅读次数:100
com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
1、错误描述553 Mail from must equal authorized user com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.j...
分类:其他好文   时间:2015-08-10 20:03:59    阅读次数:197
【笔试】14、判断这一天是这一年的第几天
/** * 题目:输入某年某月某日,判断这一天是这一年的第几天? * 时间:2015年7月29日08:31:58 * 文件:Lianxi14.java * 作者:cutter_point */ package bishi.zuixin50.t2015729; import java.util.*; public class Lianxi14 { public static ...
分类:其他好文   时间:2015-08-10 20:02:59    阅读次数:128
HNU11374:GREAT+SWERC=PORTO(DFS)
Problem description We want to have a great SWERC at Porto this year and we approached this challenge in several ways. We even framed it as a word addition problem, similar to the classic SEND+...
分类:其他好文   时间:2015-08-10 20:04:38    阅读次数:178
MAVEN创建并打包web项目
maven项目是由一个maven project和多个maven module组成的,下面简单介绍一下maven webapp的创建和打包,前提是你已经安装配置好maven了。 打开eclipse,按照如下操作: 我们首先当然要先创建一个project,如上图选择。 现在maven project已经创建好了,project的名称是test,并且自动创...
分类:Web程序   时间:2015-08-10 20:02:10    阅读次数:113
【笔试】15、输入三个整数x,y,z,请把这三个数由小到大输出。
/** * 题目:输入三个整数x,y,z,请把这三个数由小到大输出。 * 时间:2015年7月29日11:01:06 * 文件:Lianxi15.java * 作者:cutter_point */ package bishi.zuixin50.t2015729; import java.io.*; public class Lianxi15 { public static ...
分类:其他好文   时间:2015-08-10 20:03:16    阅读次数:138
POJ 3667 Hotel 【线段树 区间合并 + Lazy-tag】
Hotel Time Limit: 3000MS Memory Limit: 65536K 链接:POJ 3667     Description The cows are journeying north to ThunderBay in Canada to gain cultural enrichme...
分类:其他好文   时间:2015-08-10 20:03:16    阅读次数:102
【笔试】16、输出9*9口诀。
/** * 题目:输出9*9口诀。 * 时间:2015年7月30日08:09:49 * 文件:Lianxi16.java * 作者:cutter_point */ package bishi.zuixin50.t2015730; import java.io.*; public class Lianxi16 { public static void main(String[...
分类:其他好文   时间:2015-08-10 20:04:34    阅读次数:88
NOIP2009 Hankson的趣味题
求出满足条件的x的个数:gcd(x,a0) = a1  lcm(x,b0) = b1 我们不难得到gcd(x/a1,a0/a1) = 1  gcd(b1/x,b0/b1) = 1 以前上数论的时候讲过这道题,结果我没有去及时写,然后就不会做了。。。。暴搜其实也能拿80分。。。 参考了一下网上的题解点击打开链接...
分类:其他好文   时间:2015-08-10 20:01:33    阅读次数:142
535 Error: authentication failed
1、错误描述535 Error: authentication failed Exception in thread "main" javax.mail.AuthenticationFailedException at javax.mail.Service.connect(Service.java:267) at javax.mail.Service.connect(Service.java:...
分类:其他好文   时间:2015-08-10 20:01:34    阅读次数:119
剑指Offer面试题41(Java版):和为s的两个数字VS和为s的连续正数序列
题目一:输入一个递增排序的数组和一个数字s,在数组中查找两个数,使得它们的和正好是s。如果有多个数字的和等于s,输出任意一对即可。 例如输入数组{1,2,4,7,11,15}和数字15.由于4+11=15,因此输出4和11. 在面试的时候,很重要的一点是应聘者要表现出很快的反应能力。只要想到一个办法,应聘者就可以立马告诉面试官,即使这个办法不一定是最好的。比如这个问题,很多人会立即能想到O(n...
分类:编程语言   时间:2015-08-10 20:03:13    阅读次数:142
HNU11376:Golf Bot
Problem description Input The first line has one integer: N, the number of different distances the Golf Bot can shoot. Each of the following N lines has one integer, ki, the di...
分类:其他好文   时间:2015-08-10 20:01:23    阅读次数:123
2046条   上一页 1 ... 31 32 33 34 35 36 37 ... 121 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!