摘要: 1 #include<iostream> 2 #include<vector> 3 #include<map> 4 5 using namespace std; 6 7 bool compare(int a, int b) 8 { 9 return a > b; 10 } 11 12 int mai 阅读全文
posted @ 2020-01-07 17:49 Huayra 阅读(390) 评论(0) 推荐(0)
摘要: 1 //method2 手动排序 2 #include<iostream> 3 #include<string> 4 #include<vector> 5 #include<algorithm> 6 #include<windows.h> 7 8 using namespace std; 9 10 阅读全文
posted @ 2020-01-07 16:31 Huayra 阅读(102) 评论(0) 推荐(0)
摘要: 1 //method1 使用map 2 #include<iostream> 3 #include<string> 4 #include<vector> 5 #include<map> 6 #include<windows.h> 7 8 using namespace std; 9 10 int m 阅读全文
posted @ 2020-01-07 16:26 Huayra 阅读(93) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 #include<iterator> 6 #include<windows.h> 7 8 using namespace std; 9 阅读全文
posted @ 2020-01-07 15:33 Huayra 阅读(570) 评论(0) 推荐(0)
摘要: 1 public class test 2 { 3 public static void main(String[] args) 4 { 5 Vector v = new Vector(); 6 v.add(1); 7 v.add(2); 8 v.add(5); 9 Vector s... 阅读全文
posted @ 2019-06-04 18:57 Huayra 阅读(252) 评论(0) 推荐(0)
摘要: 1 public class test 2 { 3 public static void main(String[] args) 4 { 5 Vector v = new Vector(); 6 for(int i = 1; i v, int[] solution, int start, int pos) 16 { 17 ... 阅读全文
posted @ 2019-06-04 14:36 Huayra 阅读(387) 评论(0) 推荐(0)
摘要: 1 public class test 2 { 3 public static void main(String[] args) 4 { 5 Vector v = new Vector(); 6 for(int i = 1; i v, int[] solution, int pos, int k) 16 { 17 ... 阅读全文
posted @ 2019-05-31 21:47 Huayra 阅读(234) 评论(0) 推荐(0)
摘要: 1 public class test 2 { 3 public static void main(String[] args) 4 { 5 Scanner input = new Scanner(System.in); 6 int n = input.nextInt(); 7 //第一个位置不使用 8 ... 阅读全文
posted @ 2019-05-31 20:08 Huayra 阅读(225) 评论(0) 推荐(0)
摘要: 1 public class test 2 { 3 public static void main(String[] args) 4 { 5 Scanner input = new Scanner(System.in); 6 int m = input.nextInt(); 7 int n = input.nextIn... 阅读全文
posted @ 2019-05-28 20:37 Huayra 阅读(278) 评论(0) 推荐(0)
摘要: 1 public class test 2 { 3 public static void main(String[] args) 4 { 5 Scanner input = new Scanner(System.in); 6 int m = input.nextInt(); 7 int n = input.nextIn... 阅读全文
posted @ 2019-05-28 19:23 Huayra 阅读(227) 评论(0) 推荐(0)