自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 第三次周赛青铜.6

#includeusing namespace std;int main(){int x,y;while (cin >> x >> y){if ((x == 0) && (y == 0)) break;int a = 0;for (int i = x; i <= y; i++){int sum = i * i + i + 41;...

2018-12-27 20:07:30 123

原创 第三次周赛青铜.4

#includeusing namespace std;int main(){int a, b;while (cin >> a >> b){if ((a == 0) && (b == 0)) break;cout << a + b << endl;}return 0;}

2018-12-27 19:50:24 99

原创 第三次周赛.2

#includeusing namespace std;int main(){int N;cin >> N;for (int j = 1; j <= N; j++){int M;cin >> M;int sum = 0;for (int i = 1; i <= M; i++){int a;cin >> a;sum += ...

2018-12-27 19:40:53 124

原创 第三次周赛.1

#includeusing namespace std;int main(){int a, b;cin >> a >> b;cout << a + b<<endl;return 0;}

2018-12-27 19:33:59 106

原创 第二周青铜.5

#includeusing namespace std;int main(){_int32 n;_int32 m;while (cin >> m>>n){_int32 x= 0;_int32 y = 0;for (_int32 i = m; i <= n; i++){if (i % 2 == 0) x += i * i;else if (i ...

2018-12-27 19:25:52 78

原创 第二次周赛.4

#includeusing namespace std;int main(){int n;int m;while (cin >> n){int sum = 0;for (int i = 1; i <= n; i++){cin >> m;sum += m;}cout << sum << endl;}return 0...

2018-12-27 19:16:40 101

原创 第二周青铜.3

#includeusing namespace std;int main(){int m, n;while (cin >> m >> n){int a = 0;for (int i = m; i <= n; i++){int sum = 0;sum += (i % 10)(i % 10)(i % 10) + (i / 10 % 10)(i / 1...

2018-12-27 19:06:37 73

原创 第二周青铜.2

#includeusing namespace std;int main(){_int32 n;while (cin >> n){_int32 sum = 0;for (int j = 1; j <= n; j++){sum += j;}cout << sum << endl;cout << endl;}retur...

2018-12-27 18:25:42 66

原创 第二周青铜.1

#includeusing namespace std;int main(){double a, b;while (cin >> a >> b){ cout << a + b << endl;}return 0;}

2018-12-27 18:04:52 78

原创 第二期训练.6

#include#include<stdio.h>using namespace std;int main(){int k;cin>>k;getchar();while (k–){char zw;int j, sum = 0;cin >> zw >> j;if (zw >= ‘A’&&zw <= ...

2018-12-14 21:57:27 81

翻译 acm.2

#includeusing namespace std;int main(){int n;cin >> n;int pi, qi;int sum = 0;for (int i = 1; i <= n; i++){cin >> pi >> qi;if (pi < qi) sum += 1;}cout << sum ...

2018-12-07 21:03:04 90

原创 acm.4

#includeusing namespace std;int main(){int A, B;while (cin >> A >> B){cout <<A + B << endl;}system(“pause”);return 0;}

2018-12-07 20:36:44 717

原创 acm.6

#includeusing namespace std;int main(){char a[3] ,t;cin >> a[0] >> a[1] >> a[2];for (int i = 0; i < 3; i++){if (a[i] > a[i + 1]){t = a[i];a[i] = a[i + 1];a[i + 1] =...

2018-12-07 20:31:50 368

原创 acm.7

#include#include using namespace std;int main(){double pi = 3.1415927;double r, v;while (cin >> r){v = (4.0pir*r)/3.0;cout << setprecision(5)<< v <<

2018-12-07 20:03:19 488

原创 acm.8

#includeusing namespace std;int main(){int A, B;while (cin >> A >> B){int C = A + B;if (C % 86 == 0) cout << “yes” << endl;else cout << “no” << endl;}ret...

2018-12-07 19:01:56 185

空空如也

空空如也

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

TA关注的人

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