Coder

舒心、快乐,比什么都重要

摘要: // 首先创建一个结构体,再创建三个结构体变量,设定好边界,记录合格人数,进行比较,输出。#include #include using namespace std; struct s { string name, bir; } a, young, old; int main() { int n, cnt = 0; string down = "1814/09/06... 阅读全文
posted @ 2019-04-24 21:03 H123K 阅读(376) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int arr[1 > n; for (int i = 1; i > x; arr[x] = i; } cin >> m; while (m--) { cin >> y; if (arr[y] == -1) { //... 阅读全文
posted @ 2019-04-24 01:23 H123K 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; int arr[1 > n; for (int i = 1; i > x; t = abs(x - i); arr[t]++; } for (int i = 10000; i >= 0; i--) { if (arr[i] > 1) {. //... 阅读全文
posted @ 2019-04-24 00:39 H123K 阅读(185) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; int main() { int n, m; cin >> n >> m; for (int i = 0; i > g2; for (int j = 0; j > x; if (x >= 0 && x <= m) { s... 阅读全文
posted @ 2019-04-24 00:13 H123K 阅读(153) 评论(0) 推荐(0) 编辑