- 博客(15)
- 收藏
- 关注
原创 第三次周赛青铜.6
#include using 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 145
原创 第三次周赛青铜.4
#include using 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 111
原创 第三次周赛.2
#include using 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 136
原创 第三次周赛.1
#include using namespace std; int main() { int a, b; cin >> a >> b; cout << a + b<<endl; return 0; }
2018-12-27 19:33:59 123
原创 第二周青铜.5
#include using 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 93
原创 第二次周赛.4
#include using 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 126
原创 第二周青铜.3
#include using 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 85
原创 第二周青铜.2
#include using 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 84
原创 第二周青铜.1
#include using namespace std; int main() { double a, b; while (cin >> a >> b) { cout << a + b << endl; } return 0; }
2018-12-27 18:04:52 97
原创 第二期训练.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 91
翻译 acm.2
#include using 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 105
原创 acm.4
#include using 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 749
原创 acm.6
#include using 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 404
原创 acm.7
#include #include using namespace std; int main() { double pi = 3.1415927; double r, v; while (cin &gt;&gt; r) { v = (4.0pir*r)/3.0; cout &lt;&lt; setprecision(5)&lt;&lt; v &lt;&lt;
2018-12-07 20:03:19 505
原创 acm.8
#include using 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 259
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人