摘要: 1 #include<iostream> 2 #include<vector> 3 #pragma warning(disable:4996) 4 5 using namespace std; 6 7 struct Node 8 { 9 int data; 10 int next; 11 }; 12 阅读全文
posted @ 2020-03-15 21:34 Huayra 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<vector> 3 #include<algorithm> 4 #pragma warning(disable : 4996) 5 6 using namespace std; 7 8 struct student 9 { 10 int 阅读全文
posted @ 2020-01-11 15:46 Huayra 阅读(903) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<vector> 3 #include<cmath> 4 5 using namespace std; 6 7 int main() 8 { 9 int M, N; 10 vector<int> prim; 11 cin >> M >> 阅读全文
posted @ 2020-01-10 16:24 Huayra 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<array> 3 #include<vector> 4 #include<algorithm> 5 6 using namespace std; 7 8 int main() 9 { 10 array<double, 5> a = {0 阅读全文
posted @ 2020-01-10 15:43 Huayra 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<string> 3 4 using namespace std; 5 6 int main() 7 { 8 long A, B, C; 9 int n; 10 cin >> n; 11 for (int i = 0; i != n; + 阅读全文
posted @ 2020-01-10 14:54 Huayra 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<vector> 3 4 using namespace std; 5 6 int main() 7 { 8 vector<int> v; 9 vector<int> result; 10 int n; 11 int a, b; 12 w 阅读全文
posted @ 2020-01-09 16:37 Huayra 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<string> 3 #include<iterator> 4 5 using namespace std; 6 7 int main() 8 { 9 string sentence; 10 getline(cin, sentence); 阅读全文
posted @ 2020-01-09 15:36 Huayra 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<vector> 3 4 using namespace std; 5 6 int main() 7 { 8 vector<int> v; 9 int n, m, element; 10 cin >> n >> m; 11 for (in 阅读全文
posted @ 2020-01-09 15:30 Huayra 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<vector> 3 #include<cmath> 4 5 using namespace std; 6 7 int main() 8 { 9 vector<int> prim; 10 int n; 11 cin >> n; 12 fo 阅读全文
posted @ 2020-01-09 14:41 Huayra 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<stack> 3 4 using namespace std; 5 6 int main() 7 { 8 stack<char> s; 9 int n; 10 cin >> n; 11 int a = n % 10; 12 n /= 1 阅读全文
posted @ 2020-01-09 14:40 Huayra 阅读(420) 评论(0) 推荐(0) 编辑