自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 分享一个学习主席树的PPT,通俗易懂(前提是有线段树基础~)

https://wenku.baidu.com/view/a88b557b71fe910ef02df8d8.html

2018-08-06 19:13:54 199

原创 杭电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 218

原创 杭电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 449

原创 杭电ACM 2016

排序都不需要~简单的一道水题~

2018-06-28 14:48:34 967

原创 杭电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 261

原创 杭电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 260

原创 杭电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 608

原创 杭电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 575

原创 杭电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 207

原创 杭电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 230

原创 杭电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 162

原创 杭电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 130

原创 杭电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 466

空空如也

空空如也

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

TA关注的人

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