摘要: 问题描述小明为某机构设计了一个十字型的徽标(... 阅读全文
posted @ 2020-01-14 19:38 ZC_Wang 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 问题描述小张是软件项目经理,他带领3个开发组... 阅读全文
posted @ 2020-01-13 19:54 ZC_Wang 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 问题描述 给定一个年份,判断这一年是不是闰年。 当以下情况之一满足时,这一年是闰年: 1. 年份是4的倍数而不是100的倍数; 2. 年份是400的倍数。 其他的年份都不是闰年。 输入格式 输入包含一个整数y,表示当前的年份。 输出格式 输出一行,如果给定的年份是闰年,则输出yes,否则输出no。 阅读全文
posted @ 2020-01-10 19:36 ZC_Wang 阅读(163) 评论(0) 推荐(0) 编辑
摘要: ``` #include using namespace std; int main() { int n; cin>>n; int f1=1; int f2=1; int f3; if(n==1||n==2){ cout<<1; return 0; } for(int i=3;i<=n;i++){ f3=f2+f1; f1=f2%10007; f2=f3%10007; } cout<<f3%100 阅读全文
posted @ 2020-01-09 20:47 ZC_Wang 阅读(131) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include using namespace std; int main() { double PI = atan(1.0)*4; double r; cin>>r; cout << fixed << setprecision(7)<<PI*r*r; return 0; } ``` 阅读全文
posted @ 2020-01-09 20:25 ZC_Wang 阅读(98) 评论(0) 推荐(0) 编辑
摘要: ``` #include using namespace std; int main() { double n; cin>>n; long long sum = 0; sum = (1+n)*n/2; cout<<sum; return 0; } ``` 阅读全文
posted @ 2020-01-06 22:15 ZC_Wang 阅读(132) 评论(0) 推荐(0) 编辑
摘要: ``` #include using namespace std; int main() { int a,b; cin>>a>>b; cout<<a+b; return 0; } ``` 阅读全文
posted @ 2020-01-06 22:00 ZC_Wang 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 在tomcat Server中设置 VM options , 值为 Dfile.encoding=UTF 8 阅读全文
posted @ 2020-01-06 18:34 ZC_Wang 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 第3章 递归与分治策略递归的概念直接或间接地... 阅读全文
posted @ 2019-11-07 21:14 ZC_Wang 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 递归与分治任何一个可以用计算机求解的问题所需... 阅读全文
posted @ 2019-11-04 19:56 ZC_Wang 阅读(190) 评论(0) 推荐(0) 编辑