摘要: import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); String line; while (scan.hasNe 阅读全文
posted @ 2020-04-28 23:46 wusheng_z 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int main() 5 { 6 // please write your code here 7 string s1,s2; 8 int arr[26],brr[26]; 9 ios::sy 阅读全文
posted @ 2020-04-28 22:55 wusheng_z 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 解法:先按一定规则排序(身高从大到小,然后身高相同情况下,人数从小到大),然后移动元素。 1 #include <bits/stdc++.h> 2 3 using namespace std; 4 struct xy{ 5 int x; 6 int y; 7 }; 8 bool cmp(struct 阅读全文
posted @ 2020-04-28 22:54 wusheng_z 阅读(224) 评论(0) 推荐(0) 编辑