啊,给你十二个月的钱,然后求平均钱数,注意在千位打逗号
分类:
其他好文 时间:
2015-04-02 22:20:10
阅读次数:
120
Stock Exchange
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 4790
Accepted: 1710
Description
The world financial crisis is quite a subject. Some people a...
分类:
其他好文 时间:
2015-04-02 15:09:49
阅读次数:
100
题意:从C有奶牛中选N头,给出它们的分数scores和资助aid,要是这N头牛的总资助不超过F,同时它们中分数的中位数最大。求这个最大的中位数。
思路:按照分数排序,枚举每头牛作为中位数,计算牛i前面N/2头牛的最小资助和后面N/2牛的最小资助(用到优先队列)。最后从后往前找第一个满足l[i]+r[i]+cow[i].second<=F的即为答案。...
分类:
其他好文 时间:
2015-03-21 17:13:09
阅读次数:
247
微软近期Open的职位:Experience CJK Team – we are a group of talented engineers focusing on building the best search experience for East Asia markets like Chin...
分类:
其他好文 时间:
2015-03-18 12:16:24
阅读次数:
126
生活很心酸?8招支撑你度过困难时期 No matter what problem you're facing, tough times happen to the best of us. Whether it's financial trouble or just an overall bad d....
分类:
其他好文 时间:
2015-03-18 10:29:52
阅读次数:
122
创建AssocArray的目的是关联数据和主键:例如"A1" ~ 1; "B1" ~ 2.08 ...
其中,Set是自定义的数据结构,内部含有dictionary数据,可以进行诸如合并,交集等的操作。
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;...
/*
求12个月的平均数,实在太水
*/
# include
int main(void)
{
int month;
double penny[12],sum = 0,ave = 0;
scanf("%d", &month);
getchar(); //吸收回车符。
for(int i = 0; i < month; i++)
{
scanf("%lf", &penny[...
分类:
其他好文 时间:
2015-03-04 16:56:45
阅读次数:
124
DescriptionThe world financial crisis is quite a subject. Some people are more relaxed while others are quite anxious. John is one of them. He is very...
分类:
其他好文 时间:
2015-03-04 16:17:35
阅读次数:
128
微软近期Open的职位:Experience CJK Team – we are a group of talented engineers focusing on Bing international web search quality for East Asia markets like Ch...
分类:
其他好文 时间:
2015-03-02 14:48:10
阅读次数:
99