- 博客(13)
- 收藏
- 关注
原创 分享一个学习主席树的PPT,通俗易懂(前提是有线段树基础~)
https://wenku.baidu.com/view/a88b557b71fe910ef02df8d8.html
2018-08-06 19:13:54 211
原创 杭电ACM 2027 统计元音
#include <iostream>#include <cstring>using namespace std;int main(){ int n; int k; while(cin >> n) { cin.get(); for(k = 0; k < n; ++k) { ...
2018-07-10 01:14:07 226
原创 杭电ACM 2021
#include <iostream>using namespace std;int Count(int a[], int num){ int r100, r50, r10, r5, r2, r1; int j, sum = 0; for(j = 0; j < num; ++j) { if(a[j]/100) { ...
2018-06-30 03:52:08 460
原创 杭电ACM 2015
#include <iostream>using namespace std;void Average(double aq[],int n, int m){ int x1, x2, x3, j, k; double average = 0; int sum1 = 0; x1 = n/m; x3 = m*x1; x2 = n - x3; for(...
2018-06-27 10:18:21 271
原创 杭电ACM 2013 蟠桃记
#include <iostream>using namespace std;int Count(int x){ int sum; if(x == 1) return 1; //递归函数需要终止 else sum = (Count(x - 1) + 1) * 2; return sum;}int main(){ in...
2018-06-26 02:47:00 270
原创 杭电ACM 2012
#include <iostream>using namespace std;int main(){ int x, y; int n, a, i; int temp; while(cin >> x >> y) { if(x == 0 && y == 0) break; else ...
2018-06-25 23:32:06 633
原创 杭电ACM 2011
#include <iostream>#include <iomanip>using namespace std;double SUM(int x){ if(x == 1) return 1; else { int j, a = 1; double sum = 0.0; for(j = 0; j < x; +...
2018-06-24 23:28:53 588
原创 杭电ACM 2004
#include <iostream>using namespace std;int main(){ double score; while(cin >> score) { if(0 <= score && 100 >= score) { int n; n ...
2018-06-23 23:31:22 213
原创 杭电ACM 2003
#include <iostream>#include <iomanip>using namespace std;int main(){ double n; while(cin >> n) { if(n < 0) n = -n; cout << setiosflags(ios:...
2018-06-23 23:30:48 278
原创 杭电ACM 2002
#include <iostream>#include <iomanip>#define PI 3.1415927using namespace std;int main(){ double r, v; while(cin >> r) { v = 4 * PI * r*r*r / 3; cout << s...
2018-06-23 23:29:58 174
原创 杭电AC,M 2001
#include <iostream>#include <cmath>#include <iomanip>using namespace std;int main(){ double x1, x2, y1, y2; double d; while(cin >> x1 >> y1 >> x2 >> y2)
2018-06-23 23:29:22 142
原创 杭电ACM 2000
#include <iostream>#include <cstdio>using namespace std;int main(){ int i,j; char a[3],t; while(gets(a)) { for(i=0; i<3; i++) for(j=0;j<3-i-1;j++) ...
2018-06-23 23:28:43 478
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人