publicclassCheckWord{
publicfinalintbasicAmount=85;
Stringadvertisement;
intamount;
publicCheckWord(Stringadvertisement){
this.advertisement=advertisement;
}
publicvoidsetChargeAmount(){
amount=advertisement.length()+basicAmount;
}
publicintgetA..
分类:
编程语言 时间:
2016-07-13 14:07:40
阅读次数:
286
House Robber You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constrain ...
分类:
其他好文 时间:
2016-07-12 01:33:47
阅读次数:
249
Problem :https://leetcode.com/problems/gas-station/ There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. Y ...
分类:
其他好文 时间:
2016-07-10 15:21:42
阅读次数:
118
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee ...
分类:
编程语言 时间:
2016-07-01 16:16:27
阅读次数:
148
#include<stdio.h>
#include<string.h>
#include<iostream>
#include<process.h>
#include<conio.h>
#include<iomanip>
#definemax60
typedefstructcustomer
{//乘客信息
charname[10];//姓名
int amount;//订票数
charrank;//火车票..
分类:
编程语言 时间:
2016-06-24 20:45:18
阅读次数:
2146
题目描述: You are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. You need to determine whether it i ...
分类:
其他好文 时间:
2016-06-24 18:45:32
阅读次数:
117
A couple of websites on our DigitalOcean VPS have a great amount of traffic. Due to this traffic, I ran into the error below (edited for readability). ...
分类:
其他好文 时间:
2016-06-18 12:50:24
阅读次数:
126
异端,异端啊,我感觉这是map吧? 1 enum ATMStatus { 2 case Success(Int) 3 case Error(String) 4 } 5 6 var balance = 200 7 8 func withdraw(amount: Int) -> ATMStatus { ...
分类:
编程语言 时间:
2016-06-16 23:16:15
阅读次数:
236
1:load Average 1.1:什么是Load?什么是Load Average? Load 就是对计算机干活多少的度量(WikiPedia:the system Load is a measure of the amount of work that a compute system is d... ...
分类:
系统相关 时间:
2016-06-15 22:09:33
阅读次数:
272
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo ...
分类:
其他好文 时间:
2016-06-13 11:19:42
阅读次数:
117