自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 ACM寒假集训2019.1.28

题目链接:https://vjudge.net/contest/279650#problem/A思路简析:从输入项中找出最先两个相邻的“O”,如不存在,直接输出“NO”结束;若存在,则先把两个“O”改成两个“+”,再输出“YES”,然后输出修改后的字符组。代码:#include <iostream>using namespace std;int main(){ in...

2019-01-31 13:34:43 159

原创 ACM寒假集训2019.1.27

题目链接:https://vjudge.net/contest/279646#problem代码:#include <iostream>using namespace std;int main(){ int n,i,k,sum=0; cin >> n>>k; if (n < 1 || n>2000||k<1||k>5) ...

2019-01-27 15:38:07 148

原创 ACM寒假集训2019.1.26

题目链接:https://vjudge.net/contest/279641#problem代码:#include <iostream>using namespace std;int main(){ int n,i; cin >> n; if (n < 1 || n>100) return 0; int(*a) = new int[n];...

2019-01-26 15:26:54 135

原创 ACM寒假集训2019.1.25

题目链接:https://vjudge.net/contest/277768#problem/B代码:#include <iostream>using namespace std;int main(){ int n,x=0,y=0,z=0; cin >> n; if (n < 1 || n>100) return 0; int(*a)[3]...

2019-01-25 16:46:38 108

原创 ACM寒假集训2019.1.25

题目链接:https://vjudge.net/contest/277768#problem代码:#include <iostream>using namespace std;int main(){ int n, t; cin >> n >> t; if (n < 1 || n>50 || t &amp

2019-01-25 15:06:39 191 1

原创 ACM寒假集训2019.1.24

题目链接:https://vjudge.net/contest/279633#problem/B代码:#include <iostream>#include<cstring>using namespace std;int main(){ int n,sum=1; char a[1001]; gets_s(a); n = strlen(a); if(a[...

2019-01-24 15:43:42 102

原创 ACM寒假集训2019.1.23

题目链接:https://vjudge.net/contest/279629#problem代码:#include <iostream>using namespace std;int main(){ int n,sum=0; cin >> n; if (n < 2 || n>30) return 0; int *h = new int[n]...

2019-01-23 15:01:07 151

原创 ACM寒假集训2019.1.22

题目链接:https://vjudge.net/contest/279625#problem/C代码:#include <iostream>using namespace std;int main(){ int n,sum=1; cin >> n; if (n < 1 || n>100000) return 0; n++; char(*a...

2019-01-22 15:52:44 126

原创 ACM寒假集训2019.1.22

题目链接:https://vjudge.net/contest/279625#problem/B代码:#include <iostream>using namespace std;int main(){ int x; char a[101], b[101]; cin >> a>>b; x = strlen(a); for (int i = 0...

2019-01-22 15:22:14 71

原创 ACM寒假集训2019.1.22

题目链接:https://vjudge.net/contest/279625#problem代码:#include <iostream>using namespace std;int main(){ int x,sum=0; cin >> x; if (x < 1 || x>1000000) return 0; while (x > ...

2019-01-22 14:07:32 122

原创 ACM寒假集训

题目链接:https://vjudge.net/contest/279620#problem/C代码:#include <iostream>using namespace std;int main(){ int a, b,i,sum; cin >> a >> b; sum = a; if (a < 1 || a>1000 || b ...

2019-01-21 16:19:08 166

原创 ACM寒假集训2019.1.21

题目链接:https://vjudge.net/contest/279620#problem/A代码:#include <iostream>using namespace std;int main(){ int n,i, m,sum=0; cin >> n >> m; sum = n; if (n < 1 || n>100 || m...

2019-01-21 16:01:48 104

原创 ACM集训赛:2019.1.20

题目链接:https://vjudge.net/contest/279616#problem/C代码:#include <iostream>using namespace std;int main(){ int n, p, q; cin >> n; if (n < 1 || n>100) return 0; cin >> p;...

2019-01-20 16:15:08 206

原创 ACM第二期训练

题目链接:https://vjudge.net/problem/HDU-1049#include <iostream>using namespace std;int main(){ int n, u, d,i,time; while(cin>>n>>u>>d) if(n<100&&d<u) for (...

2018-12-14 17:32:26 121

原创 ACM周赛第十题

题目链接:https://vjudge.net/contest/274223#problem/J#include <iostream>using namespace std;struct FUN{ int day, month, year;};int main(){ int i, sum; FUN a; char p[2]; while (cin >&gt...

2018-12-09 12:51:11 146

原创 ACM周赛第四题

题目链接:https://vjudge.net/problem/HDU-2039#include <iostream>using namespace std;int main(){ int i, M; cin >> M; double *p; p = (double*)malloc((M*3) * sizeof(double)); for (i = 0; ...

2018-12-09 12:49:03 165 1

原创 周赛第一题(A)

题目链接:https://vjudge.net/problem/CodeForces-4A#include <iostream>using namespace std;int main(){ int i,W; cin >> W; if (W < 1 || W>100) return 0; for (i = 1; i <= (W + 1)...

2018-12-09 12:46:39 148

原创 ACM第四题

题目链接:https://vjudge.net/problem/hdu-1000?tdsourcetag=s_pctim_aiomsg#include <iostream>using namespace std;int main(){ int A, B; while (cin >> A >> B) { cout << A + B;...

2018-12-08 13:22:47 107

原创 ACM第三题

题目链接:https://vjudge.net/problem/CodeForces-266A#include <iostream>using namespace std;int main(){ int n,i,sum=0; cin >> n; if (n > 50 || n < 1) return 0; char *s,c; s = (c...

2018-12-08 13:13:04 127

原创 ACM第八题

题目链接:https://vjudge.net/problem/HDU-2101 #include <iostream>using namespace std;int main(){int A, B;while (cin >> A >> B) { if ((A + B) % 86 == 0) cout ...

2018-12-08 10:27:33 90

原创 ACM第七题

根据输入的半径值,计算球的体积。 Input 输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。 Output 输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。#include <iostream>using namespace std;int main(){ double pi = 3.14159...

2018-12-07 23:49:21 139

原创 ACM第六题

题目:输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。 Input 输入数据有多组,每组占一行,有三个字符组成,之间无空格。 Output 对于每组输入数据,输出一行,字符中间用一个空格分开。#include using namespace std;int main(){ int i, j; char a[3]...

2018-12-07 23:27:10 85

空空如也

空空如也

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

TA关注的人

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