自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (2)
  • 收藏
  • 关注

原创 sicily 2014 Dairy Queen

<br />这题用过三种方法。。堪称神题啊<br />//母函数 #include <iostream> #include <cstring> using namespace std; int m1[301],m2[301]; int c[8]; int n; int count; int main() { cin >> n >> count; for(int i = 0; i < count; i++) cin >> c[i]; for(int i = 0; i <= n

2011-05-07 23:40:00 1789

原创 hdu 1709 The Balance

<br />母函数<br />#include <iostream> #include <cmath> using namespace std; int n, data[101]; bool m1[10001], m2[10001]; int main(){ while(cin >> n){ int sum = 0; for(int i = 0; i < n; i++) { cin >> data[i];

2011-05-07 23:40:00 698

原创 zoj 2975 Kinds of Fuwas

<br />枚举列,对每个字母算出存在多少相同的列,然后用组合数算。<br />#include <iostream> #include <cstring> using namespace std; char data[250][251]; int m, n; int _num[5]; inline int index(char c) { if(c == 'B') return 0; if(c == 'J') return 1; if(c == 'H') return 2; if

2011-05-06 01:14:00 1498

原创 zoj 2971 Give Me the Number

<br />so call字符串处理?<br />#include <iostream> #include <map> #include <sstream> #include <string> #include <cstdio> using namespace std; map<string, int> num; string line; string s; void init() { num.insert(make_pair("zero", 0)); num.insert(m

2011-05-06 00:57:00 886

原创 zoj 2965 Accurately Say "CocaCola"!

<br />模拟<br />#include<stdio.h> #include<string.h> #include<algorithm> #include<cmath> #include <iostream> using namespace std; int ans[100]; int cur; bool judge(int num) { if(num % 7 == 0) return true; while(num != 0) { if(num % 10 == 7) re

2011-05-06 00:56:00 1062

原创 zoj 1007 Numerical Summation of a Series

<br />这题不难,就是如何减少运算时间以及精度保证,如果没hint我估计也做不出了,有了f(1),那直接用f(x) - f(1) = sum((1 - x) / (k * (k + 1) * (k + x))),分母变成k的立方,则只需要10000次就可以达到e-12的精度,比原来平方降低了100倍运算- -。。。。余项则用等式三可计算<br />#include <stdio.h> int main() { double sum = 0; double x; int k; for(

2011-05-03 09:57:00 3013 1

mail.jar, activation.jar, xerces.jar, xmlsec-1.2.1.jar

mail.jar, activation.jar, xerces.jar, xmlsec-1.2.1.jar 做Axis开发必备

2011-11-29

数据结构殷人昆课后答案

数据结构殷人昆课后答案 数据结构殷人昆课后答案

2010-10-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除