摘要:
map(function,iterable,...) Applyfunctionto every item ofiterableand return a list of the results. If additionaliterablearguments are passed,functionmust take that many arguments and is applied to the items from all iterables in parallel. If one iterable is shorter than another it is assumed to be e. 阅读全文
posted @ 2012-02-03 21:48
SkyHacker
阅读(18742)
评论(0)
推荐(1)
摘要:
题目:http://codeforces.com/problemset/problem/148/A题目很简单,就是两个循环。 1 #! /usr/bin/env python 2 3 x = [input() for i in xrange(4)] 4 d = input() 5 cnt=0 6 #for i in xrange(1,d+1): 7 # for j in x: 8 # if i % j == 0: 9 # cnt+=110 # break11 #cnt = sum(any(i%j==0 for j in x) for i in xran... 阅读全文
posted @ 2012-02-03 20:35
SkyHacker
阅读(880)
评论(1)
推荐(0)
浙公网安备 33010602011771号