摘要: 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-29 20:27 wusheng_z 阅读(249) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; int main() { // please write your code here stack<int>st; string str; while(cin>>str){ while(!st.empty() 阅读全文
posted @ 2020-04-29 20:17 wusheng_z 阅读(184) 评论(0) 推荐(0) 编辑
摘要: package lianxi; import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); String line; w 阅读全文
posted @ 2020-04-29 18:00 wusheng_z 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 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-29 16:34 wusheng_z 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 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-29 09:58 wusheng_z 阅读(155) 评论(0) 推荐(0) 编辑
摘要: package lianxi; import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); String line; w 阅读全文
posted @ 2020-04-29 09:29 wusheng_z 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 问题描述 求出区间[a,b]中所有整数的质因数分解。 输入格式 输入两个整数a,b。 输出格式 每行输出一个数的分解,形如k=a1*a2*a3...(a1<=a2<=a3...,k也是从小到大的)(具体可看样例) 样例输入 3 10 样例输出 3=34=2*25=56=2*37=78=2*2*29= 阅读全文
posted @ 2020-03-31 23:05 wusheng_z 阅读(340) 评论(0) 推荐(0) 编辑