码迷,mamicode.com
首页 >  
搜索关键字:shopping cart    ( 840个结果
使用Python实现简单购物车
#!/usr/bin/envpython#-*-coding:utf-8-*-shopping_list=[(‘Iphone‘,5800),(‘Bike‘,800),(‘Book‘,45),(‘Coffee‘,35),(‘Solo2Beats‘,1590),(‘MX4‘,1999),]#定义一个商品列表budget=int(raw_input("pleaseinputyourbudget:").strip())#输入预算buy_list=[]#定义购物车列表whileTr..
分类:编程语言   时间:2015-12-09 15:21:13    阅读次数:192
1048. Find Coins (25)
Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which cou...
分类:其他好文   时间:2015-12-06 11:28:02    阅读次数:156
1044. Shopping in Mars (25)
Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making ...
分类:其他好文   时间:2015-12-06 11:25:48    阅读次数:214
js加入购物车特效
本文来源: http://www.zhangxinxu.com/study/201312/js-parabola-shopping.htmlparabola.js/*! * by zhangxinxu(.com) 2012-12-27 * you can visit http://www.zhang...
分类:Web程序   时间:2015-12-04 20:54:33    阅读次数:266
用python实现网上书店
需求:1:每个用户的 购物车(cart) 用合适的数据结构缓存在内存中。2:对每个数据对象的访问,合理设置并管理缓存(使用独立的模块读写数据库)。让程序结构变得可管理、可维护。3:对每种商品,设定一个库存。下订单就(假设不需要付款)完成需要减库存。4:将 商品详情 页面的 当前库存 采用 ajax ...
分类:编程语言   时间:2015-11-29 00:55:32    阅读次数:231
[Codeforces599B] Spongebob and Joke (模拟)
题目概述: While Patrick was gone shopping, Spongebob decided to play a little trick on his friend. The naughty Sponge browsed through Patrick's personal ....
分类:其他好文   时间:2015-11-22 17:22:04    阅读次数:124
Codeforces Round #332 (Div. 2) B. Spongebob and Joke 模拟
B. Spongebob and JokeWhile Patrick was gone shopping, Spongebob decided to play a little trick on his friend. The naughty Sponge browsed through Patri...
分类:其他好文   时间:2015-11-21 18:33:19    阅读次数:238
[cf 599A]Patrick and Shopping
傻逼题,但是我还是wa了一发。#include using namespace std;int main(){ long long a,b,c,Ans=0x7fffffff; cin >> a >> b >> c; Ans=min(Ans,a+a+b+b); Ans=m...
分类:其他好文   时间:2015-11-21 18:32:15    阅读次数:187
Codeforces Round #332 (Div. 2)A. Patrick and Shopping 水
A. Patrick and ShoppingToday Patrick waits for a visit from his friend Spongebob. To prepare for the visit, Patrick needs to buy some goodies in two s...
分类:其他好文   时间:2015-11-21 18:31:29    阅读次数:199
Codeforces Round #332 (Div. 2)
好菜,不说话了,说题。A - Patrick and Shopping从一个点出发,要经过其他两个点,然后回到原地,求最小时间花费。只有四种情况,从中选一个最小的就行了。#include #include #include #include #include #include using names...
分类:其他好文   时间:2015-11-21 17:04:36    阅读次数:153
840条   上一页 1 ... 62 63 64 65 66 ... 84 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!